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
max_tokens
integer
required

Maximum number of tokens allowed for this generation, including thinking and final text.

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

Anthropic Messages message list. For multi-turn conversations, return complete assistant content blocks unchanged.

Minimum array length: 1
system

System prompt as a string or array of text blocks.

stream
boolean
default:false

Whether to return an Anthropic SSE event stream.

tools
object[]

Custom functions or server-side web search. Built-in search uses type=web_search_20250305 and name=web_search; billed per actual call.

tool_choice
object
stop_sequences
string[]

Stop sequences: an exact match stops generation and is omitted from output. At most 5 sequences, each no longer than 32 bytes.

Maximum array length: 5
cache_control
object

Only top-level cache_control controls the write TTL; cache markers inside message blocks do not replace it. Default when omitted: 5m.

output_config
object

Output configuration: reasoning effort and structured output.

Response

Message response; streaming requests return an Anthropic SSE event stream

id
string
type
enum<string>
Available options:
message
role
enum<string>
Available options:
assistant
model
string
Example:

"kimi-k3.1-pro"

content
object[]

Anthropic content block for text, image, reasoning, tool use, or a tool result.

stop_reason
enum<string> | null
Available options:
end_turn,
max_tokens,
tool_use,
refusal,
null
stop_sequence
string | null
usage
object