Moonshot AI Kimi K2.7 Code (subscription) API parameters
These are the API parameters modelparams.dev tracks for Moonshot AI Kimi K2.7 Code when you reach it through a subscription rather than 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 has? That's a different number, and we don't track it. Here's the difference.
Length
1 param
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Max completion tokens
max_completion_tokens
|
integer (1…+∞) | — | Maximum number of tokens to generate in the chat completion, covering both thinking and the final answer. | — |
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. | — |
Output
1 param
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Response format
response_format.type
|
enum (text | json_object) | "text" | Forces the response into plain text or a JSON object. | — |
Moonshot AI Kimi K2.7 Code API parameters in brief
Moonshot AI Kimi K2.7 Code via subscription documents 3 API parameters, grouped by what they control:
-
Length:
max_completion_tokensminimum 1. -
Reasoning:
thinking.typedefaults to "enabled", accepts "enabled". -
Output:
response_format.typedefaults to "text", accepts "text", "json_object".
Frequently asked questions
- Which API parameters does Moonshot AI Kimi K2.7 Code (subscription) support?
- Moonshot AI Kimi K2.7 Code (subscription) accepts 3 API parameters in the request body: max_completion_tokens, thinking.type, response_format.type.
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 Highspeed
7 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