AI TOOLS

Claude Code payments: subscription and API channels

Claude Code supports subscription and API billing with different allowances. Check login, cost and supported regions; payment does not establish eligibility.

AuthorPIKABAO Data Research GroupLast reviewedBlogAll articlesBodyAbout 2786 wordsReadingAbout 13 minutes
Key Takeaways
  • Installation is easy; the hard part is account and payment configuration
  • Subscriptions and API billing suit different usage patterns
  • API Credit and subscriptions run on two independent risk-control systems, so troubleshoot them separately
  • Payment rejections follow a fixed order: card records, billing details, card BIN, and limit

separate “subscription” from “API”

  • Searching for "how much does Claude Code cost per month" comes up empty — it is not a product sold separately and has no standalone subscription.
  • Two channels: included in a Claude subscription (Pro / Max / Team / Enterprise), or pay-as-you-go API (the Console or a cloud provider).
  • The official docs state: the free tier does not include Claude Code — you need one of the paid accounts above.
  • The dividing line isn't price, it's the way you work: a person at the terminal uses the subscription; machines running on their own use the API.
  • The two problems in China must be kept apart: payment can be solved; service-region support is not something a card can solve.
One sentence for the headline: being able to install and run it is one thing; being "allowed to use it" is another. This site only handles the payment and subscription layer; region and network reachability are outside our service scope, and we do not recommend any workaround for regional restrictions.

Claude Code has no price of its own

The question "how much does a Claude Code subscription cost" presupposes a product that doesn't exist. Claude Code is Anthropic's official client tool — it has no separate subscription and no separate price. Its money comes from two places:

  • Included in a Claude subscription: the quota of plans like Pro / Max can be used directly by Claude Code, with no extra charge;
  • Pay-as-you-go API: log in with an API key and costs accrue by token to your Console organization (or cloud account).
ChannelHow the money flowsShape of the capWho it fits
Subscription quotaFixed monthly fee; usage is included in the subscriptionRolling windows; hit one and you wait; cost is cappedSomeone at the terminal for a few steady hours every day
API pay-as-you-goBilled by input / output tokensNo windows, keeps running while the balance holds; cost is uncappedUneven usage, needs to go into CI and scripts, needs per-project allocation

The two channels measure usage differently — don't take one channel's usage and convert it into the other's price.

On cost, the official docs add one key mechanism note: Claude Code is billed by API token consumption; the session cost estimate shown to subscription users is not a billing basis — what matters is the quota bar and the usage details. Subscriptions have usage windows and quotas; API billing follows token consumption.

There is also a route that doesn't go through a personal subscription: connect Claude Code to a cloud provider (such as Amazon Bedrock, Google Cloud, Microsoft Foundry) and bill by token to the cloud account. This route mainly serves teams with cloud contracts.

How to confirm in the terminal which channel you're on

The first time you run claude is the moment of choosing a channel. The official docs give two paths:

Browser authorization (subscription / Console account)

After installing, run claude directly and follow the browser prompts to complete the authorized sign-in.

Environment variable (API key)

Set ANTHROPIC_API_KEY first; when you run it, approving this key in the prompt skips the sign-in prompt and bills directly by API.

How to check which path you're on now: use the command from the official docs to look at the state — /usage shows quota and usage details (session cost estimates, per-model usage, cache hits, the subscription quota bar); use /login and /logout to switch accounts or re-authenticate.

About the /cost you hear about: plenty of tutorials online write /cost. The tracking command in the current official cost docs is /usage, and /cost no longer has a corresponding explanation — defer to the official docs; which fields different versions show may also differ.
The login credential issued by a subscription only authorizes the official client: feeding it to third-party CLI tools or wrapper clients gets it rejected outright, and that kind of use carries account risk on its own. To use Claude in other tools, the correct path is an API key — not moving the subscription credential around.

The quota under a subscription is shared

