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.

OpenAI o4-mini is a fast, cost-efficient reasoning model released on April 16, 2025 alongside the flagship o3. It was optimized for speed and efficiency while retaining strong reasoning capabilities β€” a smaller model that punches well above its weight class. At launch, o4-mini was the best-performing benchmarked model on both AIME 2024 and AIME 2025 math competitions, and with Python tool access it achieved 99.5% pass@1 on AIME 2025 (100% consensus@8). Beyond math, o4-mini outperformed its predecessor o3-mini on non-STEM tasks and data science, and was the first small reasoning model to integrate images directly into its chain of thought.

From a TheRouter operator's perspective, o4-mini was the practical workhorse of the o-series β€” fast enough for production throughput, smart enough for complex reasoning, and priced affordably at $1.10/$4.40 per million tokens. It had full tool access (web search, Python, file analysis, visual reasoning) and supported function calling and structured outputs. However, OpenAI announced o4-mini's deprecation on April 22, 2026 with a shutdown date of October 23, 2026. The official replacement is gpt-5.4-mini β€” a newer model with a unified reasoning architecture that delivers better performance at a lower price point ($0.15/$0.60 per 1M tokens). Existing integrations should migrate to gpt-5.4-mini before October 2026.

Best for
  • β€’ Cost-efficient reasoning at scale β€” competitive math and science with fast response times, priced at $1.10/$4.40 per 1M tokens (migrate to gpt-5.4-mini at $0.15/$0.60 before Oct 2026)
  • β€’ Multi-step tool orchestration β€” o4-mini can chain web search, Python execution, and file analysis to solve open-ended problems
  • β€’ Visual reasoning tasks β€” first small reasoning model to integrate images into chain of thought; strong at analyzing charts, diagrams, and low-quality images
  • β€’ Data science and non-STEM tasks β€” outperforms o3-mini across data science, business, and creative domains per expert evaluations
Reach for something else if
  • β€’ New projects (as of May 2026) β€” o4-mini shuts down Oct 23, 2026; use openai/gpt-5.4-mini (cheaper, faster, better) or deepseek/deepseek-v4-flash for new integrations
  • β€’ Maximum reasoning depth β€” o4-mini is a small model optimized for speed; use openai/o3 or openai/gpt-5.5 for tasks requiring the deepest reasoning
  • β€’ Fresh knowledge beyond June 2024 cutoff β€” knowledge predates the model's own release; use openai/gpt-5.5 for current information or add web search tools
  • β€’ Audio/video generation β€” o4-mini is text+image input, text-only output; use openai/gpt-audio-1.5 for audio or openai/chatgpt-image-latest for image generation
Context Length
200K
Max Output
100K
Input Priceper 1M tokens
$1.19/ 1M tokens
Output Priceper 1M tokens
$4.75/ 1M tokens

Modalities

textimage→text

Capabilities

Vision

Pricing Breakdown

TypeRate
Input$1.19 / 1M tokens
Output$4.75 / 1M tokens

Supported Parameters

max_tokenstoolstool_choiceresponse_formatreasoningstop

Specifications

Release date2025-04-16openai.com β†—verified
Training cutoff2024-06-01developers.openai.com β†—verified
Model snapshoto4-mini-2025-04-16developers.openai.com β†—verified
Predecessoro3-mini (January 2025)openai.com β†—verified
SuccessorGPT-5 Mini β†’ GPT-5.4-minidevelopers.openai.com β†—verified
Fine-tuningSupported (ft-o4-mini deprecated Oct 2026)developers.openai.com β†—verified

Benchmarks

BenchmarkDistributionScoreSource
AIME 2025 (with Python)
With Python interpreter access. 100% consensus@8. Best-performing benchmarked model on AIME at launch.
99.5% pass@1%openai.com β†—
AIME 2024
Best-performing benchmarked model on AIME 2024 at launch (April 2025). Since surpassed by GPT-5 (95.7%). Third-party leaderboard score from pricepertoken.com as of May 2026.
94.0%%pricepertoken.com β†—
SWE-bench Verified
Real-world software engineering benchmark (n=477 verified tasks). Just behind o3 (69.1%) and ahead of o1 (48.9%) and o3-mini (49.3%).
68.1%%datacamp.com β†—
Codeforces
Set state-of-the-art for small reasoning models at launch. OpenAI blog states o4-mini pushed SOTA on Codeforces alongside o3. Exact numeric rating not separately published for o4-mini.
SOTA at releaseopenai.com β†—
MMMU
Multimodal understanding benchmark. Set state-of-the-art at launch for small models. o3 and o4-mini were the first reasoning models to integrate images into chain of thought.
SOTA at releaseopenai.com β†—

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

Chat completion

o4-mini is available through TheRouter's standard /v1/chat/completions endpoint. Use the same OpenAI SDK pattern as any other model β€” just change model to 'openai/o4-mini'. Note: deprecation announced; migrate to gpt-5.4-mini before Oct 2026.

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/o4-mini","messages":[{"role":"user","content":"Explain Bayes Theorem with a practical example."}]}'

More from openai

Similar models

Cross-provider sibling models

News & changes

2026-04-22

o4-mini officially deprecated β€” shutdown October 23, 2026

OpenAI announced the deprecation of o4-mini (snapshot o4-mini-2025-04-16) along with GPT-4o, GPT-4.1, and over a dozen other legacy models. The shutdown date is October 23, 2026. The official recommended replacement is gpt-5.4-mini. The fine-tuned variant ft-o4-mini-2025-04-16 is also deprecated with the same shutdown date. This is part of OpenAI's broader push to consolidate around the GPT-5 unified architecture.

