PromptsRush
Prompts

Browse

All PromptsThe full curated libraryPrompts GalleryVisual, Pinterest-style browsingImage PromptsMidjourney, DALL·E & SDXLVideo PromptsRunway, Kling & SoraText & TemplatesChatGPT & Claude system prompts

Discover

CategoriesExplore prompts by topicAI ModelsBest prompts per modelPrompt PacksCommunity, passcode-protectedSubmit a PromptShare with the community

For Creators

Turn prompts into followers

Share passcode-protected prompt packs and grow your audience with Auto DM.

Start sharing
Marketplace

Explore

Shared PromptsPasscode-protected prompt packsAI SkillsNewInstallable Agent SkillsDesign SystemsNewLive themes & design tokens

Contribute

Submit a PromptPublish a prompt packSubmit a SkillShip an Agent SkillSubmit a DesignShare a design system

New · Skills

Teach your AI new tricks

Install ready-made skills for Claude, ChatGPT, Gemini, n8n & more.

Browse skills
Learn

Learning Tracks

Prompt EngineeringWrite prompts that deliverAI SkillsBuild & ship Agent SkillsAI AutomationWorkflows, agents & MCPDesign SystemsOn-brand UI with AI

More

Learning HubAll tracks · 40+ lessonsBlogGuides, news & deep diveseBooksPremium prompt packs & guides

100% Free

Learn AI, the practical way

From fundamentals to advanced across four hands-on tracks — no fluff.

Explore the hub
Blog
LoginSign Up
PromptsRush

The ultimate directory for finding, sharing, and managing production-ready AI prompts, system instructions, and advanced templates.

TwitterGitHubYouTubeInstagramEmail

Platform

  • Home
  • Browse Prompts
  • Marketplace
  • Skills
  • Categories
  • Submit a Skill

Top Categories

  • Image PromptPopular
  • Video Prompts
  • Text Templates

Company

  • Privacy Policy
  • Terms of Service
  • Contact Us

Subscribe on YouTube

New AI prompt & skills tutorials every week.

Subscribe

© 2026 PromptsRush. Crafted with & Passion.

All systems operational
HomeBlogAI Tools
AI Tools

Claude Code API Pricing, Rate Limits, Usage Cost

What Claude Code actually costs: $13 per developer per active day, the full model price table, Start/Build/Scale rate limits, and why cache reads don’t count against your limit at all.

P
PromptsRushAugust 29, 2026
•13 min read8 views

Advertisement

Claude Code API Pricing, Rate Limits, Usage Cost

There are two completely separate ways to pay for Claude Code, and almost every confusing answer about its cost comes from mixing them up.

On a Pro, Max, Team or Enterprise subscription, you pay a flat monthly fee and draw against a seat allowance that resets on a rolling five-hour window and a weekly window. No per-token bill exists. On the Claude Console or a cloud provider, you pay per token, subject to rate limits and a monthly spend cap that depends on your usage tier.

Same CLI, entirely different economics. This covers both — what it costs in practice, the full API price table, how the rate limits actually work, and the levers that move your bill most.

All figures below come from Anthropic's own documentation, captured while writing.

What Claude Code Costs in Practice

Anthropic publishes real deployment numbers, which is unusual and worth quoting directly:

MetricFigure
Average cost per developer, per active day~$13
Average cost per developer, per month$150–250
90th percentile, per active dayUnder $30
Background token usage per sessionTypically under $0.04

Those are API-billed figures across enterprise deployments. The distribution matters as much as the average: 90% of users stay under $30 on an active day, so budget for the tail rather than assuming everyone sits at $13.

Two things drive the variance more than anything else: leaving Opus as the default model, and long sessions that were never cleared. Both are covered below.

API Model Pricing

Per million tokens, in USD:

