o4-mini
openai/o4-mini
o4-mini is a small reasoning model. It is suited for math, code review and planning steps inside agent loops where chain-of-thought quality matters.
Pricing & limits
Provider list price, passed through untouched. The only SwitchGate fee is 4.9% when you top up credits.
| Provider | OpenAI |
|---|---|
| Input price | $1.1 / 1M tokens |
| Output price | $4.4 / 1M tokens |
| Context window | 200K tokens |
| Added to catalog | 2026-05-20 |
| Tokens routed (30d) | 88.1B (placeholder) |
| Cache hits | 0 credits, always |
- Same governance as every model: per-user budgets, model locks, burnable keys and the kill switch apply automatically.
- Cross-provider failover: route around outages to sibling models with one retry policy.
- Exact cost per call on one ledger, whoever on your team calls it.
Call it in one line
from openai import OpenAI
client = OpenAI(
base_url="https://api.switchgate.ai/v1",
api_key="sg-live-…",
)
r = client.chat.completions.create(
model="openai/o4-mini",
messages=[{"role": "user", "content": "Bonjour!"}],
)
Works with any OpenAI-compatible SDK — JavaScript, Go, cURL and more on the quickstart. Compare quality and cost on benchmarks and rankings.
More from OpenAI
Route o4-mini in the next five minutes
Free trial credits, list-price pass-through, and a ledger that shows exactly what each call cost.