freeaiapi.aiSign Up

Claude Code pricing: plans vs pay-per-token

Claude Code comes with Anthropic's paid plans, or you can pay per token through an API key. Here is what each option costs and when per-token billing through freeaiapi.ai is the better deal.

Get free API keyLast updated

Anthropic plans that include Claude Code

PlanPriceClaude CodeUsage
Free$0Not included—
Pro$20/month ($17/month billed annually)IncludedBase usage limits
Max$100/monthIncluded5× Pro usage
Ultra$200/monthIncluded10× Pro usage per week
TeamFrom $20/seat/month (annual)Included2–150 seats
API (Claude Console)Pay per tokenIncludedNo plan limits; billed on usage

Source: claude.com/pricing, checked 2026-11-01. Plan details change; check Anthropic's site for current terms.

Pay-per-token through freeaiapi.ai

Claude model prices per 1M tokens, next to Anthropic's official API price.

Pay-per-token through freeaiapi.ai
ModelOfficial input /MOfficial output /MOur input /MOur output /MYou save
claude-haiku-4-5-20251001$1.00$5.00$0.70$3.50−30%
claude-haiku-5-5$0.10$0.50$0.07$0.35−30%
claude-opus-4-5-20251101$5.00$25.00$3.50$17.50−30%
claude-opus-4-6$5.00$25.00$3.50$17.50−30%
claude-opus-4-7$5.00$25.00$3.50$17.50−30%
claude-opus-4-8$5.00$25.00$3.50$17.50−30%
claude-opus-5$5.00$25.00$3.50$17.50−30%
claude-opus-5-5$4.00$20.00$2.80$14.00−30%
claude-sonnet-4-5-20250929$3.00$15.00$2.10$10.50−30%
claude-sonnet-4-6$3.00$15.00$2.10$10.50−30%
claude-sonnet-5$2.00$10.00$1.40$7.00−30%
claude-sonnet-5-5$2.00$10.00$1.40$7.00−30%

Which option is cheapest for you?

Plans charge a flat monthly fee with usage limits. They suit people who use Claude Code heavily and steadily, every working day.

Per-token billing suits irregular use, shared team budgets, CI pipelines and anyone who keeps hitting plan limits. You pay only for tokens used, and freeaiapi.ai prices Claude models up to 30% below Anthropic's official API rates.

To estimate per-token cost, check your token usage for a typical week (Claude Code shows usage per session) and multiply by the prices above.

Frequently asked questions

How much does Claude Code cost?

Claude Code is included in Anthropic's Pro plan ($20/month), Max ($100/month) and Ultra ($200/month), or you can pay per token with an API key.

Is Claude Code free?

Claude Code is not included in Anthropic's free plan. With an account here, connect Telegram and join our channel to unlock $1 trial credit, with no card required.

How do I use Claude Code with an API key?

Set ANTHROPIC_BASE_URL to https://api.freeaiapi.ai and ANTHROPIC_AUTH_TOKEN to your key. See the Claude Code setup guide for details.

Related

Get your free API key

No card required. One key for every model, up to 30% below official pricing.

Get free API key