Last refreshed 2026-06-04. Next refresh: weekly.
Why use o3 Mini on OpenAI API?
OpenAI API offers o3 Mini with competitive pricing. OpenAI is a leading AI research and deployment company dedicated to developing safe and beneficial artificial general intelligence (AGI) for humanity.
Compare o3 Mini across 4 providers to find the best fit for your use caseInput / 1M
-
Output / 1M
-
Cache
Not sourced
Batch
in $0.15 / out $0.60
Setup recipe
Python + curlInstall
pip install openaiAuth
export OPENAI_API_KEY=...Call
import os
from openai import OpenAI
client = OpenAI() # reads OPENAI_API_KEY from env
response = client.chat.completions.create(Model ID
o3-miniRequest example
import os
from openai import OpenAI
client = OpenAI() # reads OPENAI_API_KEY from env
response = client.chat.completions.create(
model="o3-mini",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Gotchas
- Use the model slug directly, e.g. "gpt-4o" or "gpt-4.1-mini".
- The examples expect OPENAI_API_KEY; rename it only if your application config maps the new variable.
Compare o3 Mini Across Providers
| Provider | Input (per 1M) | Output (per 1M) |
|---|---|---|
| OpenRouter | $1.10 | $4.40 |
| Azure OpenAI | — | — |
| OpenAI API | — | — |
| Vercel AI Gateway | $1.10 | $4.40 |
Capabilities
ReasoningJSON / Tool useStructured OutputsCode ExecutionPrompt Caching
About o3 Mini
OpenAI o3-mini - cost-optimized reasoning model. Compact variant of reasoning model family.
Get Started
Model Specs
Released2025-01-31
Context200k
ArchitectureDecoder Only
Knowledge cutoff2025-04