OpenAI
3 params
OpenAI GPT-4o mini API parameters
These are the API parameters modelparams.dev tracks for OpenAI GPT-4o mini — 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-4o mini 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. 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 whose cumulative probability reaches this value. | — |
OpenAI GPT-4o mini API parameters in brief
OpenAI GPT-4o mini documents 3 API parameters, grouped by what they control:
-
Length:
max_tokensdefaults to 4096, minimum 1. -
Sampling:
temperaturedefaults to 1, range 0–2;top_pdefaults to 1, range 0–1.
Frequently asked questions
- Which API parameters does OpenAI GPT-4o mini support?
- OpenAI GPT-4o mini accepts 3 API parameters in the request body: max_tokens, temperature, top_p.
- What is the default temperature for OpenAI GPT-4o mini?
- The default temperature for OpenAI GPT-4o mini is 1, within a valid range of 0 to 2.
- What is the default top_p for OpenAI GPT-4o mini?
- The default top_p for OpenAI GPT-4o mini is 1, within a valid range of 0 to 1.
- What is the default max_tokens for OpenAI GPT-4o mini?
- The default max_tokens for OpenAI GPT-4o mini is 4096, with a minimum of 1.
Resources
Other OpenAI models
ChatGPT 4o Latest
3 params
View
GPT-3.5 Turbo
3 params
View
GPT-3.5 Turbo 16K
3 params
View
GPT-4
6 params
View
GPT-4 0613
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-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
2 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 20B
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