OpenAI
6 params
OpenAI GPT-OSS 20B API parameters
These are the API parameters modelparams.dev tracks for OpenAI GPT-OSS 20B — 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 GPT-OSS 20B 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 completion tokens
max_completion_tokens
|
integer (1…131072) | — | Maximum number of output tokens the model may generate. | — |
Sampling
2 params
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Temperature
temperature
|
number | 1 | Controls randomness. Lower values make outputs more focused; higher values make them more varied. OpenAI recommends sampling at 1.0. | — |
|
Top P
top_p
|
number (0…1) | 1 | Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability. OpenAI recommends sampling at 1.0. | — |
Reasoning
1 param
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Reasoning effort
reasoning_effort
|
enum (low | medium | high) | "medium" | Controls how much reasoning the model should perform before producing an answer. | — |
Tools
1 param
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Tool choice
tool_choice
|
enum (auto | none | required) | — | Controls whether the model may call tools, must call one, or skips tool calls. | — |
Output
1 param
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Response format
response_format.type
|
enum (text | json_schema) | "text" | Controls whether the model returns normal text or a schema-constrained JSON object. | — |
OpenAI GPT-OSS 20B API parameters in brief
OpenAI GPT-OSS 20B documents 6 API parameters, grouped by what they control:
-
Length:
max_completion_tokensrange 1–131072. -
Sampling:
temperaturedefaults to 1;top_pdefaults to 1, range 0–1. -
Reasoning:
reasoning_effortdefaults to "medium", accepts "low", "medium", "high". -
Tools:
tool_choiceaccepts "auto", "none", "required". -
Output:
response_format.typedefaults to "text", accepts "text", "json_schema".
Frequently asked questions
- Which API parameters does OpenAI GPT-OSS 20B support?
- OpenAI GPT-OSS 20B accepts 6 API parameters in the request body: max_completion_tokens, temperature, top_p, reasoning_effort, response_format.type, tool_choice.
- What is the default temperature for OpenAI GPT-OSS 20B?
- The default temperature for OpenAI GPT-OSS 20B is 1.
- What is the default top_p for OpenAI GPT-OSS 20B?
- The default top_p for OpenAI GPT-OSS 20B is 1, within a valid range of 0 to 1.
Resources
Other OpenAI models
ChatGPT 4o Latest
3 params
View
GPT-3.5 Turbo
3 params
View
GPT-4 Turbo
3 params
View
GPT-4 Turbo 2024-04-09
3 params
View
GPT-4.1
3 params
View
GPT-4.1 Mini
3 params
View
GPT-4.1 Nano
3 params
View
GPT-4o
3 params
View
GPT-4o 2024-11-20
3 params
View
GPT-4o mini
3 params
View
GPT-5
2 params
View
GPT-5 Chat Latest
1 param
View
GPT-5 Mini
2 params
View
GPT-5 Nano
2 params
View
GPT-5.1
2 params
View
GPT-5.1 Codex
Subscription
3 params
View
GPT-5.1 Codex Max
Subscription
3 params
View
GPT-5.2
2 params
View
GPT-5.2
Subscription
3 params
View
GPT-5.2 Codex
Subscription
3 params
View
GPT-5.3 Codex
2 params
View
GPT-5.3 Codex
Subscription
3 params
View
GPT-5.3 Codex Spark
Subscription
3 params
View
GPT-5.4
2 params
View
GPT-5.4
Subscription
3 params
View
GPT-5.4 Mini
2 params
View
GPT-5.4 Mini
Subscription
3 params
View
GPT-5.4 Nano
2 params
View
GPT-5.4 Pro
2 params
View
GPT-5.4 Pro
Subscription
3 params
View
GPT-5.5
2 params
View
GPT-5.5
Subscription
3 params
View
GPT-5.5 Pro
2 params
View
GPT-5.5 Pro
Subscription
3 params
View
GPT-5.6 Luna
2 params
View
GPT-5.6 Luna
Subscription
3 params
View
GPT-5.6 Sol
2 params
View
GPT-5.6 Sol
Subscription
3 params
View
GPT-5.6 Terra
2 params
View
GPT-5.6 Terra
Subscription
3 params
View
GPT-OSS 120B
6 params
View
GPT-OSS Safeguard 120B
4 params
View
GPT-OSS Safeguard 20B
4 params
View
o1
2 params
View
o1-mini
2 params
View
o1-preview
2 params
View
o3
2 params
View
o3-mini
2 params
View
o3-pro
2 params
View
o4-mini
2 params
View