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 Priceper 1M tokens
$1.32/ 1M tokens
Output Priceper 1M tokens
$5.28/ 1M tokens

Modalities

textimage→text

Pricing Breakdown

TypeRate
Input$1.32 / 1M tokens
Output$5.28 / 1M tokens

Supported Parameters

max_tokenstoolstool_choiceresponse_formatreasoningstop

API Usage Examples

Use the global api.therouter.ai endpoint shown below for new integrations; the legacy China accelerated endpoint is retired.

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."}
    ]
  }'
Customer Support