Moonshot AI
7 params
Moonshot AI Moonshot v1 8K parameters
These are the parameters modelparams.dev tracks for Moonshot AI Moonshot v1 8K. 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.
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 8K API parameters in brief
Moonshot AI Moonshot v1 8K 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
- How many parameters does Moonshot AI Moonshot v1 8K accept?
- Moonshot AI Moonshot v1 8K accepts 7 API parameters: max_completion_tokens, temperature, top_p, n, presence_penalty, frequency_penalty, and more.
- What is the default temperature for Moonshot AI Moonshot v1 8K?
- The default temperature for Moonshot AI Moonshot v1 8K is 0.3, within a valid range of 0 to 1.
- What is the default top_p for Moonshot AI Moonshot v1 8K?
- The default top_p for Moonshot AI Moonshot v1 8K is 1, within a valid range of 0 to 1.