OpenAI API Pricing Explained (2026 Guide)
Understand current OpenAI API pricing across GPT-6 Astra, GPT-5.6 Sol, Terra and Luna, Standard, Batch, Flex and Fast processing, image models, tools, and practical cost estimation.
OpenAI frontier models
Astra leads the frontier.
Choose Astra for the hardest end-to-end work, Sol for a lower-priced flagship, Terra for balance, or Luna for cost-sensitive scale.
USD per 1M tokens · Standard · short context
GPT-6 Astra
OpenAI’s most capable model for hard end-to-end and agentic work.
- Model ID
gpt-6-astra- Reasoning
- lowmediumhighxhighmax
- Input
- $10.00
- Cached input
- $1.00
- Cache write
- $12.50
- Output
- $50.00
- Max output
- 128K tokens
- Context window
- 1.05M
- Knowledge cutoff
- Apr 30, 2026
- Tools
- Functions, Web search, File search, Computer use
GPT-5.6 Sol
Frontier reasoning and coding for complex professional work.
- Model ID
gpt-5.6-sol- Alias
gpt-5.6- Reasoning
- nonelowmediumhighxhighmax
- Input
- $4.00
- Cached input
- $0.40
- Cache write
- $5.00
- Output
- $20.00
- Max output
- 128K tokens
- Context window
- 1.05M
- Knowledge cutoff
- Feb 16, 2026
- Tools
- Functions, Web search, File search, Computer use
GPT-5.6 Terra
Balanced intelligence and cost for everyday production workloads.
- Model ID
gpt-5.6-terra- Reasoning
- nonelowmediumhighxhighmax
- Input
- $2.00
- Cached input
- $0.20
- Cache write
- $2.50
- Output
- $12.00
- Max output
- 128K tokens
- Context window
- 1.05M
- Knowledge cutoff
- Feb 16, 2026
- Tools
- Functions, Web search, File search, Computer use
GPT-5.6 Luna
Cost-sensitive, high-volume intelligence with frontier-family controls.
- Model ID
gpt-5.6-luna- Reasoning
- nonelowmediumhighxhighmax
- Input
- $0.20
- Cached input
- $0.02
- Cache write
- $0.25
- Output
- $1.20
- Max output
- 128K tokens
- Context window
- 1.05M
- Knowledge cutoff
- Feb 16, 2026
- Tools
- Functions, Web search, File search, Computer use
OpenAI Frontier Models: GPT-6 Astra and GPT-5.6
GPT-6 Astra now leads OpenAI's frontier lineup for the hardest end-to-end and agentic work. The GPT-5.6 family remains available in three cost and capability tiers: Sol for flagship professional work, Terra for balance, and Luna for cost-sensitive, high-volume workloads.
At Standard short-context rates, Astra costs $10.00 input and $50.00 output per 1M tokens; Sol costs $4.00 input and $20.00 output; Terra costs $2.00 input and $12.00 output; Luna costs $0.20 input and $1.20 output.
Astra supports reasoning effort from low through max, while the GPT-5.6 models also support none. The visual comparison above is a price snapshot checked on September 9, 2026, not a live billing feed. See our GPT-6 Astra API guide for long-context pricing and migration details.
- Astra: $10.00 input · $1.00 cached input · $12.50 cache write · $50.00 output
- Sol: $4.00 input · $0.40 cached input · $5.00 cache write · $20.00 output
- Terra: $2.00 input · $0.20 cached input · $2.50 cache write · $12.00 output
- Luna: $0.20 input · $0.02 cached input · $0.25 cache write · $1.20 output
- All four: 128K maximum output · 1.05M context window
- Tools: Functions · Web search · File search · Computer use
How OpenAI API Pricing Works
OpenAI charges per token, not per request. A token is roughly 4 characters of English text, or about 3/4 of a word. A 1,000-word English article is approximately 1,300 tokens. The complete OpenAI guide provides broader context on how pricing fits into the overall API workflow.
Every API call has two token counts: input tokens (the prompt you send) and output tokens (the model's response). These are billed at different rates — output tokens are typically 3-4x more expensive than input tokens.
Chinese text uses more tokens per character than English because tokenizers are optimized for Latin scripts. A Chinese character typically costs 1-2 tokens, so factor this in when estimating costs for Chinese-language applications.
GPT-4o & GPT-4o-mini Pricing
GPT-4o is OpenAI's flagship multimodal model, supporting text, image, and audio inputs. GPT-4o-mini is the cost-optimized version, recommended for most general-purpose tasks.
- GPT-4o: $2.50 / 1M input tokens, $10.00 / 1M output tokens
- GPT-4o: $1.25 / 1M cached input tokens (50% discount)
- GPT-4o-mini: $0.15 / 1M input tokens, $0.60 / 1M output tokens
- GPT-4o-mini: $0.075 / 1M cached input tokens (50% discount)
o-Series Reasoning Model Pricing
The o-series models (o1, o3, o4-mini) are designed for complex reasoning tasks like math, coding, and scientific analysis. They use internal reasoning tokens that are billed as output tokens, so workload cost depends on more than the visible answer length.
Because reasoning models generate extensive internal chain-of-thought before producing the final answer, the actual output token count can be much higher than the visible response length. Always test with real workloads to understand the actual cost.
- o3: $2.00 / 1M input tokens, $8.00 / 1M output tokens
- o3-mini: $1.10 / 1M input tokens, $4.40 / 1M output tokens
- o4-mini: $1.10 / 1M input tokens, $4.40 / 1M output tokens
- o-series cached input: 75% discount (e.g., o3-mini at $0.275 / 1M)
Cached Input Token Discount
OpenAI offers prompt caching for repeated prefixes. If your API requests share the same leading prompt (e.g., system instructions, few-shot examples), the cached portion is billed at a 50% discount for GPT-4o models and 75% for o-series models.
Caching is automatic — you don't need to configure anything. The cache typically persists for 5-10 minutes of inactivity, and the minimum cacheable prefix is 1,024 tokens. For applications with long system prompts, caching can significantly reduce costs.
Batch API (50% Discount)
If your use case doesn't require real-time responses, the Batch API offers a 50% discount on all models. You submit a batch of requests (up to 50,000 per file), and OpenAI processes them within 24 hours (typically much faster).
Batch API is ideal for bulk processing tasks like content classification, document summarization, data enrichment, and evaluation runs. The request format is identical to the standard API — you only need to wrap your requests in a JSONL file and submit it via the batch endpoint. If batch requests fail with 429 errors, troubleshooting rate limit errors can help you identify whether the issue is concurrency or quota.
Standard, Batch, Flex, and Fast Mode
Processing tier changes both price and delivery characteristics. Standard is the baseline for normal synchronous requests. Batch and Flex use discounted rates for workloads that can accept delayed or variable processing. Fast mode charges a premium for prioritized processing.
For GPT-5.6 Sol, Terra, and Luna, Batch and Flex short-context prices are 50% of Standard. Fast mode is 2x Standard for these three models. Select a tier based on latency requirements rather than treating the discounted tiers as temporary promotions.
- Sol input/output — Standard $5/$30 · Batch or Flex $2.50/$15 · Fast $10/$60
- Terra input/output — Standard $2/$12 · Batch or Flex $1/$6 · Fast $4/$24
- Luna input/output — Standard $0.20/$1.20 · Batch or Flex $0.10/$0.60 · Fast $0.40/$2.40
- Long-context rates are higher and should be calculated separately when the request crosses the documented context threshold.
Multimodal Models and Tool Charges
Not every OpenAI service is billed as text tokens. Realtime audio can have separate audio, text, and image token rates; transcription is often estimated per minute; image generation uses image and text token rates; and Sora video generation is priced per second by resolution.
Built-in tools can add charges on top of model tokens. Web search is priced per call plus applicable search-content tokens, file search combines storage and tool-call charges, and hosted containers are billed by memory size and session duration. Include both model and tool usage in production budgets.
- Web search: $10 per 1,000 calls, plus search-content tokens where applicable
- File search: $0.10/GB/day storage after the free allowance and $2.50 per 1,000 tool calls
- Sora 2: from $0.10 per second at Standard 720p; Batch starts at $0.05 per second
- Transcription estimates range from $0.003 to $0.017 per minute depending on model and live processing
How to Estimate Your Costs
To estimate your monthly API cost, multiply your expected input tokens per request by the input price, plus the expected output tokens by the output price, then multiply by the number of requests per month.
For example, using GPT-4o-mini with an average of 500 input tokens and 200 output tokens per call, at 10,000 calls per month: (500 × $0.15 + 200 × $0.60) / 1,000,000 × 10,000 = $1.95/month. This makes GPT-4o-mini extremely affordable for most applications.
For reasoning models, be extra careful with estimates. A complex coding question on o3 might generate 5,000+ hidden reasoning tokens, making a single call cost $0.20+ instead of the $0.01 you might expect from the visible output alone.
# Cost estimation example for GPT-4o-mini
input_tokens_per_call = 500
output_tokens_per_call = 200
calls_per_month = 10_000
input_price = 0.15 # per 1M tokens
output_price = 0.60 # per 1M tokens
monthly_cost = (
input_tokens_per_call * input_price
+ output_tokens_per_call * output_price
) / 1_000_000 * calls_per_month
print(f"Estimated monthly cost: ${monthly_cost:.2f}")
# Output: Estimated monthly cost: $1.95Python script to estimate monthly OpenAI API costs
Billing Controls and Price Verification
Credits, payment requirements, and account eligibility can vary. Check the Platform billing page for the terms attached to your own account rather than assuming a public trial amount. If you have not created an OpenAI API key yet, our step-by-step guide covers registration and billing setup.
Set project budgets and alerts, restrict production keys, and monitor usage by model and service tier. Review configuring your key securely before deploying. Prices on this page are a dated editorial snapshot; the official pricing and billing pages control your final charge.
FAQ
Which OpenAI model is the cheapest?
In the August 10, 2026 Standard price snapshot, GPT-5-nano has the lowest listed text-token rate at $0.05/1M input and $0.40/1M output. Within the GPT-5.6 frontier family, Luna is the lowest-cost option at $0.20/1M input and $1.20/1M output. Model availability and suitability still matter more than headline price alone.
Why are reasoning models (o-series) so expensive?
Reasoning models generate internal chain-of-thought tokens before producing the visible answer. These hidden tokens are billed as output tokens, which can be 5-20x the length of the final response. This is the cost of deeper reasoning — o-series models are designed for tasks where accuracy matters more than cost.
How can I reduce my OpenAI API costs?
Use these strategies: (1) Switch to GPT-4o-mini for tasks that don't require GPT-4o-level intelligence. (2) Enable prompt caching by keeping system prompts consistent. (3) Use the Batch API for non-real-time workloads to get 50% off. (4) Set max_tokens limits to prevent runaway responses. (5) Cache API responses on your side for identical queries.
Are OpenAI API prices the same worldwide?
Not always. Eligible regional-processing endpoints for newer models can carry a 10% data-residency uplift, and models accessed through Amazon Bedrock are billed by AWS and may differ from direct OpenAI pricing. Currency conversion and bank fees may also apply.
Does OpenAI charge for failed API requests?
You are not charged for requests that fail due to server errors (5xx). However, you are charged for requests that fail due to client errors (4xx, like invalid parameters) if the model already processed the input tokens. Rate-limited requests (429) are not billed.
Related in This Series
Related Providers
Sources
- OpenAI API PricingOpenAI · Checked 2026-08-10
- OpenAI TokenizerOpenAI · Checked 2026-08-10
- OpenAI Batch API DocumentationOpenAI · Checked 2026-08-10