ModelInputOutputCache write (5m)Cache write (1h)Cache readContext
Claude Fable 5$10$50$12.50$20$11M
Claude Opus 5$5$25$6.25$10$0.501M
Claude Opus 4.8 / 4.7 / 4.6$5$25$6.25$10$0.501M
Claude Sonnet 5$2$10$2.50$4$0.201M
Claude Sonnet 4.6$3$15$3.75$6$0.301M
Claude Haiku 4.5$1$5$1.25$2$0.10200K

One piece of genuinely current news: Sonnet 5's $2/$10 pricing was announced as introductory through 31 August 2026, and the increase to $3/$15 scheduled for 1 September will not happen. That rate is now standard. If you deferred moving workloads onto Sonnet 5 because you expected a 50% price rise this week, that reason is gone — and at $2/$10 with a 1M context window it undercuts Sonnet 4.6 by a third while being the newer model.

The tokenizer trap

A per-token price comparison across model generations is misleading, and this is the detail most cost analyses miss.

Claude 4.7 and later use a newer tokenizer that produces roughly 30% more tokens for the same text. So moving from a 4.6-era model to a 4.7-era one at an identical headline rate is effectively a ~30% increase in cost per unit of actual work, not a wash. The exact figure depends on your content.

Judge cost per completed task, not cost per token. A model that needs fewer turns to get the answer right can be cheaper at a higher headline rate — and the reverse is also true.

Prompt Caching: The Single Biggest Lever

A large token stream splitting, with most volume diverted into a cheap cached path

Caching multipliers are applied against the base input rate:

OperationMultiplierValid for
5-minute cache write1.25×5 minutes
1-hour cache write2×1 hour
Cache read0.1×Same as the preceding write

A cache hit costs 10% of the standard input price. The break-even is fast: the 5-minute cache pays for itself after one read, and the 1-hour cache after two.

Claude Code applies caching automatically, so most of this happens without configuration. Where it bites is when the cache misses — and there is an important asymmetry in cache lifetime:

  • On a subscription: one hour.
  • Once you are drawing on usage credits: five minutes.
  • On an API key or cloud provider: five minutes by default.

That means your first message after a long break reprocesses your entire context at full price. On an API key, a fifteen-minute coffee break is enough to lose the cache on a large session.

Claude Code v2.1.251+ surfaces this directly — /usage shows a Prompt cache (main) line with request count, the share of input tokens served from cache, miss count, and whether the cache is warm right now. A request counts as a miss when it re-processed more than 5% and at least 2,000 tokens it could have read from cache.

Rate Limits: Start, Build, Scale, Custom

A basin refilling continuously while draining faster than it fills

Limits are set per organisation, per model, and measured in requests per minute (RPM), input tokens per minute (ITPM) and output tokens per minute (OTPM). Organisations move up tiers automatically as usage history builds.

ModelStartBuildScale
RPMITPMOTPMRPMITPMOTPMRPMITPMOTPM
Fable 51,000500K100K2,0001.5M300K4,0004M800K
Opus 51,0002M400K5,0005M1M10,00010M2M
Opus 4.x1,0002M400K5,0005M1M10,00010M2M
Sonnet 51,0002M400K5,0005M1M10,00010M2M
Haiku 4.51,0002M400K5,0005M1M10,00010M2M

Three things to notice.

Fable 5 is throttled far harder than everything else — 500K ITPM at Start against Opus 5's 2M, a quarter of the headroom. If you are building on Fable 5, capacity will constrain you long before it constrains an equivalent Opus 5 workload.

Opus 4.x share one combined bucket across 4.8, 4.7, 4.6 and 4.5, and Sonnet 4.x likewise across 4.6 and 4.5. Opus 5 and Sonnet 5 each have their own separate limits — so splitting traffic between Opus 5 and Opus 4.8 genuinely doubles your available headroom, while splitting between 4.8 and 4.7 does nothing at all.

Limits replenish continuously via a token bucket rather than resetting on the minute, so a burst can trip a limit even when your average sits well under it. New organisations may also start on an Evaluation tier below these published figures while account history builds.

Cache reads do not count toward your rate limit

