Complete pricing breakdown for all 67 OpenAI API models. Compare input and output costs per million tokens for GPT-4o, o3, o1, GPT-4o Mini, and every other model. Includes a cost calculator and side-by-side comparison with Anthropic and Google.
| Model | Input $/1M | Output $/1M |
|---|---|---|
| gpt-oss-120b (free) | Free | Free |
| gpt-oss-20b (free) | Free | Free |
| Sora | Free | Free |
| Model | Input $/1M | Output $/1M |
|---|---|---|
| gpt-oss-20b | $0.030 | $0.140 |
| gpt-oss-120b | $0.039 | $0.180 |
| gpt-oss-safeguard-20b | $0.075 | $0.300 |
| GPT-5 Nano | $0.050 | $0.400 |
| GPT-4.1 Nano | $0.100 | $0.400 |
| GPT-4o-mini Search Preview | $0.150 | $0.600 |
| GPT-4o-mini (2024-07-18) | $0.150 | $0.600 |
| GPT-4o-mini | $0.150 | $0.600 |
| Model | Input $/1M | Output $/1M |
|---|---|---|
| GPT-5.4 Nano | $0.200 | $1.25 |
| GPT-3.5 Turbo | $0.500 | $1.50 |
| GPT-4.1 Mini | $0.400 | $1.60 |
| GPT-5.1-Codex-Mini | $0.250 | $2.00 |
| GPT-5 Image Mini | $2.50 | $2.00 |
| GPT-5 Mini | $0.250 | $2.00 |
| GPT-3.5 Turbo (older v0613) | $1.00 | $2.00 |
| GPT-3.5 Turbo Instruct | $1.50 | $2.00 |
| GPT Audio Mini | $0.600 | $2.40 |
| GPT-3.5 Turbo 16k | $3.00 | $4.00 |
| o4 Mini High | $1.10 | $4.40 |
| o4 Mini | $1.10 | $4.40 |
| o3 Mini High | $1.10 | $4.40 |
| o3 Mini | $1.10 | $4.40 |
| GPT-5.4 Mini | $0.750 | $4.50 |
| Model | Input $/1M | Output $/1M |
|---|---|---|
| o4 Mini Deep Research | $2.00 | $8.00 |
| o3 | $2.00 | $8.00 |
| GPT-4.1 | $2.00 | $8.00 |
| GPT Audio | $2.50 | $10.00 |
| GPT-5.1-Codex-Max | $1.25 | $10.00 |
| GPT-5.1 | $1.25 | $10.00 |
| GPT-5.1 Chat | $1.25 | $10.00 |
| GPT-5.1-Codex | $1.25 | $10.00 |
| GPT-5 Image | $10.00 | $10.00 |
| GPT-5 Codex | $1.25 | $10.00 |
| GPT-4o Audio | $2.50 | $10.00 |
| GPT-5 Chat | $1.25 | $10.00 |
| GPT-5 | $1.25 | $10.00 |
| GPT-4o Search Preview | $2.50 | $10.00 |
| GPT-4o (2024-11-20) | $2.50 | $10.00 |
| GPT-4o (2024-08-06) | $2.50 | $10.00 |
| GPT-4o | $2.50 | $10.00 |
| GPT-5.3 Chat | $1.75 | $14.00 |
| GPT-5.3-Codex | $1.75 | $14.00 |
| GPT-5.2-Codex | $1.75 | $14.00 |
| GPT-5.2 Chat | $1.75 | $14.00 |
| GPT-5.2 | $1.75 | $14.00 |
| Model | Input $/1M | Output $/1M |
|---|---|---|
| GPT-5.4 Image 2 | $8.00 | $15.00 |
| GPT-5.4 | $2.50 | $15.00 |
| GPT-4o (2024-05-13) | $5.00 | $15.00 |
| GPT Chat Latest | $5.00 | $30.00 |
| GPT-5.5 | $5.00 | $30.00 |
| GPT-4 Turbo | $10.00 | $30.00 |
| GPT-4 Turbo Preview | $10.00 | $30.00 |
| GPT-4 Turbo (older v1106) | $10.00 | $30.00 |
| o3 Deep Research | $10.00 | $40.00 |
| o1 | $15.00 | $60.00 |
| GPT-4 (older v0314) | $30.00 | $60.00 |
| GPT-4 | $30.00 | $60.00 |
| o3 Pro | $20.00 | $80.00 |
| GPT-5 Pro | $15.00 | $120.00 |
| GPT-5.2 Pro | $21.00 | $168.00 |
| GPT-5.5 Pro | $30.00 | $180.00 |
| GPT-5.4 Pro | $30.00 | $180.00 |
| o1-pro | $150.00 | $600.00 |
| DALL-E 3 | Free | $40000.00 |
See how OpenAI API pricing stacks up against Anthropic (Claude) and Google (Gemini) models. All prices in USD per million tokens.
| Model | In | Out |
|---|---|---|
| gpt-oss-120b (free) | Free | Free |
| gpt-oss-20b (free) | Free | Free |
| Sora | Free | Free |
| gpt-oss-20b | $0.030 | $0.140 |
| gpt-oss-120b | $0.039 | $0.180 |
| gpt-oss-safeguard-20b | $0.075 | $0.300 |
| GPT-5 Nano | $0.050 | $0.400 |
| GPT-4.1 Nano | $0.100 | $0.400 |
| Model | In | Out |
|---|---|---|
| Claude 3 Haiku | $0.250 | $1.25 |
| Claude 3.5 Haiku | $0.800 | $4.00 |
| Claude Haiku 4.5 | $1.00 | $5.00 |
| Claude Sonnet 4.6 | $3.00 | $15.00 |
| Claude Sonnet 4.5 | $3.00 | $15.00 |
| Claude Sonnet 4 | $3.00 | $15.00 |
| Claude 3.7 Sonnet | $3.00 | $15.00 |
| Claude 3.7 Sonnet (thinking) | $3.00 | $15.00 |
| Model | In | Out |
|---|---|---|
| Gemma 4 26B A4B (free) | Free | Free |
| Gemma 4 31B (free) | Free | Free |
| Lyria 3 Pro Preview | Free | Free |
| Lyria 3 Clip Preview | Free | Free |
| Gemma 3 4B | $0.040 | $0.080 |
| Gemma 3n 4B | $0.060 | $0.120 |
| Gemma 3 12B | $0.040 | $0.130 |
| Gemma 3 27B | $0.080 | $0.160 |
Estimated costs based on common OpenAI API usage. Calculations assume ~1,000 input tokens and ~500 output tokens per request, typical for conversational AI and content generation workloads.
| Model | $/1M In | $/1M Out |
|---|---|---|
| gpt-oss-20b | $0.030 | $0.140 |
| GPT Audio Mini | $0.600 | $2.40 |
| GPT-5 Codex | $1.25 | $10.00 |
| GPT Chat Latest | $5.00 | $30.00 |
| DALL-E 3 | Free | $40000.00 |
Note: Actual costs vary with prompt length, response length, prompt caching, and batch API discounts (50% off). OpenAI also offers volume discounts for enterprise customers. Try the interactive calculator for custom estimates.
OpenAI charges per token, not per request. Their tokenizer (cl100k for GPT-4o, o200k for o3) splits text into subword units - "Hello, how are you?" becomes about 6 tokens. Prices are quoted per million tokens, with input tokens (your prompts) typically 3-4x cheaper than output tokens. OpenAI's pricing page shows exact per-model rates.
GPT-4o is OpenAI's flagship multimodal model with top-tier performance. GPT-4o Mini delivers strong results at a fraction of the cost, making it the go-to choice for high-volume production workloads where cost efficiency matters more than peak capability.
The o1 and o3 reasoning models use extended chain-of-thought to solve complex problems. This "thinking" process consumes additional tokens, making reasoning models more expensive per request. However, they often solve problems in fewer attempts, which can reduce total cost for difficult tasks.
Use prompt caching to reduce input costs by up to 90% for repeated prefixes. The Batch API offers 50% discounts for non-urgent workloads. Start with GPT-4o Mini and only upgrade to GPT-4o or o3 when the task requires it.
Full model lineup with scores, capabilities, and rankings.
Compare pricing across 350+ models from 55+ providers.
Browse pricing for coding, image generation, and more.
Dedicated pricing breakdown for OpenAI Codex models.
GPT-4o pricing is $2.50/1M input tokens and $10.00/1M output tokens. A token is roughly 3/4 of a word, so 1 million tokens is approximately 750,000 words. For most conversational use cases, a single request costs fractions of a cent.
OpenAI offers 2 free models via their API. New accounts receive a small amount of free credits to get started. After that, usage is billed per token. For production use, you will need a paid account. Some models like GPT-4o Mini are extremely affordable for high-volume workloads.
The cheapest paid OpenAI model is gpt-oss-20b at $0.030/1M input and $0.140/1M output tokens. It offers 131K context window and supports function calling, and JSON mode.
OpenAI and Anthropic (Claude) have similar pricing structures. OpenAI's average output price is $656.61/1M tokens across 64 paid models. Anthropic offers 14 models with varying price points. For the most accurate comparison, see our side-by-side pricing table above which compares specific model tiers across both providers.
OpenAI charges per token for API usage. Their GPT-4o tokenizer encodes text into subword pieces - a typical English word splits into 1-2 tokens. Pricing is split into input and output, with output costing 3-4x more. The Batch API offers 50% discounts for async workloads, and prompt caching reduces repeated input costs by up to 90%.
Yes. OpenAI's Batch API offers a 50% discount on input and output tokens for non-time-sensitive workloads. Batch requests are processed within a 24-hour window, making them ideal for data processing, content generation pipelines, and evaluation runs.