curl --request POST \
--url https://www.anyfast.ai/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kimi-k3",
"messages": [
{
"role": "user",
"content": "Explain Kimi K3 in one sentence."
}
],
"reasoning_effort": "max"
}
'{
"id": "cmpl-kimi-k3-example",
"object": "chat.completion",
"created": 1784736000,
"model": "moonshotai/kimi-k3",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"reasoning": "The user requested a concise introduction.",
"reasoning_details": [
{
"type": "reasoning.text",
"text": "The user requested a concise introduction.",
"format": "unknown",
"index": 0
}
],
"content": "Kimi K3 is Moonshot AI's flagship multimodal reasoning model with a 1M-token context window."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 18,
"completion_tokens": 32,
"total_tokens": 50,
"prompt_tokens_details": {
"cached_tokens": 0
}
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"param": "<string>",
"code": "<string>"
}
}kimi-k3
Creates a Kimi K3 response for a conversation. K3 supports a 1M-token context window, text/image input, always-on reasoning, streaming, structured output, Partial Mode, and function tools. Configure reasoning with reasoning_effort. The K2.x thinking object has no effect. Do not send fixed sampling parameters.
curl --request POST \
--url https://www.anyfast.ai/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kimi-k3",
"messages": [
{
"role": "user",
"content": "Explain Kimi K3 in one sentence."
}
],
"reasoning_effort": "max"
}
'{
"id": "cmpl-kimi-k3-example",
"object": "chat.completion",
"created": 1784736000,
"model": "moonshotai/kimi-k3",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"reasoning": "The user requested a concise introduction.",
"reasoning_details": [
{
"type": "reasoning.text",
"text": "The user requested a concise introduction.",
"format": "unknown",
"index": 0
}
],
"content": "Kimi K3 is Moonshot AI's flagship multimodal reasoning model with a 1M-token context window."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 18,
"completion_tokens": 32,
"total_tokens": 50,
"prompt_tokens_details": {
"cached_tokens": 0
}
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"param": "<string>",
"code": "<string>"
}
}reasoning_effort; the K2.x thinking object has no effect. Sampling values are fixed, so omit temperature, top_p, n, presence_penalty, and frequency_penalty.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Model ID. Must be kimi-k3.
kimi-k3 Conversation history. Return complete assistant messages, including reasoning, reasoning_details, and tool_calls, in later turns.
1Show child attributes
Show child attributes
Controls reasoning effort. K3 always reasons with Preserved Thinking enabled; reasoning cannot be disabled.
low, high, max Maximum output tokens. Input plus output must fit the 1M-token context window. max_tokens is deprecated.
1 <= x <= 1048576Show child attributes
Show child attributes
Up to 5 stop strings; each string must not exceed 32 bytes. A stop string can terminate reasoning before final content is produced.
Stream partial deltas using Server-Sent Events.
Options for streaming responses.
Show child attributes
Show child attributes
Function tools available to the model.
Show child attributes
Show child attributes
Let the model decide, disable tool calls, or require at least one tool call.
auto, none, required Stable session or task ID used to improve prefix-cache hit rates.
Stable identifier for the end user. Use a hash instead of directly identifying information.
Response
Completion generated successfully. When stream is true, the endpoint returns chat.completion.chunk objects using SSE and ends with data: [DONE].
chat.completion Unix timestamp.
The response may use the upstream canonical model ID.
"moonshotai/kimi-k3"
Show child attributes
Show child attributes
"Moonshot AI"
Show child attributes
Show child attributes
Was this page helpful?