Skip to content

OpenAI API Pricing

Last updated: 20m ago

Complete pricing breakdown for all 100 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.053
Cheapest ($/1M out)
gpt-oss-120b
$40000.00
Most Expensive ($/1M out)
DALL-E 3
0
Free Models
$422.29
Avg Output $/1M

OpenAI Model Pricing -- All Models

100 models sorted by output price
ModelInput $/1MOutput $/1M
SoraFreeFree
gpt-oss-120b$0.014$0.053
gpt-oss-20b (batch)$0.024$0.112
gpt-oss-20b$0.030$0.130
gpt-oss-120b (batch)$0.030$0.136
GPT-5 Nano (batch)$0.025$0.200
GPT-4.1 Nano (batch)$0.050$0.200
GPT-6 Luna Pro (batch)$0.050$0.250
GPT-6 Luna (batch)$0.050$0.250
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-6 Luna Pro$0.100$0.500
GPT-6 Luna$0.100$0.500
GPT-5.6 Luna Pro (batch)$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-4.1 Mini (batch)$0.200$0.800
GPT-5 Mini (batch)$0.125$1.00
GPT-5.6 Luna Pro$0.200$1.20
GPT-5.6 Luna$0.200$1.20
GPT-5.4 Nano$0.200$1.25
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
o4 Mini (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
GPT-6.1 Terra Pro (batch)$0.500$2.50
GPT-6.1 Terra (batch)$0.500$2.50
o3 (batch)$1.00$4.00
GPT-4.1 (batch)$1.00$4.00
GPT-3.5 Turbo 16k$3.00$4.00
GPT-5.4 Mini$0.750$4.50
GPT-6.1 Terra Pro$1.00$5.00
GPT-6.1 Terra$1.00$5.00
GPT-6.1 Sol Pro (batch)$1.00$5.00
GPT-6.1 Sol (batch)$1.00$5.00
GPT-6 Sol Pro (batch)$1.00$5.00
GPT-6 Sol (batch)$1.00$5.00
GPT-5.1 (batch)$0.625$5.00
GPT-5 (batch)$0.625$5.00
GPT-4o (batch)$1.25$5.00
GPT-5.6 Terra Pro (batch)$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-6.1 Sol Pro$2.00$10.00
GPT-6.1 Sol$2.00$10.00
GPT-6 Sol Pro$2.00$10.00
GPT-6 Sol$2.00$10.00
GPT-5.6 Sol Pro (batch)$2.00$10.00
GPT-5.6 Sol (batch)$2.00$10.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.6 Terra Pro$2.00$12.00
GPT-5.6 Terra$2.00$12.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.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$4.00$20.00
GPT-5.6 Sol$4.00$20.00
GPT-6 Astra (batch)$5.00$25.00
GPT-6 Astra Pro (batch)$5.00$25.00
GPT Chat Latest$5.00$30.00
GPT-5.5$5.00$30.00
GPT-6 Astra$10.00$50.00
GPT-6 Astra Pro$10.00$50.00
GPT-5 Pro (batch)$7.50$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
DALL-E 3Free$40000.00

OpenAI Pricing by Tier

Free

$0 -- 1 model
ModelInput $/1MOutput $/1M
SoraFreeFree

Under $1

$0.01 -- $0.99 -- 20 models
ModelInput $/1MOutput $/1M
gpt-oss-120b$0.014$0.053
gpt-oss-20b (batch)$0.024$0.112
gpt-oss-20b$0.030$0.130
gpt-oss-120b (batch)$0.030$0.136
GPT-5 Nano (batch)$0.025$0.200
GPT-4.1 Nano (batch)$0.050$0.200
GPT-6 Luna Pro (batch)$0.050$0.250
GPT-6 Luna (batch)$0.050$0.250
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-6 Luna Pro$0.100$0.500
GPT-6 Luna$0.100$0.500
GPT-5.6 Luna Pro (batch)$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-4.1 Mini (batch)$0.200$0.800

$1 -- $5

$1.00 -- $4.99 -- 19 models
ModelInput $/1MOutput $/1M
GPT-5 Mini (batch)$0.125$1.00
GPT-5.6 Luna Pro$0.200$1.20
GPT-5.6 Luna$0.200$1.20
GPT-5.4 Nano$0.200$1.25
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
o4 Mini (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
GPT-6.1 Terra Pro (batch)$0.500$2.50
GPT-6.1 Terra (batch)$0.500$2.50
o3 (batch)$1.00$4.00
GPT-4.1 (batch)$1.00$4.00
GPT-3.5 Turbo 16k$3.00$4.00
GPT-5.4 Mini$0.750$4.50

$5 -- $15

$5.00 -- $14.99 -- 36 models
ModelInput $/1MOutput $/1M
GPT-6.1 Terra Pro$1.00$5.00
GPT-6.1 Terra$1.00$5.00
GPT-6.1 Sol Pro (batch)$1.00$5.00
GPT-6.1 Sol (batch)$1.00$5.00
GPT-6 Sol Pro (batch)$1.00$5.00
GPT-6 Sol (batch)$1.00$5.00
GPT-5.1 (batch)$0.625$5.00
GPT-5 (batch)$0.625$5.00
GPT-4o (batch)$1.25$5.00
GPT-5.6 Terra Pro (batch)$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-6.1 Sol Pro$2.00$10.00
GPT-6.1 Sol$2.00$10.00
GPT-6 Sol Pro$2.00$10.00
GPT-6 Sol$2.00$10.00
GPT-5.6 Sol Pro (batch)$2.00$10.00
GPT-5.6 Sol (batch)$2.00$10.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.6 Terra Pro$2.00$12.00
GPT-5.6 Terra$2.00$12.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+ -- 24 models
ModelInput $/1MOutput $/1M
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$4.00$20.00
GPT-5.6 Sol$4.00$20.00
GPT-6 Astra (batch)$5.00$25.00
GPT-6 Astra Pro (batch)$5.00$25.00
GPT Chat Latest$5.00$30.00
GPT-5.5$5.00$30.00
GPT-6 Astra$10.00$50.00
GPT-6 Astra Pro$10.00$50.00
GPT-5 Pro (batch)$7.50$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
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

100 models
ModelInOut
SoraFreeFree
gpt-oss-120b$0.014$0.053
gpt-oss-20b (batch)$0.024$0.112
gpt-oss-20b$0.030$0.130
gpt-oss-120b (batch)$0.030$0.136
GPT-5 Nano (batch)$0.025$0.200
GPT-4.1 Nano (batch)$0.050$0.200
GPT-6 Luna Pro (batch)$0.050$0.250

Google

45 models
ModelInOut
Gemma 4 26B A4B (free)FreeFree
Gemma 4 31B (free)FreeFree
Lyria 3 Pro PreviewFreeFree
Lyria 3 Clip PreviewFreeFree
Gemma 3 4B$0.050$0.100
Gemma 3 12B$0.050$0.150
Gemma 4 26B A4B $0.068$0.225
Gemma 3 27B$0.080$0.350

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-120b$0.014$0.053
GPT-4.1 Mini$0.400$1.60
GPT-5.6 Terra (batch)$1.00$6.00
GPT-5.2$1.75$14.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 0 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-120b at $0.014/1M input and $0.053/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 $422.29/1M tokens across 99 paid models. Anthropic offers 30 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