Skip to main content
POST
Kimi K3.1 Pro and Kimi K3.1 Pro Highspeed use the same OpenAI-compatible Chat Completions request. Both models provide a 1,048,576-token context window, always-on reasoning, multimodal input, streaming, structured output, Partial Mode, and function tools.
Set reasoning_effort at the top level to low, high, or max. K3.1 models do not use the K2.x thinking object. Sampling parameters are fixed; omit temperature, top_p, n, presence_penalty, and frequency_penalty.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
enum<string>
required

Kimi K3.1 model ID.

Available options:
kimi-k3.1-pro,
kimi-k3.1-pro-highspeed
messages
object[]
required
Minimum array length: 1
reasoning_effort
enum<string>
default:max
Available options:
low,
high,
max
max_completion_tokens
integer
default:131072
Required range: 1 <= x <= 1048576
stream
boolean
default:false
stream_options
object
response_format
object
stop
tools
object[]
tool_choice
enum<string>
default:auto
Available options:
auto,
none,
required
prompt_cache_key
string
safety_identifier
string

Response

Chat completion generated successfully.

id
string
required
object
enum<string>
required
Available options:
chat.completion
model
string
required
choices
object[]
required
created
integer
usage
object