Back to Models
o4-mini
openaiopenai/o4-mini
Fast, cost-efficient reasoning model with a 200K context window. Ideal for tasks requiring reasoning at lower cost. Succeeded by GPT-5 Mini.
Context Length
200K
Max Output
100K
Input Price
$1.32/ 1M tokens
Output Price
$5.28/ 1M tokens
Modalities
textimage→text
Pricing Breakdown
| Type | Rate |
|---|---|
| Input | $1.32 / 1M tokens |
| Output | $5.28 / 1M tokens |
Supported Parameters
max_tokenstoolstool_choiceresponse_formatreasoningstop
API Usage Examples
cURL
curl https://api.therouter.ai/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer $THE_ROUTER_API_KEY" -d '{
"model": "openai/o4-mini",
"messages": [
{"role": "user", "content": "Summarize the key points from this input."}
]
}'