Moonshot AI Kimi K2.7 Code Highspeed API parameters
These are the API parameters modelparams.dev tracks for Moonshot AI Kimi K2.7 Code Highspeed on Chat Completions with an API key — the settings you send in a request. Each row gives the type, default, valid range or values, and the conditions that gate it. It's the same data the JSON API serves.
After the parameter count instead — how many weights Kimi K2.7 Code Highspeed has? That's a different number, and we don't track it. Here's the difference.
Length
2 params
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Max completion tokens
max_completion_tokens
|
integer (1…+∞) | 32768 | Maximum number of tokens to generate in the chat completion, including reasoning tokens. | — |
|
Stop sequence
stop
|
string | — | Stops generation when this sequence is produced. Moonshot accepts up to 5 sequences of at most 32 bytes each. | — |
Reasoning
1 param
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Thinking mode
thinking.type
|
enum (enabled) | "enabled" | Thinking is always on for this model. Enabled is the only accepted value; disabled returns an error. | — |
Tools
1 param
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Tool choice
tool_choice
|
enum (auto | none) | "auto" | Controls tool calling: auto lets the model decide and none blocks tool calls. Moonshot rejects required while thinking is enabled, which is the default on this model. | — |
Output
1 param
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Response format
response_format.type
|
enum (text | json_object | json_schema) | "text" | Forces the response into plain text, a JSON object, or JSON matching a provided schema. | — |
Observability
2 params
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Log probabilities
logprobs
|
boolean | false | Controls whether the response includes log probabilities for the generated tokens. | — |
|
Top log probabilities
top_logprobs
|
integer (0…20) | — | Number of most likely tokens to return a log probability for at each position. |
Only when logprobs = true
|
Moonshot AI Kimi K2.7 Code Highspeed API parameters in brief
Moonshot AI Kimi K2.7 Code Highspeed on Chat Completions documents 7 API parameters, grouped by what they control:
-
Length:
max_completion_tokensdefaults to 32768, minimum 1;stop. -
Reasoning:
thinking.typedefaults to "enabled", accepts "enabled". -
Tools:
tool_choicedefaults to "auto", accepts "auto", "none". -
Output:
response_format.typedefaults to "text", accepts "text", "json_object", "json_schema". -
Observability:
logprobsdefaults to false;top_logprobsrange 0–20, only when logprobs = true.
Frequently asked questions
- Which API parameters does Moonshot AI Kimi K2.7 Code Highspeed support?
- Moonshot AI Kimi K2.7 Code Highspeed accepts 7 API parameters in the request body: max_completion_tokens, stop, thinking.type, response_format.type, tool_choice, logprobs, and more.
Resources
Other Moonshot AI models
Kimi K2.5
7 params
View
Kimi K2.6
8 params
View
Kimi K2.6
Subscription
4 params
View
Kimi K2.7 Code
7 params
View
Kimi K2.7 Code
Subscription
3 params
View
Kimi K2.7 Code Highspeed
Subscription
3 params
View
Kimi K3
6 params
View
Moonshot v1 128K
11 params
View
Moonshot v1 32K
11 params
View
Moonshot v1 8K
11 params
View