Home / OpenAI API pricing
OpenAI API pricing
What every GPT-6 model costs per million tokens on OpenAI’s API, the discounts that cut the bill, and what typical workloads cost a month.
Prices checked
Quick answer
OpenAI’s API costs from $0.10 input and $0.50 output per million tokens for GPT-6 Luna to $8 / $40 for GPT-6.2 Astra. Cached input is billed at 5% to 10% of the normal input price. Batch requests cost half, and Fast mode costs double. The API is billed separately from ChatGPT plans.
Standard prices per million tokens
Pay-as-you-go rates in US dollars. Output tokens, the text the model writes, cost five times more than input on every current model.
| Model | Input | Cached input | Output | Context window |
|---|---|---|---|---|
| GPT-6.2 Astra | $8.00 | $0.40 | $40.00 | 1.05M tokens |
| GPT-6.2 Sol | $2.00 | $0.10 | $10.00 | 1.05M tokens |
| GPT-6.1 Terra | $1.00 | $0.05 | $5.00 | 1.05M tokens |
| GPT-6 Luna | $0.10 | $0.01 | $0.50 | 1.05M tokens |
API model IDs
- The names to use in your API calls:
gpt-6.2-astra(GPT-6.2 Astra),gpt-6.2-sol(GPT-6.2 Sol),gpt-6.1-terra(GPT-6.1 Terra),gpt-6-luna(GPT-6 Luna).
Older models still on the API
GPT-6.2 replaced these on November 17, 2026. They still work, but GPT-6 Astra now costs more than its replacement.
| Model | Input | Cached input | Output | Replaced by |
|---|---|---|---|---|
| GPT-6 Astra | $10.00 | $1.00 | $50.00 | GPT-6.2 Astra, 20% cheaper |
| GPT-6.1 Sol | $2.00 | $0.10 | $10.00 | GPT-6.2 Sol, same price |
Ways to pay less, or more
OpenAI sells the same models at different speeds. Slower processing costs less, and faster costs more.
| Option | Price | Good for |
|---|---|---|
| Batch | 50% of standard | Large jobs that don’t need an answer right away |
| Flex (beta) | 50% of standard | Lower-priority work. OpenAI is winding the beta down and won’t add Flex to new models |
| Background requests | 30% off (2-hour window) or 40% off (8-hour window) | Tasks that can finish within a few hours. Available on GPT-6.2 Astra and Sol, GPT-6.1 Terra and GPT-6 Luna |
| Fast mode | 2× standard | Lower latency. Called Priority processing before July 30, 2026 |
| Ultrafast | 3× standard on GPT-6.2 until February 28, 2027, then 6× | The fastest responses, at a steep premium |
| Regional processing | +10% | Keeping data in a specific region (models released from March 5, 2026) |
Tools billed on top of tokens
| Tool | Price |
|---|---|
| Web search | $10 per 1,000 calls, plus the search results billed as tokens |
| File search | $2.50 per 1,000 calls, plus storage at $0.10 per GB a day (first 1 GB free) |
| Code Interpreter and hosted shell | From $0.03 per 20-minute session for a 1 GB container, up to $1.92 for 64 GB |
Prompt caching
- Reading from the cache costs 5% of the normal input price on GPT-6.2 Astra, GPT-6.2 Sol and GPT-6.1 Terra, and 10% on GPT-6 Luna.
- Writing to the cache costs extra: $10 per million tokens for a 30-minute cache on GPT-6.2 Astra, or $20 for 12 hours. On GPT-6.2 Sol it’s $2.50 and $5.
- Caching pays off when many requests share a long, unchanged start, such as a system prompt or a document.
What a typical month costs
Standard prices, no caching or discounts. Chatbot: 100,000 requests a month of 1,000 tokens in and 300 out. Document Q&A: 10,000 requests of 20,000 tokens in and 500 out.
| Model | Chatbot | Document Q&A |
|---|---|---|
| GPT-6.2 Astra | $2,000 | $1,800 |
| GPT-6.2 Sol | $500 | $450 |
| GPT-6.1 Terra | $250 | $225 |
| GPT-6 Luna | $25 | $22.50 |
Which GPT-6 model to use
Editorial picks, based on price and where each model sits in OpenAI’s lineup.
- GPT-6 Luna for high-volume, simple work such as classifying, extracting fields or routing requests. At $0.10 / $0.50 it’s 80 times cheaper than Astra.
- GPT-6.1 Terra for everyday tasks where cost matters, at half the price of Sol.
- GPT-6.2 Sol as the default for most apps and chat features, at $2 / $10.
- GPT-6.2 Astra for OpenAI’s hardest coding and research tasks, at $8 / $40. Test Sol first: it costs a quarter as much.
How to estimate your OpenAI bill
- Count tokens, not words. In English, 1 token is about three quarters of a word, so 1,000 words is roughly 1,300 tokens.
- Price input and output separately. Multiply input tokens by the input price and output tokens by the output price, each per million.
- Example: summarizing 1,000 articles of about 1,500 words (2,000 tokens in, 200 tokens out each) on GPT-6.2 Sol costs about $4 for input and $2 for output: $6 in total.
- Output usually dominates for chat and writing, because it costs five times more per token. For document analysis, input usually dominates.
- Try your own numbers in the AI API cost calculator.
OpenAI vs other labs at each price level
Standard prices per million tokens, input / output.
| Level | OpenAI | Anthropic | Others | |
|---|---|---|---|---|
| Top | GPT-6.2 Astra, $8 / $40 | Claude Fable 5.2, $8 / $40 | Gemini 4 Carbon, $4 / $20 | Muse Wonder, $4 / $20 |
| Main | GPT-6.2 Sol, $2 / $10 | Claude Sonnet 5.5, $2 / $10 | Gemini 4 Neon, $3 / $15 | Grok 4.7, $2 / $6 |
| Budget | GPT-6.1 Terra, $1 / $5 | None | Gemini 4 Hydrogen, $1.50 / $7.50 | DeepSeek V4.1 Flash, $0.30 / $1.20 |
| Lowest | GPT-6 Luna, $0.10 / $0.50 | Claude Haiku 5.5, $0.10 / $0.50 | None | Tencent Hy4 Flash, $0.07 / $0.281 |
How OpenAI compares
- GPT-6.2 Astra and Claude Fable 5.2 cost the same, $8 / $40. See Claude API pricing.
- GPT-6 Luna, Claude Haiku 5.5 and Meta’s Muse Ember tie as the cheapest US models at $0.10 / $0.50. Chinese open models go lower: see the cheapest AI API ranking.
- To price your own workload on all 30 models, use the AI API cost calculator.
Questions people ask
How much does the OpenAI API cost?
From $0.10 input and $0.50 output per million tokens (GPT-6 Luna) to $8 / $40 (GPT-6.2 Astra), at standard speed. Batch halves those prices.
Is the OpenAI API included in ChatGPT Plus?
No. The API is a separate, pay-per-token product. ChatGPT Pro plans include some monthly API credits, subject to eligibility. See ChatGPT pricing.
What is the cheapest OpenAI model?
GPT-6 Luna, at $0.10 input and $0.50 output per million tokens, or half that through Batch.
How do I lower my OpenAI API bill?
Send routine work to GPT-6 Luna or GPT-6.1 Terra, cache long prompts you reuse, and run anything that can wait through Batch at half price.
What is a token?
A chunk of text, often part of a word. In English, 1 token is about three quarters of a word, so 1 million tokens is roughly 750,000 words.
Does OpenAI charge more for long prompts?
OpenAI’s pricing page shows separate short- and long-context rates for GPT-6 models. If you send very long prompts, check the long-context rate there before you estimate costs.
Sources: OpenAI API pricing, OpenAI models. Checked December 1, 2026.