DeepSeek Chat API parameters
These are the API parameters modelparams.dev tracks for DeepSeek Chat — 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 retired. Shutdown date: 2026-07-24. Suggested replacement: deepseek/deepseek-v4-flash.
After the parameter count instead — how many weights DeepSeek Chat 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 tokens
max_tokens
|
integer (1…+∞) | 4096 | Maximum number of output tokens the model may generate. | — |
Sampling
2 params
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Temperature
temperature
|
number (0…2 step 0.1) | 1 | Controls randomness. In DeepSeek thinking mode this parameter is accepted for compatibility but has no effect. |
Not when thinking.type = "enabled"
|
|
Top P
top_p
|
number (0…1 step 0.01) | 1 | Controls nucleus sampling. In DeepSeek thinking mode this parameter is accepted for compatibility but has no effect. |
Not when thinking.type = "enabled"
|
Reasoning
1 param
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Thinking mode
thinking.type
|
enum (disabled | enabled) | "disabled" | Controls whether DeepSeek uses thinking mode before producing the final answer. | — |
DeepSeek DeepSeek Chat API parameters in brief
DeepSeek DeepSeek Chat documents 4 API parameters, grouped by what they control:
-
Length:
max_tokensdefaults to 4096, minimum 1. -
Sampling:
temperaturedefaults to 1, range 0–2, not when thinking.type = "enabled";top_pdefaults to 1, range 0–1, not when thinking.type = "enabled". -
Reasoning:
thinking.typedefaults to "disabled", accepts "disabled", "enabled".
Frequently asked questions
- Which API parameters does DeepSeek Chat support?
- DeepSeek Chat accepts 4 API parameters in the request body: max_tokens, temperature, top_p, thinking.type.
- What is the default temperature for DeepSeek Chat?
- The default temperature for DeepSeek Chat is 1, within a valid range of 0 to 2.
- What is the default top_p for DeepSeek Chat?
- The default top_p for DeepSeek Chat is 1, within a valid range of 0 to 1.
- What is the default max_tokens for DeepSeek Chat?
- The default max_tokens for DeepSeek Chat is 4096, with a minimum of 1.