This is the most valuable and least known fact on the page. For every current model, cache_read_input_tokens do not count toward ITPM. Only input_tokens and cache_creation_input_tokens do.

Anthropic's own worked example: with a 2,000,000 ITPM limit and an 80% cache hit rate, you can process 10,000,000 total input tokens per minute — 2M uncached plus 8M cached. Caching is not just a discount, it is a 5× throughput multiplier on the same tier.

Also worth knowing: max_tokens does not factor into OTPM at all, since output limits are evaluated against tokens actually generated. There is no rate-limit penalty for setting a generous max_tokens.

Spend Caps

TierMonthly spend cap
Start$500
Build$1,000
Scale$200,000
CustomNo cap — arranged with your account team

Hitting the cap pauses usage until 00:00 UTC on the first of the next month. The response is an HTTP 429 with error type rate_limit_error — but crucially with no retry-after header, so SDK auto-retries will fail repeatedly against it. Distinguish it by checking for error.details.error_code of enforced_spend_limit_reached. A limit you set yourself returns a 400 instead.

Sizing Rate Limits for a Team

Anthropic publishes per-user recommendations that scale down as headcount grows, because concurrency falls in larger organisations:

Team sizeTPM per userRPM per user
1–5200K–300K5–7
5–20100K–150K2.5–3.5
20–5050K–75K1.25–1.75
50–10025K–35K0.62–0.87
100–50015K–20K0.37–0.47
500+10K–15K0.25–0.35

At 200 users you would request about 20K TPM each, or 4 million TPM total. Limits apply at organisation level rather than per user, so individuals can temporarily exceed their share when colleagues are idle. Budget higher if you run live training sessions or anything with unusual concurrency.

One setup note: authenticating Claude Code with a Console account automatically creates a workspace named "Claude Code". You cannot issue API keys for it, but you can set a workspace rate limit on it — which is the clean way to stop Claude Code traffic from starving your production workloads.

What Server Tools Add

ToolCost beyond tokens
Web search$10 per 1,000 searches
Web fetchNothing — standard token cost only
Code execution1,550 free hours/month per org, then $0.05/hour per container (5-minute minimum; free when paired with web search or web fetch)
Managed Agents session runtime$0.08 per session-hour, metered only while running

Tool definitions themselves cost input tokens, and the overhead varies more than you would expect between models: the tool-use system prompt is 286 tokens on Opus 5 versus 675 on Opus 4.7 at tool_choice: auto. On a tool-heavy agent loop making thousands of calls, that difference compounds.

The Discounts and Premiums That Stack

  • Batch API — 50% off input and output. Opus 5 drops to $2.50/$12.50, Sonnet 5 to $1/$5, Haiku 4.5 to $0.50/$2.50. For anything not latency-sensitive this is the largest single discount available, and it stacks with caching.
  • Long context — no premium. Claude 4.6 and later include the full 1M window at standard rates. A 900K-token request bills at the same per-token rate as a 9K one. Several competitors charge a premium above 200K; Anthropic does not.
  • Fast mode — $10/$50 on Opus 5 and Opus 4.8, double the standard rate, for up to 2.5× higher output speed. Not available with the Batch API.
  • Data residency — 1.1× on every token category when you pin inference_geo: "us". Global routing is the default and standard-priced.

Why a Long Session Costs More Than It Looks

Claude Code sends the full conversation with every request, and each tool call is another request carrying another batch of results. A one-line question in a session that has been open all day still draws usage for the whole conversation.

Named causes, in rough order of impact:

  1. Long context. The whole history rides along on every turn, at the cached rate if you are lucky and full price if not.
  2. Cache misses after a break longer than the cache lifetime.
  3. Agent teams. Roughly 7× more tokens than a standard session when teammates run in plan mode, because each maintains its own context window.
  4. Scheduled tasks and cross-session messages, which fire on their interval and send your full context even while you are idle.
  5. Compaction itself. /compact reads the conversation it summarises, so compacting a large context is a large request. /clear costs nothing.