On the subscription path there's an easily overlooked fact: Claude Code doesn't eat its own quota. The official docs state that subscription usage resets on a rolling five-hour window plus a weekly window and shares the same quota pool as the Claude web app.

  • Consequence one: running hard in the terminal makes the web side hit its limit sooner — the two entrances affect each other;
  • Consequence two: when judging "should I upgrade", looking only at web usage underestimates what's really being consumed — count terminal sessions too (for picking a tier, see Claude subscriptions: Pro, Max and billing).

When you hit the limit, the official prompts come in three kinds, with different meanings and responses:

PromptWhat it meansWhat to do
session limit / weekly limitSeat-level usage window, shared across all modelsWait for the window to reset; switching models won't help
Opus limit / Sonnet limitThat specific model's quota is used upSwitch to a model outside that family and keep going
Subscription quota used upUsage credits can be enabled to keep runningPut a monthly cap on credits to control spending

Anthropic may change usage windows and reset timing. Follow the prompts and current usage details.

API channel: the cost structure decides how you use it

The two channels have completely different cost shapes: a subscription is a fixed monthly cap; the API is linear in usage with no cap. So on the API, the thing to manage isn't "which tier to buy" but "how much this session will burn".

The official docs give an order-of-magnitude reference (the average for enterprise rollouts): about $13 / developer / active day, $150–250 / developer / month, and 90% of users spend under $30 a day; there's also a small amount of background consumption even when idle (conversation summaries, prompt suggestions, etc.), which per the official wording is usually under $0.04 per session. These numbers are only for judging the magnitude, not your bill.

Three mechanisms that genuinely cut cost (all per the official docs):

  • Model choice: Sonnet is enough for most coding tasks; leave Opus for complex architecture and multi-step reasoning. Switch mid-session with /model, or change the default in the config; subagents can be assigned a smaller model;
  • Prompt caching: turned on automatically by Anthropic; the system prompt and repeatedly-read codebase context are billed at a lower unit rate when they hit the cache. Whether you hit it is visible in /usage;
  • Context management: use /clear when switching tasks and /compact to compress; a long session left uncleaned re-computes the entire context on every turn.
The cache's validity directly affects the hit rate: about 1 hour by default on a subscription, about 5 minutes on the API (shorter when usage credits are in play). Coming back to the same session after too long a gap lets the cache expire and triggers a full-context recompute, so the cost jumps a tier — to keep costs controllable, don't leave long tasks idle for too long before picking them up.

Two more small items, also per the official wording: /effort and the environment variable MAX_THINKING_TOKENS can cap the extended-thinking budget; and using ready-made CLI tools (like gh, aws) instead of hanging a pile of MCP servers on reduces the context carried on every turn. Also, choosing data residency carries a rate factor of about 1.1x.

The two things that actually block users in China

Back to the headline question: how do you use Claude Code in China? Most tutorials answer with installation and network, but what actually decides whether you can keep using it long-term are two other things — and they must be looked at separately: one can be solved, one can't.

The first: payment — this layer can be solved

Claude Code's payment is just a Claude subscription or Console credit, so the gates you pass are exactly the same as subscribing to Claude: a BIN that supports AI-subscription scenarios, the card / billing address / payment network all aligned, and a buffer left on the card. The full triage for this layer is in ChatGPT payment declines: two-stage troubleshooting and Ten virtual card decline reasons and troubleshooting checks.

Subscribe first or API first: buying API credit directly with a freshly opened card gets blocked noticeably more often than running one monthly charge first. The path our support team has repeatedly verified is — first complete one subscription with the same card, build one successful transaction record, and switch to the API a day or two later. This isn't an official statement; it's an experiential path: in this scenario the card's transaction history is the cheapest trust credential there is.

The second: service-region support — no card can solve this one

Anthropic's terms of service and supported-countries list do not include mainland China (per the official supported countries page); the official docs also list "supported countries" as one of the running requirements. In other words: being able to install and run it and being "allowed to use it" are two different things — the former is a technical problem, the latter a terms-of-service problem.

