cocodot
← Back to guides
Local card declined for overseas AI? cocodot: one card + one key
Claude APIUpdated 2026-10

How to Add Credits to the Anthropic / Claude API When Your Card Is Declined (2026)

Hitting 'Add credits' in the Anthropic Console and watching your card get declined? Here's why it fails, how Claude API billing actually works (prepaid credits), and the two fixes that work.

TL;DR: Anthropic Console → Billing → Add credits runs on card payments, and cards issued outside the US/EU are frequently declined — the card goes in, the charge never lands. It's a check on where the card was issued, not a mistake on your side. Two fixes: (1) Add credits with a US-BIN virtual card (cocodot issues US Visa virtual cards) — right if you must stay on the official Console for official invoices or SLA; (2) Call Claude through an OpenAI-compatible relay you can fund directly — cocodot (ours, disclosed) takes card (Stripe), stablecoin (USDC/USDT) or CNY, one-line base_url change — right if you just need Claude working in your code. Two things to know: the Anthropic API is prepaid credits — when the balance hits zero, calls fail outright rather than slowing down; and Claude Code speaks Anthropic's native format, so if you go the relay route, confirm it exposes an Anthropic-compatible endpoint or Claude Code won't connect.

1. The API is not the same as a subscription

A claude.ai subscription (Pro/Max) covers usage in the web app and in Claude Code. The API at console.anthropic.com is a separate, per-token developer interface with its own balance — building an app, running batch jobs, or powering an agent all go through the API, and none of that draws from a Pro or Max subscription. If you're hitting Add credits and getting declined, this is the surface you're on.

2. Why Add credits keeps declining

Console billing runs through a standard card-payment processor, and it screens each attempt before an authorization is even created. The strongest signal in that screen is the issuing country of the card: cards issued outside the US and EU are declined at a materially higher rate, independent of the balance on the card or how carefully the details were entered. That's why the number goes in cleanly, the form submits, and the charge simply never lands — nothing about the input was wrong. Two consequences follow. Retrying the same card repeatedly doesn't help and can make the account look riskier to the same check; and the fix has to change the one variable the check actually looks at — swap in a card whose issuing country the processor accepts, rather than re-entering the same details a fourth time.

3. What prepaid credits actually mean for you

Anthropic's billing model matters as much as the payment method: it's prepaid credits, not pay-later. You load a balance up front, and every call is metered against it in real time. When the balance reaches zero, the next call doesn't slow down or queue — it fails immediately with an error. Two practical implications follow. In production, put a balance check on a schedule rather than discovering the drop from a support ticket; a job running overnight on a thin balance can die halfway through with no warning. And if you only want to confirm your code path works before committing money, do that on a small top-up rather than loading a large balance for a test that needs a couple of dollars of actual usage.

4. Fix one: add credits with a card the Console accepts

If you need to stay on your own official Anthropic account — for an invoice in your organization's name, an SLA, or because a client requires it — the direct fix is a card whose issuing country the Console's payment check accepts. A US-issued virtual Visa clears that specific screen. Open Console → Settings → Billing, add the card, and use Add credits with a small amount first (around $5) to confirm it clears before loading a larger balance. cocodot issues this kind of card for a flat $9.9, funded from a balance you top up locally — check the pricing page for the current top-up fee, since it's reviewed periodically. One thing this route does not solve: the network path to Anthropic's endpoints is a separate problem from billing, and production traffic run from a country with unreliable direct access commonly still needs its own connectivity plan regardless of how payment gets resolved.

5. Fix two: call Claude through a relay you can fund directly

If the goal is simply to get Claude working in your code — the account doesn't need to be in your own name, and you don't need an official invoice — this route is faster: sign up for an OpenAI-compatible relay that takes a payment method you already have, top up, create a key, and point base_url at it. With cocodot specifically: register, verify your email for a small trial credit, fund the balance, and set base_url to https://cocodot.co/api/ai/v1 with the Claude model code — the current lineup is public at cocodot.co/api/ai/v1/models, so pull it live rather than copying a model name out of any article, since the lineup changes. Nothing else in your integration changes; you're still calling the same underlying Claude models, billed per token, at prices that don't exceed the official list.

6. Claude Code needs Anthropic's format specifically

One detail trips people up when they move to a relay: Claude Code speaks Anthropic's own API shape, not the generic OpenAI format most relays expose. If your integration is a script calling chat completions, an OpenAI-compatible endpoint is all you need and the relay route above works as described. If you specifically want Claude Code itself to point at a relay, confirm the relay publishes an Anthropic-compatible endpoint before you commit to it — cocodot has one, currently in beta, with configuration on cocodot.co/claude-code. Tools that only speak OpenAI's format, like most Cursor or Cline integrations, aren't affected by this distinction and work fine with either kind of endpoint.