Cutting the Bill

  • Clear between unrelated tasks. The highest-impact habit there is. /rename first if you want to find the session again, then /resume.
  • Match the model to the job. Sonnet handles most coding well; reserve Opus for architecture and multi-step reasoning. Specify model: haiku for simple subagents.
  • Lower the effort level with /effort for straightforward work. Thinking tokens bill as output tokens, and the default budget can run to tens of thousands per request.
  • Delegate verbose operations to subagents so test output and log processing stay in their context, not yours.
  • Filter tool output with hooks. A PreToolUse hook that greps a log for ERROR turns tens of thousands of tokens into hundreds.
  • Move detail from CLAUDE.md into skills. CLAUDE.md loads at session start and stays in context whatever you are doing; skills load on demand. Aim to keep CLAUDE.md under 200 lines.
  • Prefer CLI tools over MCP servers where both exist — gh, aws, gcloud add no per-tool listing overhead. Run /context to see what is consuming space.

Tracking What You Spend

/usage is the main instrument. On a subscription it shows plan usage bars plus an attribution breakdown — what share of recent usage came from skills, subagents, plugins and individual MCP servers — and flags any behaviour accounting for 10% or more of usage. Press d or w to toggle 24 hours against 7 days. Figures are computed from local session history, so other devices are not included.

Two caveats worth knowing. The session cost figure is computed locally at list price, so if your organisation has contracted rates it will not match your invoice — an admin can fix that with the modelPricing managed setting, after which the total carries the note at your organization's configured rates. And on Max and Pro, the session dollar figure is not billing-relevant at all, since usage is included in the subscription.

For organisation-wide visibility: Teams and Enterprise use the spend report in org analytics, Console customers use the Console dashboard and Claude Code Analytics API, and cloud-provider customers need OpenTelemetry export — the only option that works on every setup and streams per-user metrics into your own stack in near real time.

Which Billing Model Should You Be On?

If you...Use
Code most days and want a predictable billPro or Max subscription
Need spend to be zero on quiet monthsAPI billing
Run automation, CI or scripted workloadsAPI billing — subscriptions meter on seat windows
Need per-user cost attributionConsole or Enterprise, plus OpenTelemetry
Need to cap what a team can spendConsole workspace spend limits
Run non-urgent bulk workAPI + Batch — 50% off

The Verdict

For an individual coding daily, a subscription is almost always cheaper and always more predictable — at $150–250 per developer per month on API billing, the flat plans price competitively against the average without exposing you to the tail.

For teams on the API, the two things that decide your bill are model selection and context hygiene, not tier or negotiation. Sonnet 5 at $2/$10 with a 1M context and no long-context premium is the strongest default the lineup has had, and the September price rise being cancelled makes that permanent rather than promotional.

And if you take one operational detail away, make it the caching one: cache reads cost 10% of input price and do not count against your rate limit at all. Tuning your cache hit rate is simultaneously the biggest cost lever and the biggest throughput lever available, and it is the one most teams never measure.

Recommended · Genspark

Try Genspark — the AI super-agent

Genspark researches, plans and acts across the web for you — multi-step agentic workflows in one prompt.

Try Genspark Free

Affiliate link · We may earn a commission

Keep Reading

More on Claude economics and tooling: Claude routines explained, how to use Claude Code for free, Claude pricing explained, Claude Max vs ChatGPT Pro, how to create a Claude skill and Claude AI stats 2026. Or browse all guides and prompts on PromptsRush.

❓

Frequently Asked Questions

10 questions answered

