LLM API pricing: OpenAI, Claude and Gemini per 1M tokens
Standard pay-as-you-go prices in USD per 1 million tokens, excluding tax, for 12 models we track. Where a model has prompt-length tiers, each tier is listed with its condition. Batch, priority and regional-endpoint variants are not shown here. Products billed per request are listed after the token tables.
This is not a full market list: we only include models whose prices we have checked on the vendor's own pricing page. Introductory prices are flagged with their end date.
OpenAI API pricing
| Model | Input / 1M | Cached input / 1M | Output / 1M | Context window |
|---|---|---|---|---|
| GPT-6 Astra gpt-6-astra Monthly cost → |
|
|
| not published |
| GPT-6.1 Sol gpt-6.1-sol Monthly cost → |
|
|
| not published |
| GPT-6 Luna gpt-6-luna Monthly cost → |
|
|
| not published |
Anthropic API pricing
| Model | Input / 1M | Cached input / 1M | Output / 1M | Context window |
|---|---|---|---|---|
| Claude Fable 5.1 claude-fable-5.1 Monthly cost → |
|
|
| 1,000,000 |
| Claude Opus 5.5 claude-opus-5.5 Monthly cost → |
|
|
| 1,000,000 |
| Claude Sonnet 5.5 claude-sonnet-5.5 Monthly cost → |
|
|
| 1,000,000 |
| Claude Haiku 5.5 claude-haiku-5.5 Monthly cost → |
|
|
| not published |
Google API pricing
| Model | Input / 1M | Cached input / 1M | Output / 1M | Context window |
|---|---|---|---|---|
| Gemini 4 Argon gemini-4-argon Monthly cost →Announced from Dec 1, 2026: input $4.00, output $20.00 |
|
|
| not published |
| Gemini 3.8 Flash gemini-3.8-flash Monthly cost →Announced from Jan 1, 2027: input $1.50, output $7.50 |
|
|
| not published |
| Gemini 3.5 Flash-Lite gemini-3.5-flash-lite Monthly cost → |
|
|
| not published |
xAI API pricing
| Model | Input / 1M | Cached input / 1M | Output / 1M | Context window |
|---|---|---|---|---|
| Grok 4.7 grok-4.7 Monthly cost → |
|
|
| 500,000 |
| Grok 4.3 grok-4.3 Monthly cost → |
|
|
| 1,000,000 |
Perplexity API pricing
These products are billed per request or per tool call, not per token. Sonar Pro and Sonar were retired on Sep 27, 2026 and are no longer listed.
| Product | Price | What it covers |
|---|---|---|
| Agent API tool fees | $0 per call | web_search (standard), per invocation |
| Agent API tool fees | $0 per call | web_search (Fast Search), per invocation |
| Agent API tool fees | $0 per call | fetch_url, per invocation |
| Agent API tool fees | $0.03 per call | sandbox, per session (up to 20 min active use) |
| Search API | $5 per 1,000 requests | Search API, per 1K successful requests (no token costs) |
| Search API | $1 per 1,000 requests | Search API with Fast Search (search_type: 'fast'), per 1K requests |
Estimate your costs
Paste your prompt into the token counter to see what it would cost with each of these models. For a whole workload (requests per day, caching, batch), use the LLM API cost calculator. To check whether a subscription would be cheaper, try the API vs subscription calculator.