o4-mini API
OpenAI's fast, cost-efficient small o-series reasoning model, optimized for coding and visual tasks. Succeeded by GPT-5 Mini.
openai/o4-mini
Top up $20 and we add 50%. That gives you about 9.1M input tokens extra on this model, on us.
Create an accountThis model now points to GPT-6 Luna
openai/o4-mini has been replaced by GPT-6 Luna on 25 October 2026. Requests naming openai/o4-mini continue to work and are served by the replacement. New work should name the replacement directly.
Pricing
USD per 1M tokens| Input | $1.10 |
| Output | $4.40 |
| Cached input | $0.2875% below fresh input |
Billed per token with no minimum and no monthly fee. Price your workload
Capabilities and limits
- Context window
- 195K tokens
- Max output
- 98K tokens
- Modality
- multimodal
- Tool calling
- Supported
- Vision
- Supported
- Reasoning
- Always on
- Reasoning effort
- low, medium, high (default: medium)
- Prompt caching
- Supported (automatic)
Routing
Run BiOS manages capacity for this model and fails over automatically, so there is nothing to provision and no outage of ours becomes yours.
Not sure which model to use? BiOS Adaptive routes to the best model per request, including this one.
curl https://api.runbios.ai/v1/chat/completions \
-H "Authorization: Bearer $BIOS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/o4-mini",
"messages": [{ "role": "user", "content": "Hello" }]
}'Existing OpenAI SDK code works by changing the base URL and the key. API overview
Model card
Curated by Run BiOS · benchmark figures, where present, are the card’s own, not our measurements
o4-mini is OpenAI's latest small o-series model. It is optimized for fast, effective reasoning with exceptionally efficient performance in coding and visual tasks. It is succeeded by GPT-5 Mini.
Model details
| Property | Value |
|---|---|
| Developer | OpenAI |
| Model ID | o4-mini |
| OpenAI default snapshot | o4-mini-2025-04-16 |
| Input | Text, image |
| Output | Text |
| Context window | 200,000 tokens |
| Max output tokens | 100,000 |
| Knowledge cutoff | Jun 01, 2024 |
| Reasoning | Yes |
Details above are from OpenAI's official model page. Context window and input types are as served on Run BiOS.
On Run BiOS
- Always reasons. Reasoning levels
low,medium,high. The default ismedium. This model cannot turn reasoning off: a request for no reasoning runs at the lowest available level. - Reasoning summaries. When reasoning is on, OpenAI may return a summary of the model's reasoning: in
reasoning_contenton the OpenAI API, and in thinking blocks on the Anthropic Messages API whenthinking.displayissummarized. OpenAI does not return a summary for every request. - Tool calling. Function tools with
tool_choiceauto, required, a named function or none, including parallel tool calls and together with reasoning. - Structured outputs.
response_formatwithjson_schemaorjson_object. - Image input. Text and image input, text output.
- Sampling parameters.
temperature,top_p, penalties,stopandseedare not applied to this model on Run BiOS, because it always reasons. The request is still served. - Prompt caching. Automatic for repeated prompt prefixes. The minimum cacheable length varies with the request. Cache reads bill at the cached-input rate, and there is no separate charge for cache writes. Send a stable
prompt_cache_keyto improve cache hits. - Two APIs. Works with the OpenAI Chat Completions API (
/v1/chat/completions) and the Anthropic Messages API (/v1/messages).