7. Picking a model and keeping the bill predictable

Whichever billing path you land on, the same habits keep spend under control. Route everyday tasks to Sonnet or Haiku and reserve Opus for problems that actually need it — capacity and price both scale with model tier, so this is the single biggest lever you have. Turn on prompt caching if your workload repeats context, such as a system prompt, a long document, or a tool schema; it materially cuts the cost of the repeated portion on every call after the first. Set a spend limit in the Console so a bug in a retry loop can't run past a number you chose, and treat your card or relay balance as the backstop underneath that limit, not the primary control.

8. When something still doesn't work

If a card is declined a second time on the same details, check three things before trying a third: the card hasn't expired, the billing address matches exactly what's on file for that card, and you aren't retrying within minutes of the last failure — space it out, since repeated rapid attempts read as riskier rather than more persistent. If credits were charged but don't show as available, check the invoice status on the Billing page before assuming the payment failed; sometimes it's a display lag rather than a failed charge. And if you need a receipt for expense reporting, invoices are downloadable directly from the Console regardless of which card funded them. One more thing worth checking before you conclude billing is broken: confirm the error is actually a payment decline and not a separate connectivity issue presenting the same way, since a timed-out request to Console can look identical to a rejected charge in some client libraries — retry once on a stable connection before treating it as a card problem.

Can't add Claude API credits: which fix is for you

① Add credits via official Console② Call Claude through a relay
Best forYou need the official account, invoices or SLAYou just need Claude working in your code
How you payIssue a US Visa virtual card → Console → Add creditsFund the balance directly — no card
AccountYour own official Anthropic accountRelay account — still the official models underneath
NetworkDirect access from China is unstable; still your problemDirect route, no VPN
Setup costIssue a card, then the official card-on-file flowChange one base_url (OpenAI-compatible)

FAQ

How do I add credits to the Anthropic / Claude API?

Through console.anthropic.com → Settings → Billing → Add credits, paid by card. If your card is issued outside the US/EU it will often be declined; the two workarounds are to pay with a US-BIN virtual card, or to call Claude through an OpenAI-compatible relay you can fund directly.

Why does my card keep getting declined on Claude API billing?

It's not a data-entry problem — it's a risk check on where the card was issued. Cards from many countries are declined by Anthropic's acquirer. A US-BIN virtual card clears that specific wall.

What happens when Claude API credits run out?

The Anthropic API is prepaid: when the balance reaches zero, calls fail with an error rather than being throttled. In production, monitor the balance so a long-running job doesn't die partway.

Can I use the Claude API without issuing a card at all?

Yes — use an OpenAI-compatible relay you can fund directly: sign up, top up, create a key, point base_url at it and set the Claude model code. Your code barely changes. Note Claude Code needs an Anthropic-compatible endpoint, so check the relay offers one.

My card was declined on Anthropic billing but there is no charge record — why?

That's a pre-auth rejection: Anthropic's checkout rejected it before any authorization reached the issuer, so nothing exists to look up. Usual causes: billing details not matching the cardholder, an exit country that doesn't match the card, or a datacenter IP. Full breakdown: /hub/card-declined-no-record.

Can I also call Chinese models like DeepSeek or Qwen from outside China?

Yes, and that is usually harder than it sounds on your own: those platforms generally require a Chinese phone number and a Chinese payment method to register and pay. Through a gateway you fund one balance (stablecoin, card or CNY) and call DeepSeek, Qwen and GLM from the same OpenAI-compatible endpoint as Claude and GPT. cocodot (ours, disclosed) serves them alongside Claude and GPT; per-model pricing is on cocodot.co/pricing, and the live model list is public at cocodot.co/api/ai/v1/models if you want to check coverage before signing up.

About cocodot

cocodot is a payment and AI access service for developers and cross-border teams in mainland China. It provides US-BIN virtual cards issued by a licensed institution — used to pay for overseas subscriptions and ad accounts — and an OpenAI-compatible AI API gateway for calling Claude, GPT and Gemini from within mainland China. Both share one wallet, funded by Alipay and accounted in USD. Card: $9.9 to open, 3% to load, $1 per active card per month; spending: $0.60 settlement fee on purchases under $20; a corresponding fee applies when the issuer charges one.

Service scope, pricing and limits →

Opening cards in bulk for a team?

Batch-issue dozens to hundreds of US Visa virtual cards — wholesale pricing, one dashboard to manage and reconcile them all. For cross-border e-commerce, ad buying and agencies.

Business plan →
How to Add Credits to the Anthropic API When Declined