re-authored by TheRouterdevelopers.openai.com β†—
2025-08-07

o4-mini removed from ChatGPT with GPT-5 launch

OpenAI launched GPT-5 and its unified reasoning architecture, removing all prior models from ChatGPT including o4-mini, o3, o3-pro, and GPT-4o. API access to o4-mini remained available β€” this change applied to ChatGPT consumers only. GPT-5 Mini became the direct successor in the product, later evolved into gpt-5.4-mini which is now the official replacement.

re-authored by TheRoutersimonwillison.net β†—
2025-04-16

OpenAI launches o4-mini β€” best model on AIME 2024 and 2025, with tool use and image reasoning

OpenAI released o4-mini alongside the flagship o3. o4-mini was the best-performing benchmarked model on AIME 2024 and 2025, achieving 99.5% pass@1 on AIME 2025 with Python. It was the first small reasoning model to integrate images into chain of thought, and outperformed o3-mini on non-STEM tasks. Priced at $1.10/$4.40 per million tokens, it was positioned as a fast, cost-efficient complement to o3.

re-authored by TheRouteropenai.com β†—

Recent coverage

Frequently asked

Is o4-mini deprecated? When will it stop working?

Yes. OpenAI announced o4-mini's deprecation on April 22, 2026. The shutdown date is October 23, 2026 β€” after which all o4-mini API calls (including the o4-mini-2025-04-16 snapshot and the fine-tuned ft-o4-mini variant) will return errors. The official replacement is gpt-5.4-mini. You should migrate before October 2026.

re-authored by TheRouterdevelopers.openai.com β†—
What should I migrate to from o4-mini?

The official OpenAI replacement is gpt-5.4-mini β€” it uses a unified reasoning architecture, delivers better benchmark performance, and is dramatically cheaper at $0.15/$0.60 per 1M tokens (vs o4-mini's $1.10/$4.40). If you need stronger reasoning, use gpt-5.5. If you want a cross-provider alternative, deepseek/deepseek-v4-flash offers competitive reasoning at similar price points. All are available through TheRouter with the same API pattern.

re-authored by TheRouterdevelopers.openai.com β†—
How is o4-mini different from o3?

o4-mini is a smaller, faster, and cheaper reasoning model optimized for throughput and cost efficiency ($1.10/$4.40 vs o3's $2/$8 per 1M tokens). o3 is the flagship with deeper reasoning β€” better at the hardest math, coding, and science problems. o4-mini was actually the best on some benchmarks (AIME 2024/2025) due to its efficiency, but o3 outclasses it on pure reasoning depth tasks like FrontierMath and GPQA Diamond. For most production workloads, o4-mini offered the better speed-cost-reasoning balance β€” which is why gpt-5.4-mini now fills that role even better.

re-authored by TheRouteropenai.com β†—
Can o4-mini use tools like web search and Python?

Yes. o4-mini was trained via reinforcement learning to use tools autonomously, reasoning about when and how to deploy them. It has full access to web search, Python execution, file analysis, visual reasoning, and memory within ChatGPT. In the API, it supports standard function calling β€” you define your own tools via the tools parameter, and o4-mini will decide when to call them and how to chain them together for multi-step workflows.

re-authored by TheRouteropenai.com β†—
Can o4-mini process images?

Yes. o4-mini was the first small reasoning model from OpenAI to integrate images directly into its chain of thought β€” it doesn't just see images, it reasons with them. You can upload charts, diagrams, whiteboard sketches, or even low-quality images, and the model can interpret and analyze them. It supports image input via the standard vision API format. However, o4-mini cannot generate images β€” it's text+image input, text-only output.

re-authored by TheRouteropenai.com β†—
Fact ledger β€” every claim on this page traces here
sourceURLretrieved
Release dateopenai.com β†—2026-05-30verified
Training cutoffdevelopers.openai.com β†—2026-05-30verified
Model snapshotdevelopers.openai.com β†—2026-05-30verified
Predecessoropenai.com β†—2026-05-30verified
Successordevelopers.openai.com β†—2026-05-30verified
Fine-tuningdevelopers.openai.com β†—2026-05-30verified
AIME 2025 (with Python)openai.com β†—2026-05-30verified
AIME 2024pricepertoken.com β†—2026-05-30to verify
SWE-bench Verifieddatacamp.com β†—2026-05-30to verify
Codeforcesopenai.com β†—2026-05-30single source
MMMUopenai.com β†—2026-05-30single source
o4-mini officially deprecated β€” shutdown October 23, 2026developers.openai.com β†—2026-05-30verified
o4-mini removed from ChatGPT with GPT-5 launchsimonwillison.net β†—2026-05-30verified
OpenAI launches o4-mini β€” best model on AIME 2024 and 2025, with tool use and image reasoningopenai.com β†—2026-05-30verified
Is o4-mini deprecated? When will it stop working?developers.openai.com β†—2026-05-30to verify
What should I migrate to from o4-mini?developers.openai.com β†—2026-05-30to verify
How is o4-mini different from o3?openai.com β†—2026-05-30to verify
Can o4-mini use tools like web search and Python?openai.com β†—2026-05-30to verify
Can o4-mini process images?openai.com β†—2026-05-30to verify
Help & contact