Download

Claude API vs subscription: which is cheaper for coding?

Tyler J. CagleUpdated 11 min read

Key facts

A Claude subscription is cheaper than the Claude API once a month of your Claude Code work would cost more than the plan at API list prices. As of November 16, 2026, Claude Pro costs $20 a month, Max $100 and Ultra $200, while Anthropic reports Claude Code costing about $13 per developer per active day, or $150 to $250 a month, at API prices across enterprise deployments. At that average, the API costs more than Ultra after about 15 active days a month, provided the plan's limits hold the work. The API bills every successful request against prepaid credits you buy in the Claude Console, with no five-hour or weekly windows, only your usage tier's rate limits and monthly spend cap. Auto, the Mac app for all your coding agents, wrote this post; it uses the AI subscriptions you already pay for first.

What do Claude plans cost for Claude Code?

Claude Code comes with every paid Claude plan, and as of November 16, 2026 those cost $20 a month for Pro, $100 for Max and $200 for Ultra (Anthropic). Anthropic publishes no token allowance for any of them, only multiples of Pro's usage.

PlanPrice (November 16, 2026)Usage, as Anthropic describes it
Pro$20 a month, or $17 a month billed annuallyLimits every five hours and every week; Claude Fable only through usage credits
Max$100 a month5× Pro's usage every five hours and every week; Fable up to half the weekly limit
Ultra (formerly Max 20x)$200 a month10× Pro's weekly usage, with no five-hour limit for verified accounts

Each tier buys the same weekly usage per dollar: Max costs five times Pro for five times the usage, and Ultra ten times Pro for ten times the weekly usage. Ultra replaced Max 20x, and existing Max 20x subscribers moved to Ultra with no price change. Day-to-day limits are covered in How Claude Code usage limits work, and Claude Code pricing prices a real task on each plan.

How does Claude API billing work?

Claude API billing is prepaid: you buy usage credits in the Claude Console, and each successful request is deducted from that balance at Anthropic's list prices (Claude Help Center, checked November 16, 2026). The same credits pay for the API, the Console's playground and Claude Code when you sign in with a Console account. Anthropic charges only for successful calls, so failed requests such as 529 overloaded errors cost nothing, but a request that was on track to succeed is still charged if your client disconnects or times out.

Your usage tier then sets how fast and how much you can spend. Anthropic places each organization on a tier automatically from its usage history and account standing, and new organizations can start on a lower Evaluation tier (rate limits, checked November 16, 2026). Each tier has a monthly spend cap:

Usage tierMonthly spend capAt the cap
Start$500Requests return a 429 until 00:00 UTC on the first of next month
Build$1,000The same
Scale$200,000The same
CustomNoneLimits arranged with Anthropic's account team

The Start tier's cap matters for heavy Claude Code use. Anthropic says 90% of users stay below $30 per active day; a developer at $30 a day would reach the $500 cap in about 17 active days. To raise it, use Request tier increase on the Console's Rate limits page. You can also set your own lower monthly spend limit, and requests over it return a 400 invalid_request_error that names the limit.

Where can you see your Claude API bill?

Your Claude API bill lives in the Claude Console, on three pages, as of November 16, 2026. Anthropic also emails a receipt for every credit purchase, including auto-reloads, with the subject line "Your receipt from Anthropic" (Claude Help Center).

Console pageWhat it shows
BillingCredit balance, purchases, auto-reload, payment method and invoice history, including expired credit grants
CostYour organization's API spend
UsageToken usage and your prompt cache hit rate

The first time you sign in to Claude Code with a Console account, the Console creates a workspace called Claude Code, which tracks all Claude Code spend in the organization and can carry its own spend limit. Inside Claude Code, the Session block of /usage estimates the session's cost from token counts at list price; it is an estimate, and the Billing page holds the invoices. On Pro, Max or Ultra Anthropic says it isn't relevant for billing.

What does the same work cost on the Claude API?

On the Claude API you pay per million tokens, and as of November 16, 2026 list prices run from $0.10 of input on Claude Haiku 5.5 to $8 of input and $40 of output on Claude Fable 5.2 (pricing). Claude Code sends your full conversation with every request, so most input tokens are cache reads, which cost a small fraction of new input.

The table prices one assumed agent request: 45,000 cached input tokens, 5,000 new input tokens and 2,000 output tokens, thinking included. With an API key, Claude Code writes the five-minute cache, so the new tokens bill at the 5-minute cache-write rate.

ModelInput / 5-minute cache write / cache read / output, per million tokensOne assumed requestRequests for $20
Claude Fable 5.2$8 / $10 / $0.20 / $40$0.139143
Claude Opus 5.5$4 / $5 / $0.20 / $20$0.074270
Claude Sonnet 5.5$2 / $2.50 / $0.10 / $10$0.037540
Claude Haiku 5.5 (prompts up to 100,000 tokens)$0.10 / $0.125 / $0.01 / $0.50$0.00219,638
Claude Opus 5.5, one assumed request, list prices as of November 16, 2026
  45,000 cached input  x  $0.20 per million  =  $0.009
   5,000 new input     x  $5.00 per million  =  $0.025  (5-minute cache write)
   2,000 output        x $20.00 per million  =  $0.040
  Total                                         $0.074

