Claude API Pricing 2026: Models, Token Costs, and When to Use API vs Subscription
The Claude API is billed per token - separately from any subscription. Here are the current rates, discount options, and the break-even math for subscription vs API.
Deep API pricing: This page gives an overview of API pricing and the subscription vs API decision. For model-by-model token costs, context window details, prompt caching implementation, and full API rate tables, see claudeapipricing.com.
Claude API Model Pricing (per 1M tokens)
| Model | Input | Output | Batch Input | Batch Output | Context |
|---|---|---|---|---|---|
| Claude Opus 4.6 | $5.00 | $25.00 | $2.50 | $12.50 | 1M (API) |
| Claude Sonnet 4.6 | $3.00 | $15.00 | $1.50 | $7.50 | 200K |
| Claude Haiku 4.5 | $1.00 | $5.00 | $0.50 | $2.50 | 200K |
| Claude Haiku 3.5 | $0.80 | $4.00 | $0.40 | $2.00 | 200K |
Batch API prices shown are 50% of standard rates. Prices sourced from Anthropic public documentation, April 2026.
API Cost Reduction Options
Batch API
50% off
Submit requests in batches for non-real-time processing. Results within 24 hours. Cuts all model rates in half. Best for pipelines and bulk jobs.
Learn morePrompt Caching
90% off cached reads
Cache repeated system prompts. First cache write costs 25% more. Every subsequent cached read costs 90% less. Essential for apps with large shared context.
Learn moreModel Selection
Up to 85% off
Haiku 3.5 at $0.80/$4 vs Opus 4.6 at $5/$25 - choosing the right model for the task is the single biggest cost lever available.
Learn moreSubscription vs API: The Break-Even Math
The question is simple: would your usage on the API cost more or less than a subscription?
| Daily Usage Pattern | API Cost (Sonnet 4.6) | Best Option |
|---|---|---|
| 5 msgs/day (avg 500 tokens each) | ~$3/month | Free tier or API |
| 20 msgs/day (avg 1K tokens each) | ~$12/month | Pro at $20/month (includes Claude Code) |
| 50 msgs/day (avg 1.5K tokens each) | ~$45/month | Pro (API is more expensive) |
| 100 msgs/day + Claude Code (2h) | ~$120-180/month | Max 5x at $100/month |
| 200+ msgs/day + full-day Claude Code | ~$350-600/month | Max 20x at $200/month |
Estimates based on Sonnet 4.6 standard rates. Actual costs vary by message length and model choice.
When API Is the Right Choice
- Building applications: Subscriptions are for human users on claude.ai. APIs are for building products and automations.
- Fluctuating usage: API scales to zero. If you only need Claude occasionally, API billing avoids paying for idle subscription months.
- Per-request transparency: For agencies billing clients per task, API gives exact cost attribution that subscriptions cannot.
- 1M-token context: Claude Opus 4.6 via API supports a 1M token context window. Subscriptions cap at 200K (500K at Enterprise).
- Batch processing: Overnight batch jobs at 50% discount are only available via API, not subscriptions.