Claude Code Pricing Guide 2026
Claude Code is Anthropic's free CLI tool for AI-assisted coding. Unlike subscription-based tools, you only pay for the API tokens you consume. This means costs scale directly with usage — great for light users, potentially expensive for heavy daily use.
Visit Claude Code →Claude Code Pricing Plans
| Component | Cost | Details |
|---|---|---|
| CLI Tool | Free | Open source terminal-based coding assistant |
| Claude Sonnet 4 | $3.00/M input, $15.00/M output | Default model, best price-performance |
| Claude Opus 4 | $15.00/M input, $75.00/M output | Complex reasoning and architecture |
| Claude 3.5 Haiku | $0.25/M input, $1.25/M output | Fast, cheap for simple tasks |
Best AI Models for Claude Code (2026)
Based on cost-effectiveness, coding quality, and availability. Data updated Apr 18, 2026.
Claude 3 Haiku
Anthropic · $0.250/M input
Simple queries, fast responses, cost-sensitive tasks
View full pricing →Claude 3 Haiku
Anthropic · $0.250/M input
Simple queries, fast responses, cost-sensitive tasks
View full pricing →Claude Opus 4
Anthropic · $15.00/M input
Complex architecture decisions, debugging hard bugs, research
View full pricing →Cost Per Session with Claude Code
Estimated cost for a medium feature implementation (100K input + 10K output tokens).
| Model | Provider | Cost/Session | Input Price | Output Price |
|---|---|---|---|---|
| Claude 3 Haiku | Anthropic | $0.34 | $0.250/M | $1.25/M |
| Claude 3.5 Haiku | Anthropic | $1.24 | $0.800/M | $4.00/M |
| Claude 4 Haiku | Anthropic | $1.24 | $0.800/M | $4.00/M |
| Claude Sonnet 4 Lite | Anthropic | $1.55 | $1.00/M | $5.00/M |
| Claude 3 Sonnet | Anthropic | $4.05 | $3.00/M | $15.00/M |
| Claude Sonnet 4 | Anthropic | $4.66 | $3.00/M | $15.00/M |
Frequently Asked Questions
Is Claude Code free?
The CLI tool itself is free. You pay for API usage — a typical session costs $0.05-$0.50 depending on the model and session length.
How much does a coding session cost with Claude Code?
With Claude Sonnet 4, a medium feature (100K input + 10K output) costs about $0.45. With Claude 3.5 Haiku, the same session costs about $0.04.
Can I use Claude Code with non-Anthropic models?
No. Claude Code is designed specifically for Anthropic's Claude models.
Compare Claude Code with Other Platforms
See how Claude Code stacks up against the competition.
View all AI coding platforms →