o4 Mini
OpenAI Generally Available
OpenAI o4-mini is a compact reasoning model in the o-series, optimized for fast, cost-efficient performance while retaining strong multimodal and agentic capabilities. It supports tool use and demonstrates competitive reasoning...
Context
200K
tokens
Input
$1.10
per MTok
Output
$4.40
per MTok
About
OpenAI o4-mini is a compact reasoning model in the o-series, optimized for fast, cost-efficient performance while retaining strong multimodal and agentic capabilities. It supports tool use and demonstrates competitive reasoning...
Modalities
Input
Vision Text file
Output
Text
Code Examples
curl https://api.openai.com/v1/chat/completions \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "o4-mini",
"messages": [
{ "role": "user", "content": "Explain quantum entanglement in one sentence." }
]
}' API Parameters
| Name | Type | Description |
|---|---|---|
include_reasoning | boolean | Include the model's internal reasoning trace in the response. |
max_tokens deprecated | integer | Deprecated. Use max_completion_tokens. |
reasoning | object | Configuration for extended-thinking / reasoning mode. |
response_format | one of | Constrain output to a JSON schema or an enum (structured outputs). |
seed | integer | Deterministic seed for sampling. Same seed + same prompt produces identical output. |
structured_outputs | boolean | Enable JSON-schema-constrained output. |
tool_choice | one of | Controls which (if any) tool is called: "none", "auto", "required", or a specific tool. |
tools | array | List of tools (functions) the model may call. |
Standard OpenAI-compatible parameters. Consult the provider docs for model-specific behaviour.