Skip to content

OpenAI API Pricing

Last updated: 8m ago

Complete pricing breakdown for all 97 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.

$0.130
Cheapest ($/1M out)
gpt-oss-20b
$40000.00
Most Expensive ($/1M out)
DALL-E 3
1
Free Models
$449.81
Avg Output $/1M

OpenAI Model Pricing -- All Models

97 models sorted by output price
ModelInput $/1MOutput $/1M
gpt-oss-20b (free)FreeFree
SoraFreeFree
gpt-oss-20b$0.030$0.130
gpt-oss-120b$0.037$0.170
GPT-5 Nano (batch)$0.025$0.200
GPT-4.1 Nano (batch)$0.050$0.200
gpt-oss-safeguard-20b$0.075$0.300
GPT-4o-mini (batch)$0.075$0.300
GPT-5 Nano$0.050$0.400
GPT-4.1 Nano$0.100$0.400
GPT-5.6 Luna Pro$0.100$0.600
GPT-5.6 Luna Pro (batch)$0.100$0.600
GPT-5.6 Luna$0.100$0.600
GPT-5.6 Luna (batch)$0.100$0.600
GPT-4o-mini$0.150$0.600
GPT-4o-mini (2024-07-18)$0.150$0.600
GPT-5.4 Nano (batch)$0.100$0.625
GPT-3.5 Turbo (batch)$0.250$0.750
GPT-4.1 Mini (batch)$0.200$0.800
GPT-5 Mini (batch)$0.125$1.00
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
o4 Mini High (batch)$0.550$2.20
o4 Mini (batch)$0.550$2.20
o3 Mini High (batch)$0.550$2.20
o3 Mini (batch)$0.550$2.20
GPT-5.4 Mini (batch)$0.375$2.25
GPT Audio Mini$0.600$2.40
o3 (batch)$1.00$4.00
GPT-4.1 (batch)$1.00$4.00
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
GPT-5.1 (batch)$0.625$5.00
GPT-5 Codex (batch)$0.625$5.00
GPT-5 (batch)$0.625$5.00
GPT-4o (batch)$1.25$5.00
GPT-5.6 Terra Pro$1.00$6.00
GPT-5.6 Terra Pro (batch)$1.00$6.00
GPT-5.6 Terra$1.00$6.00
GPT-5.6 Terra (batch)$1.00$6.00
GPT-5.2 (batch)$0.875$7.00
GPT-5.4 (batch)$1.25$7.50
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-Codex$1.25$10.00
GPT-5 Image$10.00$10.00
GPT-5$1.25$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
GPT-5.6 Sol Pro (batch)$2.50$15.00
GPT-5.6 Sol (batch)$2.50$15.00
GPT-5.5 (batch)$2.50$15.00
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-4 Turbo (batch)$5.00$15.00
GPT-5.6 Sol Pro$5.00$30.00
GPT-5.6 Sol$5.00$30.00
GPT Chat Latest$5.00$30.00
GPT-5.5$5.00$30.00
o1 (batch)$7.50$30.00
GPT-4 Turbo$10.00$30.00
GPT-4 Turbo Preview$10.00$30.00
o3 Pro (batch)$10.00$40.00
GPT-5 Pro (batch)$7.50$60.00
o1$15.00$60.00
GPT-4$30.00$60.00
o3 Pro$20.00$80.00
GPT-5.2 Pro (batch)$10.50$84.00
GPT-5.5 Pro (batch)$15.00$90.00
GPT-5.4 Pro (batch)$15.00$90.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 (batch)$75.00$300.00
o1-pro$150.00$600.00
DALL-E 3Free$40000.00

OpenAI Pricing by Tier

Free

$0 -- 2 models
ModelInput $/1MOutput $/1M
gpt-oss-20b (free)FreeFree
SoraFreeFree

Under $1

$0.01 -- $0.99 -- 17 models
ModelInput $/1MOutput $/1M
gpt-oss-20b$0.030$0.130
gpt-oss-120b$0.037$0.170
GPT-5 Nano (batch)$0.025$0.200
GPT-4.1 Nano (batch)$0.050$0.200
gpt-oss-safeguard-20b$0.075$0.300
GPT-4o-mini (batch)$0.075$0.300
GPT-5 Nano$0.050$0.400
GPT-4.1 Nano$0.100$0.400
GPT-5.6 Luna Pro$0.100$0.600
GPT-5.6 Luna Pro (batch)$0.100$0.600
GPT-5.6 Luna$0.100$0.600
GPT-5.6 Luna (batch)$0.100$0.600
GPT-4o-mini$0.150$0.600
GPT-4o-mini (2024-07-18)$0.150$0.600
GPT-5.4 Nano (batch)$0.100$0.625
GPT-3.5 Turbo (batch)$0.250$0.750
GPT-4.1 Mini (batch)$0.200$0.800

