Moonshot AI Moonshot v1 128K API parameters
These are the API parameters modelparams.dev tracks for Moonshot AI Moonshot v1 128K — 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.
This model is deprecated. Shutdown date: 2026-08-31. Suggested replacement: moonshot/kimi-k2.6.
After the parameter count instead — how many weights Moonshot v1 128K has? That's a different number, and we don't track it. Here's the difference.
Length
3 params
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Max completion tokens
max_completion_tokens
|
integer (1…+∞) | — | Maximum number of tokens to generate in the chat completion. | — |
|
Stop sequence
stop
|
string | — | Stops generation when this sequence is produced. Moonshot accepts up to 5 sequences of at most 32 bytes each. | — |
|
Number of completions
n
|
integer (1…5) | 1 | How many chat completion choices to generate for the request. | — |
Sampling
4 params
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Temperature
temperature
|
number (0…1 step 0.1) | 0.3 | Controls randomness. Lower values make outputs more focused; higher values make them more varied. | — |
|
Top P
top_p
|
number (0…1 step 0.01) | 1 | Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability. | — |
|
Presence penalty
presence_penalty
|
number (-2…2 step 0.1) | 0 | Penalizes tokens that have already appeared, encouraging the model to talk about new topics. | — |
|
Frequency penalty
frequency_penalty
|
number (-2…2 step 0.1) | 0 | Penalizes tokens by how often they have appeared, reducing verbatim repetition. | — |
Tools
1 param
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Tool choice
tool_choice
|
enum (auto | none | required) | "auto" | Controls tool calling: auto lets the model decide, none blocks tool calls, and required forces one. | — |
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. | — |
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 Moonshot v1 128K API parameters in brief
Moonshot AI Moonshot v1 128K documents 11 API parameters, grouped by what they control:
-
Length:
max_completion_tokensminimum 1;stop;ndefaults to 1, range 1–5. -
Sampling:
temperaturedefaults to 0.3, range 0–1;top_pdefaults to 1, range 0–1;presence_penaltydefaults to 0, range -2–2;frequency_penaltydefaults to 0, range -2–2. -
Tools:
tool_choicedefaults to "auto", accepts "auto", "none", "required". -
Output:
response_format.typedefaults to "text", accepts "text", "json_object". -
Observability:
logprobsdefaults to false;top_logprobsrange 0–20, only when logprobs = true.
Frequently asked questions
- Which API parameters does Moonshot AI Moonshot v1 128K support?
- Moonshot AI Moonshot v1 128K accepts 11 API parameters in the request body: max_completion_tokens, stop, temperature, top_p, n, presence_penalty, and more.
- What is the default temperature for Moonshot AI Moonshot v1 128K?
- The default temperature for Moonshot AI Moonshot v1 128K is 0.3, within a valid range of 0 to 1.
- What is the default top_p for Moonshot AI Moonshot v1 128K?
- The default top_p for Moonshot AI Moonshot v1 128K is 1, within a valid range of 0 to 1.
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
7 params
View
Kimi K2.7 Code Highspeed
Subscription
3 params
View
Kimi K3
6 params
View
Moonshot v1 32K
11 params
View
Moonshot v1 8K
11 params
View