If you use AI in bursts, paying per token through an API can cost less than a flat monthly plan. There’s no subscription: you buy credit or get billed for what you use. Here are the official standard rates from OpenAI, Anthropic, Google and xAI, all in USD per 1 million tokens for normal-length prompts.
Standard API rates
| Model | Input | Output | Notes |
|---|---|---|---|
| OpenAI GPT-6 Luna | $0.10 | $0.50 | Cached input $0.01 |
| Anthropic Claude Haiku 5.5 | $0.10 | $0.50 | Prompts up to 100K tokens; $0.50 / $2.50 above that |
| Gemini 3.5 Flash-Lite | $0.30 | $2.50 | Paid tier; Google also offers a free tier |
| Gemini 3.8 Flash | $0.75 | $3.75 | Rises to $1.50 input on 1 January 2027 |
| OpenAI GPT-6.1 Terra | $1.00 | $5.00 | Cache read $0.05 |
| xAI Grok 4.3 | $1.25 | $2.50 | Prompts under 200K tokens |
| OpenAI GPT-6.2 Sol | $2.00 | $10.00 | Cached input $0.10 |
| Anthropic Claude Sonnet 5.5 | $2 | $10 | |
| Gemini 4 Argon | $4.00 | $20.00 | Rose from $2 / $10 on 1 December 2026 |
| xAI Grok 4.7 | $2.00 | $6.00 | Prompts under 200K tokens |
| Anthropic Claude Opus 5.5 | $4 | $20 | |
| OpenAI GPT-6.2 Astra | $8.00 | $40.00 | Cached input $0.40 |
OpenAI’s rates are for context lengths under 272K tokens. Prices exclude tax.
What a light month costs (our arithmetic)
Say you send 300 requests a month, each with 2,000 input tokens and 1,000 output tokens. That’s 0.6 million input and 0.3 million output tokens:
- GPT-6 Luna or Claude Haiku 5.5: 0.6 × $0.10 + 0.3 × $0.50 = $0.21 a month.
- Claude Sonnet 5.5 or GPT-6.2 Sol: 0.6 × $2 + 0.3 × $10 = $4.20 a month.
- Claude Opus 5.5: 0.6 × $4 + 0.3 × $20 = $8.40 a month.
All three are below a $20 chat subscription. The picture flips with heavy daily use, long documents or agents that loop many times. Run your own numbers in the API cost calculator.
When pay-as-you-go wins
- Light or irregular use.
- Automations and scripts rather than chatting.
- You want a different model for each task.
When a subscription wins
- You chat for hours every day.
- You want the apps’ extras (file uploads, voice, image tools) without building anything.
- You want a fixed bill. The ChatGPT vs API break-even calculator shows where the line is.
Avoid surprises
- Set a spend limit in every API console. Anthropic also caps spend by tier and pauses the API when you reach it.
- Watch long-prompt thresholds (100K tokens on Claude Haiku 5.5, 200K on Grok, 272K on OpenAI).
- Use batch processing for non-urgent work: Anthropic’s Batch API is 50% off, and xAI lists 20% off standard rates. See the batch API savings calculator.
- Check announced price rises, like Gemini 4 Argon’s, which doubled on 1 December 2026.
Related
API cost calculator · AI API free credits · AI hidden costs · OpenAI vs Anthropic rate limits · OpenRouter alternatives · OpenAI API pricing · Anthropic API pricing · xAI API pricing · Methodology
How we check prices
OpenAI, Anthropic and Gemini rates come from their official API pricing pages, read on 2026-11-24 (Asia/Colombo); xAI rates from its API docs, read on 2026-11-18. Amounts are USD and exclude tax. Vendors change API prices often, so confirm before you build. Spotted a change? Email [email protected].