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.
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.
1Controls 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 <= 1048576Up 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.
Function tools available to the model.
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"
"Moonshot AI"