When does a Claude subscription beat the API?

A subscription beats the API when the work you do inside its limits would cost more than the plan at list prices. At Anthropic's enterprise average of $13 per active day, Pro's $20 matches about 1.5 active days of Claude Code at API prices, Max's $100 about 7.7 days and Ultra's $200 about 15.4 days. A developer at that average who codes more than about 15 days a month would spend more on the API than on any Claude plan, provided the plan's limits hold those days.

Those limits are the open question, and Anthropic says costs vary widely by model, codebase size and usage pattern. To measure your own, run Claude Code with an API key for a week, or total the Session block of /usage across a week on your plan, and compare the sum with the plan's price. To estimate a month on the Claude API before you start, the Claude API cost calculator prices each Claude model with and without prompt caching.

When is the Claude API the better deal?

The API costs less when a month of your work at list prices comes in under the plan's price, which is common with occasional use. At the assumed request size, $20 buys about 540 Claude Sonnet 5.5 requests, and Claude Code sends a new request each time it uses a tool. The API also has no five-hour or weekly windows, so a long session never waits for a reset, only for your tier's rate limits.

It also suits automation. Max and Ultra include $100 and $200 a month in Claude API credits for a linked Console organization, spent before purchased credits and expiring each billing cycle. They cover the Messages API, the Agent SDK and claude -p runs that use an API key from that organization, but not interactive Claude Code in the terminal, IDE, desktop or web. How to use Claude Code and Codex without a subscription covers API-key setup.

What happens when you go past a plan's limits?

Past the limit, you can wait for the reset, upgrade, or turn on usage credits, which bill at standard API rates and stop at any monthly spend limit you set. A heavy month on a plan then costs the plan price plus the overflow. The monthly API credits on Max and Ultra can't pay for usage credits, so they don't extend Claude Code's limits. How to cut Claude Code and Codex costs covers what stretches a plan before you get there.

Does the same math hold for Codex and ChatGPT plans?

Yes, the break-even works the same way for Codex: a ChatGPT plan wins once your Codex work at OpenAI's API prices would cost more than the plan. As of November 16, 2026, ChatGPT Plus costs $20 a month and Pro starts at $100, and OpenAI recommends API-key sign-in for Codex in shared environments like CI. Codex with an API key runs in the CLI, SDK and IDE extension, without cloud features such as GitHub code review. Codex pricing prices a real Codex task, and Codex vs Claude Code sets both agents' plans side by side.

Why should a router spend the plan first?

A router should spend the plan first because a request inside the plan's limits adds no cost, while the same request on the API or on usage credits costs its list price. Within the plan, hard work should come first, because quick work has a cheap substitute and hard work doesn't. At the assumed request size, a quick request moved to Claude Haiku 5.5 costs $0.0021 at list price, while a hard request that overflows to Claude Opus 5.5 at API rates costs $0.074, about 36 times as much. Anthropic doesn't publish how each model counts against plan limits, so this compares only what the work costs outside the plan.

Auto follows that order. In Codex, OpenAI models run on the ChatGPT plan, and in Claude Code, Claude models run on the Claude plan. Hard work goes to the most capable model your plans cover, and to credits only when none is strong enough. Everything else goes to the model that costs you least, which is often your plan or a low-cost open model, and every request shows its model, what it cost and why. The full order is in How AutoRouter picks a model.

As of November 16, 2026, Auto Free costs $0 a month, and routing across two of your subscriptions is free. Auto Pro includes usage each month and adds every other model, billed at the provider's price plus 10%, first from the included usage. Auto earns the 10% on paid models and nothing on plans. It runs on macOS 14 or later and is in beta. The savings calculator estimates a month of your own coding-agent work at API list prices, on one frontier model and with Auto.

Questions

Is Claude Max worth it over Pro?

Claude Max is worth it when you would otherwise spend more than the price difference on usage credits. As of November 16, 2026, Max costs $80 a month more than Pro, so it pays off once your overflow at API rates passes $80 a month, if its limits hold that work. Max also includes Claude Fable up to half of its weekly limit, where Pro pays for Fable with usage credits. Claude Pro vs Max: which plan to pick for Claude Code works through the rest of the choice.

Do Max and Ultra API credits cover Claude Code?

No, not interactive Claude Code. The monthly API credits on Max ($100) and Ultra ($200) cover the Claude API, the Agent SDK and claude -p with an API key from the linked Console organization. Claude Code in the terminal, IDE, desktop or web, and usage credits past your plan's limits, can't use them.

Is Claude Code using my plan or my API key?

Claude Code uses your API key whenever the ANTHROPIC_API_KEY environment variable is set, even if you are signed in to Pro, Max or Ultra, and those requests bill at API rates. Run /status to see which credential is active, and remove the variable from your shell profile to put Claude Code back on your plan.

What happens when my Claude API credits run out?

Requests stop until you add credits, and Claude Code shows Credit balance is too low. Auto-reload on the Console's Billing page buys more automatically when the balance falls below a threshold you set.

Can I use Claude Code without any subscription?

Yes. Claude Code accepts a Claude Console account or API key billed per token, and Codex accepts an OpenAI API key. Auto Pro also works without any AI subscription: it gives every model, with usage included each month.

Sources