Claude Code Pricing Plans

ComponentCostDetails
CLI ToolFreeOpen source terminal-based coding assistant
Claude Sonnet 4$3.00/M input, $15.00/M outputDefault model, best price-performance
Claude Opus 4$15.00/M input, $75.00/M outputComplex reasoning and architecture
Claude 3.5 Haiku$0.25/M input, $1.25/M outputFast, cheap for simple tasks

Best AI Models for Claude Code (2026)

Based on cost-effectiveness, coding quality, and availability. Data updated Apr 18, 2026.

💰 Cheapest

Claude 3 Haiku

Anthropic · $0.250/M input

Simple queries, fast responses, cost-sensitive tasks

View full pricing →
⚡ Best Value

Claude 3 Haiku

Anthropic · $0.250/M input

Simple queries, fast responses, cost-sensitive tasks

View full pricing →
🏆 Premium

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).

ModelProviderCost/SessionInput PriceOutput 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 →