LLM Reference
OpenAI API

o3 Mini on OpenAI API

o3 · OpenAI

Serverless

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 case
Input / 1M
-
Output / 1M
-
Cache
Not sourced
Batch
in $0.15 / out $0.60

Setup recipe

Python + curl
Install
pip install openai
Auth
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-mini

Request 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

ProviderInput (per 1M)Output (per 1M)
OpenRouter$1.10$4.40
Azure OpenAI
OpenAI API
Vercel AI Gateway$1.10$4.40

Capabilities

ReasoningFunction CallingTool UseStructured OutputsCode ExecutionPrompt Caching

About o3 Mini

OpenAI o3-mini - cost-optimized reasoning model. Compact variant of reasoning model family.

FAQ

What is the context window for o3 Mini on OpenAI API?

o3 Mini supports a 200k token context window on OpenAI API.

How does OpenAI API compare to other o3 Mini providers?

o3 Mini is available from 4 providers. The cheapest input pricing is $1.1/1M tokens from OpenRouter.

Who created o3 Mini?

o3 Mini was created by OpenAI as part of the o3 model family.

Is o3 Mini open source?

o3 Mini is not open source; the seed data lists it as proprietary.

Get Started

Model Specs

Released2025-01-31
Context200k
ArchitectureDecoder Only
Knowledge cutoff2025-04

Related Models on OpenAI API