Moonshot AI
API key
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.
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
| Length · 2 params | ||||
|
Max 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 | ||||
|
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 | ||||
|
Response format
response_format.type
|
enum (text | json_object) | "text" | Forces the response into plain text or a JSON object. | — |