Back to guides
Pricing·September 1, 2026·Updated November 23, 2026·9 min read

Claude Code Pricing 2026 — Subscription or API, Real Cost, and Break-Even

Claude Code costs either a monthly subscription or per-token billing, and nearly every confusing answer comes from mixing the two. Here are the current figures, what a real month costs, and how to choose.

Claude Code has two completely distinct pricing models, and almost all confusion about what it costs comes from mixing them up. A claude.ai subscription includes the tool in a monthly plan with usage limits. An API key bills per token, with no subscription and no cap. This page brings together current figures for both options, the calculation to help you choose, the cost of a real month of work, and how to pay from France.

Rates verified on November 23, 2026 against claude.com/pricing and Anthropic's API pricing documentation. Kunavo's per-token prices are read live from the model catalog.

The two options side by side

Subscription (Pro / Max)API key (pay as you go)
What you payFixed monthly fee, starting at $20Per token, no subscription
LimitsRolling five-hour windows and weekly limits, shared with Claude chatNone—you pay for what you use
A month without codingCharged in full$0
A busy monthCapped—you hit the limit and waitKeeps pace with the work, and so does the bill
Paying from FranceMonthly charge in dollarsUSDT or USDC, or a local method in 7 markets; cards being enabled

What the subscription costs

Claude Code is included in claude.ai's paid plans—Anthropic's setup documentation specifies that the free plan does not include access to Claude Code. Pro costs $20/month ($17/month with annual billing, $200 upfront) and covers one developer working within the plan limits. Max costs $100/month (5 times the Pro allowance) and Ultra, the former Max 20x, $200/month (10 times Pro's weekly allowance), for those who keep hitting these limits. Team and Enterprise add per-seat quotas and spending controls for administrators.

Two details matter from France: the charge is monthly and in dollars, so your bank's foreign transaction fee applies every month; and usage limits are shared with Claude chat, so an afternoon of chatting uses the same window as your coding session.

What the API route costs

There is no subscription here: you pay per token. Rates are in USD per 1M tokens, with Anthropic's public rates alongside for a direct comparison.

ModelKunavo input / outputAnthropic public rates (in / out)
claude-haiku-4-5$0.70 / $3.50$1.00 / $5.00
claude-sonnet-4-6$2.10 / $10.50$3.00 / $15.00
claude-sonnet-5$1.40 / $7.00$2.00 / $10.00
claude-opus-5$3.50 / $17.50$5.00 / $25.00

Cached input is billed at 10% of the input rate on these models, 5% on Opus 5.5 and Sonnet 5.5, and a five-minute cache write at 125%. Because Claude Code rereads the entire conversation at every step, these cache read and write multipliers have the biggest effect on your actual bill—more than your choice of model.

The real cost of one step

An “agentic step” is one back-and-forth with the model within a task: system prompt + conversation + file context in, an edit or explanation out. Measurements put this at about 25,000 input tokens / 1,200 output tokens. At Kunavo rates:

ModelOne stepTask of 20 steps
claude-haiku-4-5$0.022$0.43
claude-sonnet-5$0.043$0.87
claude-opus-5$0.109$2.17

The break-even point

It depends on the number of steps, not the number of days worked. At $0.043 per step on Sonnet 5, a $20 Pro subscription is equivalent to about 460 steps per month, or around 23 tasks of 20 steps each. Below that, pay-as-you-go is cheaper, and months without coding cost nothing; above it, the subscription is better until you hit the plan limits.

To use your own figures, run /usage in Claude Code and enter the four numbers:

cout_claude_code.py
# Ce qu'a coûté une session Claude Code, à partir de ses tokens.
# Lancez /usage dans Claude Code pour récupérer les quatre nombres réels.
RATES = {  # USD par 1M de tokens chez Kunavo : (input, output, lecture de cache / input)
    "claude-haiku-4-5":  (0.70, 3.50, 0.1),
    "claude-sonnet-4-6": (2.10, 10.50, 0.1),
    "claude-sonnet-5":   (1.40, 7.00, 0.1),
    "claude-opus-5":     (3.50, 17.50, 0.1),
    "claude-opus-5-5":   (2.80, 14.00, 0.05),
}

def cout_session(model, inp, out, cache_read=0, cache_write=0):
    i, o, r = RATES[model]
    return (
        inp / 1e6 * i                   # input neuf
        + out / 1e6 * o                 # output, tokens de raisonnement inclus
        + cache_read / 1e6 * i * r      # lecture de cache : fraction r du tarif input
        + cache_write / 1e6 * i * 1.25  # écriture de cache 5 min : 125%
    )

print(cout_session("claude-sonnet-5", 1_200, 5_300, 940_000, 50_000))

Point Claude Code to Kunavo

Claude Code works with any Anthropic-compatible endpoint. Two environment variables are all you need to switch to pay-as-you-go without changing your installation or workflow:

~/.zshrc
export ANTHROPIC_BASE_URL=https://api.kunavo.com
export ANTHROPIC_AUTH_TOKEN=sk-kn-...
export ANTHROPIC_MODEL=claude-sonnet-5
export ANTHROPIC_DEFAULT_OPUS_MODEL=claude-opus-5-5
export ANTHROPIC_DEFAULT_SONNET_MODEL=claude-sonnet-5-5
export ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-5-5

Keep all four model lines. Claude Code’s default model and its opus alias point to the latest Opus, and if Kunavo does not serve it yet, the first request returns a 404 error. The ANTHROPIC_DEFAULT_OPUS_MODEL line pins the alias to Opus 5.5 (claude-opus-5-5), which requires Claude Code v2.1.280 or later (otherwise, run claude update). The sonnet alias currently requests Sonnet 5.5, which Kunavo serves: without ANTHROPIC_DEFAULT_SONNET_MODEL, /model sonnet, the execution phase of opusplan, and subagents configured for sonnet will fail with a 404 error on the day the alias moves to a Sonnet that Kunavo does not serve yet. The key is generated from /app/keys. The complete step-by-step instructions are in the key configuration guide, and if you use Kilo Code instead of the CLI, see configure Kilo Code with Claude.

Four ways to pay less

  1. Let prompt caching work. Cached input costs 10% of the input rate or less, and Claude Code rereads the whole conversation at every step, making this the single most effective lever. See the cache documentation.
  2. Clear context between unrelated tasks. Carrying one long session forward makes input tokens grow at every step.
  3. Choose the model based on the size of the problem. Do not default to the biggest model: the table above shows an order-of-magnitude difference per step between Haiku and Opus.
  4. Keep the Haiku line. Without ANTHROPIC_DEFAULT_HAIKU_MODEL, Claude Code's haiku alias moves to each new Anthropic Haiku before Kunavo serves it, and versions before v2.1.293 request a dated Haiku 4.5 ID that Kunavo does not serve: in both cases, /model haiku and subagents set to haiku receive 404s. The same line switches the auxiliary calls Claude Code makes for itself from the main model to the cheapest one.

Paying from France

Kunavo is prepaid, and every method below tops up the same API balance.

  • From anywhere: USDT on TRON (TRC-20), Ethereum (ERC-20) or BNB Chain (BEP-20), or USDC on Base, Ethereum (ERC-20) or BNB Chain (BEP-20), sent to the address and for the exact amount the top-up page gives you.
  • In local currency: Alipay (mainland China), AlipayHK (Hong Kong), Pix (Brazil), GCash (Philippines), Touch 'n Go eWallet / Boost (Malaysia), PayNow (Singapore) and K PLUS / LINE Pay (Thailand); the top-up page shows the amount in that currency before you pay.
  • Card payments are being enabled and cannot be used yet.

Comparing this with OpenAI's agent? The same calculation for Codex is in Codex pricing.

Frequently asked questions

How much does Claude Code cost?

There are two distinct prices, depending on how you pay. With a claude.ai subscription, Claude Code is included in the plan: Pro at $20/month ($17/month with annual billing, $200 upfront), Max at $100/month, and Ultra (formerly Max 20x) at $200/month. With an API key, you pay per token, with no subscription—as of November 23, 2026, Anthropic lists Claude Sonnet 5 at $2.00 input / $10.00 output per 1M tokens and Claude Opus 5 at $5.00 / $25.00, while its own documentation estimates real-world usage at around $13 per developer per active day, or $150–250 per developer per month. Through Kunavo, the same models cost $1.40 / $7.00 and $3.50 / $17.50.

Is Claude Code free?

The CLI, editor extensions, and all configuration are free. Model calls are not, and there is no free tier that lets Claude Code call a model at no cost—the Anthropic setup documentation says the Claude.ai free plan does not include Claude Code. The least-commitment option is a pay-as-you-go API key with no subscription.

Subscription or API key: which costs less?

It depends on the number of agentic steps you run, not the number of days worked. One step is about 25,000 input tokens and 1,200 output tokens, costing $0.043 on Claude Sonnet 5 at Kunavo's rates. A $20 Pro subscription therefore equals approximately 460 steps per month, or roughly 23 tasks of 20 steps. Below that, pay-as-you-go is cheaper and a month without coding costs nothing; above it, the subscription wins until you hit its usage limits.

What are the limits of Claude Max and Claude Ultra?

With a subscription, usage is governed by rolling five-hour windows and weekly limits shared with Claude chat. Max gives 5 times the Pro allowance, every five hours and every week: it uses the same windows, but has a higher limit. Ultra, the former Max 20x, gives 10 times Pro's weekly allowance and, once the account is verified, no longer has a five-hour window. Once you reach the limit, you wait for the next window. The API key route has no usage window at all: you pay for what you use.

Does a Claude Pro subscription give you API access?

No. claude.ai subscriptions and Claude API keys are separate products, billed separately, and do not offset each other. As long as an authentication variable such as ANTHROPIC_AUTH_TOKEN is set, Claude Code uses the key instead of your session: subscription limits no longer apply, and usage is billed to the key owner. Remove the variable and Claude Code switches back to the subscription.

How can I reduce the cost of Claude Code?

Four levers, in order of impact: let prompt caching work (cached input is charged at 10% of the input rate on most Claude models and 5% on Opus 5.5 and Sonnet 5.5, and Claude Code rereads the entire conversation at every step); clear the context between unrelated tasks instead of dragging a long session along; choose the model based on the size of the problem instead of leaving the largest as the default; and keep ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-5-5 when using a gateway: this line is recommended on Kunavo, because without it the haiku alias moves to each new Anthropic Haiku before Kunavo serves it (and versions before v2.1.293 request a dated Haiku 4.5 ID that Kunavo does not serve), and /model haiku and subagents set to haiku then receive 404s. It also routes Claude Code's internal calls to Haiku instead of the main model. Pointing ANTHROPIC_BASE_URL to a cheaper endpoint adds to these four levers.