Our position on this is clear: this site only handles the payment and subscription layer, and neither provides nor recommends any way to bypass regional restrictions, including any form of network workaround. Whether to use it in your region is yours to confirm against the terms of service and local laws.

If use in violation of the terms is found out, what gets hit is the account itself — the subscription may still be there while the benefits are already gone, and that kind of loss can't be recovered by switching cards or getting a refund. The logic behind account suspensions, see ChatGPT account suspension: official rules and appeals.

Putting it back into cost terms makes it clearer: failing once on the card problem costs a few dollars and a little time; failing once on the region-compliance problem costs the account and the money already paid. They are not the same magnitude — Payment preparation does not replace regional eligibility checks.

Getting the money ready: this site's rate terms

If you've decided to go this route, the money to prepare on the payment side, per this site's current terms, is as follows:

ItemThis site's current terms
Card opening feeFrom $1, varies by BIN; per the card-opening page
Account top-up$0 handling fee
Card top-upA flat 3%, the only tier, no ladder
Minimum top-up per transaction20 USDT per transaction, TRC20 and ERC20 only
Card limitA one-time total pool, no monthly reset
Moving card balance back to the accountFree; 48 hours must pass since the card's last transaction
Withdrawing account balance to USDTFlat $3 per transaction

The top-up advice follows the site-wide terms: leave a buffer above the list price for monthly plans — ≥$25 on the card for a Pro plan, and ≥$210 for high tiers like Max 20x. Don't top up to exactly the list price — that's a common failure scenario.

If you see numbers elsewhere such as "0.5% top-up", "2% card top-up on a tiered ladder", "a 30-minute hold before withdrawing", or "a $0.60 failed-transaction fee", those are from an earlier set of terms. This site always defers to the pricing page and the live display on the card-opening page.

FAQ

Does Claude Code have a separate subscription?

No. It isn't a product sold separately: the quota is either included in a Claude subscription (Pro / Max / Team / Enterprise), or billed by token through the Console or a cloud provider. The "Claude Code subscription price" doesn't exist.

Can the free tier use Claude Code?

No. The official docs state Claude Code requires Pro / Max / Team / Enterprise or a Console account; the free tier on claude.ai doesn't include it.

Does subscribing to Pro mean unlimited use?

No. A subscription trades a fixed monthly fee for a usage window (a rolling five-hour plus a weekly window, shared across models); hit it and you wait for the window to reset. If it's genuinely not enough, consider upgrading or moving to the API — not opening a second account.

Do Claude Code and the web app share the same quota?

Yes. The same account shares one quota pool, and the official docs state subscription usage resets on a rolling five-hour and weekly window. So if you run hard in the terminal, the web side will hit its limit sooner.

What is the official command for viewing usage and cost?

The tracking command in the current official docs is /usage, which shows quota details, per-model usage and session cost estimates. The /cost that circulates online no longer has a corresponding entry in the official cost docs — defer to the official ones.

Can the subscription login credential be used in other tools?

No. The login credential issued by a subscription only authorizes the official client; third-party tools reject it outright, and that kind of use carries account risk. To use Claude in other tools, use an API key.

Can a domestic bank card in China pay for Claude Code?

Basically no. The viable path is a virtual card whose BIN supports AI-subscription scenarios, with the card, billing address and payment network all aligned; the specifics are in this site's payment-declined and virtual-card-declined articles.

Can Claude Code be used in China?

Technically it can be installed and run, but Anthropic's supported-countries list doesn't include mainland China, and using it from an unsupported region carries a risk of account restriction — that's not something a card swap can fix. This site doesn't provide ways to bypass regional restrictions.

Get the payment layer sorted first

The card-opening page lists which scenarios a BIN supports; the pricing page spells out every fee and top-up ratio item by item.

Refund policy → Card balance refunds · full rules
Online support