Moonshot AI
7 params
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.
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
2 params
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Max completion tokens
max_completion_tokens
|
integer (1…+∞) | — | Maximum number of tokens to generate in the chat completion. | — |
|
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. | — |
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 Moonshot v1 128K API parameters in brief
Moonshot AI Moonshot v1 128K documents 7 API parameters, grouped by what they control:
-
Length:
max_completion_tokensminimum 1;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. -
Output:
response_format.typedefaults to "text", accepts "text", "json_object".
Frequently asked questions
- Which API parameters does Moonshot AI Moonshot v1 128K support?
- Moonshot AI Moonshot v1 128K accepts 7 API parameters in the request body: max_completion_tokens, temperature, top_p, n, presence_penalty, frequency_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
3 params
View
Kimi K2.6
3 params
View
Kimi K2.6
Subscription
3 params
View
Kimi K2.7 Code
2 params
View
Kimi K2.7 Code
Subscription
2 params
View
Kimi K2.7 Code Highspeed
2 params
View
Kimi K2.7 Code Highspeed
Subscription
2 params
View
Kimi K3
3 params
View
Moonshot v1 32K
7 params
View
Moonshot v1 8K
7 params
View