curl --request POST \
--url https://direct.evolink.ai/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kimi-k3",
"messages": [
{
"role": "user",
"content": "Introduce Kimi K3 in three sentences."
}
]
}
'{
"id": "<string>",
"object": "chat.completion",
"created": 123,
"model": "kimi-k3",
"choices": [
{
"index": 123,
"message": {
"role": "system",
"content": "<string>",
"reasoning_content": "<string>",
"tool_calls": [
{
"id": "<string>",
"type": "function",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
],
"tool_call_id": "<string>"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123,
"prompt_tokens_details": {
"cached_tokens": 123
},
"completion_tokens_details": {
"reasoning_tokens": 123
}
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}Kimi K3 - OpenAI-Compatible API
Call kimi-k3 through the OpenAI Chat Completions protocol. Supports both non-streaming JSON and streaming SSE responses. K3 always performs reasoning, and reasoning_effort currently supports only max.
curl --request POST \
--url https://direct.evolink.ai/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kimi-k3",
"messages": [
{
"role": "user",
"content": "Introduce Kimi K3 in three sentences."
}
]
}
'{
"id": "<string>",
"object": "chat.completion",
"created": 123,
"model": "kimi-k3",
"choices": [
{
"index": 123,
"message": {
"role": "system",
"content": "<string>",
"reasoning_content": "<string>",
"tool_calls": [
{
"id": "<string>",
"type": "function",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
],
"tool_call_id": "<string>"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123,
"prompt_tokens_details": {
"cached_tokens": 123
},
"completion_tokens_details": {
"reasoning_tokens": 123
}
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}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
##All APIs require Bearer Token authentication##
Get API Key:
Visit API Key Management Page to get your API Key
Add to request header:
Authorization: Bearer YOUR_API_KEY
Body
Model ID.
kimi-k3 Conversation messages. For multi-turn conversations, include complete historical assistant messages.
1Show child attributes
Show child attributes
Maximum number of tokens allowed for the generated content. The default for Kimi K3 is 131,072 and the maximum is 1,048,576. Reasoning tokens count toward this limit.
1 <= x <= 1048576Reasoning effort. Kimi K3 always performs reasoning and currently supports only max.
max Whether to return the response as an SSE stream.
Streaming response options. These options apply only when stream=true and do not change token prices or generated token counts.
Show child attributes
Show child attributes
Functions that the model may call.
128Show child attributes
Show child attributes
Controls whether the model calls tools or forces a specific function call.
auto, none, required