Skip to main content
POST
BaseURL: The default BaseURL is https://direct.evolink.ai, which has better support for text models and long-lived connections. https://api.evolink.ai is the primary endpoint for multimodal services and serves as a fallback address for text models.

Authorizations

Authorization
string
header
required

##All APIs require Bearer Token authentication##

Get API Key:

Visit the API Key Management Page to obtain your API Key

Add to request header:

Body

application/json
model
enum<string>
default:kimi-k3.1-pro
required

Use kimi-k3.1-pro or kimi-k3.1-pro-highspeed; Highspeed offers faster generation.

Available options:
kimi-k3.1-pro,
kimi-k3.1-pro-highspeed
input
required

Request input. A string is equivalent to one user message. An array contains typed items in order and may include conversation history, tool calls, and tool results.

instructions
string

Top-level system instructions, applied before all other instructions.

stream
boolean
default:false

When true, returns the response as an SSE stream.

max_output_tokens
integer
default:131072

Maximum generated tokens, including reasoning and the final answer. Default: 131072; maximum: 1048576, also limited by the remaining context.

Required range: 1 <= x <= 1048576
reasoning
object

Reasoning configuration.

text
object

Output text configuration.

tools
(Function tool · object | Custom tool · object | Namespace tool · object | Web search tool · object)[]

Tools that the model may call.

Tool definition, distinguished by type. Supports function, custom (only apply_patch), namespace, and web_search; other tool types are unsupported.

tool_choice
enum<string>

Controls tool use. With auto, the model decides whether to call a tool.

Available options:
auto
include
enum<string>[]

Additional fields to return, only for web_search. web_search_call.action.sources includes matched web sources; web_search_call.results includes image search results.

Available options:
web_search_call.results,
web_search_call.action.sources
prompt_cache_options
object

Context cache-write options. If omitted, automatically writes to the 5m cache. Writes and reads are billed separately.

Response

Response created successfully

A model response.

id
string

Unique response identifier.

Example:

"resp_68f0c1c2d3e4f5a6b7c8d9e0"

object
enum<string>
Available options:
response
created_at
integer

Unix timestamp when the response was created.

completed_at
integer | null

Unix timestamp when the response ended. Present when status is completed or incomplete; null for in_progress or failed.

status
enum<string>

Response status. The initial streaming snapshot has status in_progress.

Available options:
in_progress,
completed,
incomplete,
failed
model
string

Model that generated this response.

output
(Reasoning · object | Message · object | Function Call · object | Custom tool call · object | Web search call · object)[]

Output item array, ordered as web_search_call (if any), reasoning, message, and tool calls.

An output-array element, distinguished by type.

usage
object | null

input_tokens includes cache reads and writes; subtract cached_tokens and cache_write_tokens to get ordinary input. output_tokens already includes reasoning.

incomplete_details
object | null

Reason provided when status is incomplete.

error
object | null

Error details provided when status is failed.

instructions
string | null
reasoning
object | null
text
object | null
tools
(Function tool · object | Custom tool · object | Namespace tool · object | Web search tool · object)[] | null

Tool definition, distinguished by type. Supports function, custom (only apply_patch), namespace, and web_search; other tool types are unsupported.

tool_choice
enum<string> | null

Controls tool use. With auto, the model decides whether to call a tool.

Available options:
auto
max_output_tokens
integer | null
temperature
number | null
top_p
number | null
parallel_tool_calls
boolean
service_tier
string | null
store
boolean

Always false.

background
boolean | null

Always false.

previous_response_id
string | null

Always null.

conversation
object | null

Always null.

prompt_cache_options
object

Context cache-write options actually applied by the server. If prompt_cache_options was omitted, use the mode and ttl returned here.