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
messages
object[]
required

Conversation messages. For multi-turn conversations, include complete historical assistant messages.

Minimum array length: 1
max_completion_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_effort
enum<string>
default:max

Reasoning effort: low / high / max are recommended; default: max. Reasoning is always enabled. Client aliases: medium maps to high, xhigh to max, minimal / none to low. none does not disable reasoning. Higher effort usually increases reasoning tokens and latency. Reasoning tokens count as output.

Available options:
low,
high,
max,
medium,
xhigh,
minimal,
none
stream
boolean
default:false

Whether to return the response as an SSE stream.

tools
object[]

Function tools or web search. Declare search with {"type":"web_search"}.

Maximum array length: 128
tool_choice

Controls whether the model calls tools or forces a specific function call.

Available options:
auto,
none,
required
prompt_cache_options
object

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

response_format
object

Output format: text for plain text, json_object for a JSON object, or json_schema for structured output following a JSON Schema.

max_tokens
integer
deprecated

Legacy output-limit alias. Use max_completion_tokens for new requests; avoid setting both.

Required range: 1 <= x <= 1048576

Response

Chat completion response; streaming requests return an SSE event stream

id
string
object
string
Example:

"chat.completion"

created
integer
model
string
Example:

"kimi-k3.1-pro"

choices
object[]
usage
object