Across enterprise deployments Anthropic reports an average of about $13 per developer per active day and $150–250 per developer per month on API billing, with 90% of users staying under $30 on an active day. On a Pro, Max, Team or Enterprise subscription you pay a flat fee instead and draw against a seat allowance, with no per-token bill at all.
Start, Build, Scale and Custom. Organisations are placed automatically based on usage history and move up over time. At Start, Opus 5, Sonnet 5 and Haiku 4.5 each get 1,000 RPM, 2M input tokens per minute and 400K output tokens per minute; Build roughly doubles to quintuples that and Scale doubles it again. New organisations may begin on an Evaluation tier below the published figures while history builds.
No — for every current model, cache_read_input_tokens do not count toward ITPM. Only uncached input tokens and cache writes do. Anthropic's own example: with a 2M ITPM limit and an 80% cache hit rate you can process 10M total input tokens per minute. Caching is a 5× throughput multiplier as well as a 90% discount on those tokens.
No. The $2/$10 per million input/output token pricing was announced as introductory through 31 August 2026, but the scheduled increase to $3/$15 on 1 September will not occur — that rate is now standard. At $2/$10 with a 1M context window, Sonnet 5 undercuts the older Sonnet 4.6 by a third.
A cache read costs 10% of the standard input price. Writes cost 1.25× base for a 5-minute cache or 2× for a 1-hour cache, so the 5-minute cache pays for itself after a single read and the 1-hour cache after two. Cache lifetime is one hour on a subscription but drops to five minutes once you are drawing on usage credits, and is five minutes by default on an API key or cloud provider.
Claude 4.7 and later use a newer tokenizer that produces roughly 30% more tokens for the same text. Moving from a 4.6-era model to a 4.7-era one at an identical headline rate is therefore about a 30% increase in real cost, not a wash. Judge spend by cost per completed task rather than cost per token.
$500 on Start, $1,000 on Build and $200,000 on Scale; Custom tier has none. Reaching it pauses usage until 00:00 UTC on the first of the next month and returns an HTTP 429 with no retry-after header, so SDK auto-retries fail against it. Check for error_code enforced_spend_limit_reached to tell it apart from an ordinary rate limit.
No. Claude 4.6 and later include the full 1M context window at standard pricing — a 900K-token request bills at the same per-token rate as a 9K one, and caching and batch discounts apply across the whole window. This differs from providers that charge a premium above 200K tokens.
Because the full conversation is sent with every request, and every tool call is another request carrying it again. Cache misses after a break, scheduled tasks firing while you are idle, and agent teams — which use roughly 7× more tokens in plan mode since each teammate keeps its own context — all compound it. Clearing between unrelated tasks is the highest-impact fix.
$10 per 1,000 searches, plus standard token costs for the content returned. Web fetch adds nothing beyond token cost. Code execution gives each organisation 1,550 free hours a month, then bills $0.05 per hour per container with a 5-minute minimum — and is free entirely when used alongside web search or web fetch.
Back to Blog

Table of Contents

In this article

  • 1What Claude Code Costs in Practice
  • 2API Model Pricing
  • The tokenizer trap
  • 3Prompt Caching: The Single Biggest Lever
  • 4Rate Limits: Start, Build, Scale, Custom
  • Cache reads do not count toward your rate limit
  • 5Spend Caps
  • 6Sizing Rate Limits for a Team
  • 7What Server Tools Add
  • 8The Discounts and Premiums That Stack
  • 9Why a Long Session Costs More Than It Looks
  • 10Cutting the Bill
  • 11Tracking What You Spend
  • 12Which Billing Model Should You Be On?
  • 13The Verdict
  • 14Keep Reading

Recent Posts

Claude Routines Explained: The CRON Replacement?

Aug 29 · 11 min

Magnific Pricing (2026): Plans, API Cost, Credits

Aug 29 · 8 min

Descript Pricing (2026): Plans, Limits, Credits, Discounts

Aug 29 · 7 min

Best Funnel Builder Software of 2026

Aug 27 · 11 min

Best AI Landing Page Builder Tools

Aug 27 · 11 min

Category

AI Tools

Advertisement

You May Also Like

AI Tools

Magnific Pricing (2026): Plans, API Cost, Credits

Aug 298 min
AI Tools

Descript Pricing (2026): Plans, Limits, Credits, Discounts

Aug 297 min
AI Tools

Best Funnel Builder Software of 2026

Aug 2711 min