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.
Reasoning is always enabled for Kimi models. The response content usually includes type="thinking" blocks, which count toward output tokens. Avoid setting max_tokens too low: reasoning may exhaust the output budget before any answer text is produced.

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.

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

Maximum tokens allowed for this generation, including thinking and final text. If too low, reasoning may exhaust the output budget before any answer text is produced. Use at least 1024 and increase it for more complex tasks.

Required range: 1 <= x <= 1048576
messages
object[]
required

Conversation messages. Include historical messages in order for multi-turn conversations; see the full reference for how to return reasoning and tool-call history.

Minimum array length: 1
system
string

System prompt. The Messages protocol uses a top-level system field instead of a system role.

output_config
object

Output configuration.

stream
boolean
default:false

Whether to return an Anthropic SSE event stream.

Response

Message response; streaming requests return an Anthropic SSE event stream

id
string

Response ID.

Example:

"chatcmpl-6adc72c2b5847b4b2ccb39fd"

type
enum<string>
Available options:
message
Example:

"message"

role
enum<string>
Available options:
assistant
Example:

"assistant"

model
string

Model used for this call.

Example:

"kimi-k3.1-pro"

content
object[]

Output content blocks, usually thinking followed by text.

stop_reason
enum<string> | null

Stop reason: end_turn means a natural stop, max_tokens means the output limit was reached, and tool_use means the model is requesting a tool call.

Available options:
end_turn,
max_tokens,
tool_use,
null
Example:

"end_turn"

usage
object