$1 -- $5

$1.00 -- $4.99 -- 23 models
ModelInput $/1MOutput $/1M
GPT-5 Mini (batch)$0.125$1.00
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
o4 Mini High (batch)$0.550$2.20
o4 Mini (batch)$0.550$2.20
o3 Mini High (batch)$0.550$2.20
o3 Mini (batch)$0.550$2.20
GPT-5.4 Mini (batch)$0.375$2.25
GPT Audio Mini$0.600$2.40
o3 (batch)$1.00$4.00
GPT-4.1 (batch)$1.00$4.00
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

$5 -- $15

$5.00 -- $14.99 -- 26 models
ModelInput $/1MOutput $/1M
GPT-5.1 (batch)$0.625$5.00
GPT-5 Codex (batch)$0.625$5.00
GPT-5 (batch)$0.625$5.00
GPT-4o (batch)$1.25$5.00
GPT-5.6 Terra Pro$1.00$6.00
GPT-5.6 Terra Pro (batch)$1.00$6.00
GPT-5.6 Terra$1.00$6.00
GPT-5.6 Terra (batch)$1.00$6.00
GPT-5.2 (batch)$0.875$7.00
GPT-5.4 (batch)$1.25$7.50
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-Codex$1.25$10.00
GPT-5 Image$10.00$10.00
GPT-5$1.25$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

$15+

$15.00+ -- 29 models
ModelInput $/1MOutput $/1M
GPT-5.6 Sol Pro (batch)$2.50$15.00
GPT-5.6 Sol (batch)$2.50$15.00
GPT-5.5 (batch)$2.50$15.00
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-4 Turbo (batch)$5.00$15.00
GPT-5.6 Sol Pro$5.00$30.00
GPT-5.6 Sol$5.00$30.00
GPT Chat Latest$5.00$30.00
GPT-5.5$5.00$30.00
o1 (batch)$7.50$30.00
GPT-4 Turbo$10.00$30.00
GPT-4 Turbo Preview$10.00$30.00
o3 Pro (batch)$10.00$40.00
GPT-5 Pro (batch)$7.50$60.00
o1$15.00$60.00
GPT-4$30.00$60.00
o3 Pro$20.00$80.00
GPT-5.2 Pro (batch)$10.50$84.00
GPT-5.5 Pro (batch)$15.00$90.00
GPT-5.4 Pro (batch)$15.00$90.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 (batch)$75.00$300.00
o1-pro$150.00$600.00
DALL-E 3Free$40000.00

OpenAI vs Anthropic vs Google -- Pricing Comparison

See how OpenAI API pricing stacks up against Anthropic (Claude) and Google (Gemini) models. All prices in USD per million tokens.

OpenAI

97 models
ModelInOut
gpt-oss-20b (free)FreeFree
SoraFreeFree
gpt-oss-20b$0.030$0.130
gpt-oss-120b$0.037$0.170
GPT-5 Nano (batch)$0.025$0.200
GPT-4.1 Nano (batch)$0.050$0.200
gpt-oss-safeguard-20b$0.075$0.300
GPT-4o-mini (batch)$0.075$0.300

Anthropic

28 models

Google

41 models

OpenAI API Cost Calculator

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.130
GPT-5 Mini$0.250$2.00
GPT-5.6 Terra (batch)$1.00$6.00
GPT-4o (2024-05-13)$5.00$15.00
DALL-E 3Free$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.

Understanding OpenAI API Pricing

Token-Based Billing

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 vs GPT-4o Mini

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.

o-Series Reasoning Premium

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.

Saving on API Costs

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.

OpenAI API Pricing FAQ

GPT-4o pricing is $1.25/1M input tokens and $5.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 1 free model 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.130/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 $449.81/1M tokens across 95 paid models. Anthropic offers 28 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.

OpenAI API Pricing - All Models (2026) | LM Market Cap