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 API Key Management Page to get your API Key

Add to request header:

Body

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

Model to call:

All three models have a context window of 1,048,576 tokens and always have reasoning enabled.

Cache write TTL (prompt_cache_options) is supported only by the K3.1 series; kimi-k3 does not support this parameter.

Available options:
kimi-k3.1-pro,
kimi-k3.1-pro-highspeed,
kimi-k3
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. Reasoning is always enabled.

  • kimi-k3.1-pro / kimi-k3.1-pro-highspeed: low / high / max are recommended; default max. For generic client compatibility, medium maps to high, xhigh to max, and minimal / none to low; none does not disable reasoning.
  • kimi-k3: only max is supported (default).

Higher effort typically increases reasoning tokens and latency. Reasoning tokens count toward 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, supported only by kimi-k3.1-pro / kimi-k3.1-pro-highspeed; kimi-k3 does not support this parameter. When omitted, a 5m cache is written automatically by default. 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
temperature
number
default:1

Sampling temperature, fixed by the model at 1; omit this field. kimi-k3.1-pro / kimi-k3.1-pro-highspeed automatically ignore it; kimi-k3 returns an error for unsupported values.

top_p
number
default:0.95

Nucleus sampling threshold, fixed by the model at 0.95; omit this field. kimi-k3.1-pro / kimi-k3.1-pro-highspeed automatically ignore it; kimi-k3 returns an error for unsupported values.

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