← Back to Blog

Claude API Payment Without a Foreign Card (2026 Guide)

(Unofficial)

This guide is independently community-maintained. It is not affiliated with, endorsed by, or sponsored by the vendor of the third-party tool it covers. All third-party trademarks are the property of their respective owners.

November 16, 2026
Gold coins pour into a purple wallet gauge while an attached battery charges, flanked by wallet and server icons.

Claude API Payment Without a Foreign Card (2026 Guide)

ZH title: 不想绑外卡怎么给 Claude API 充值(2026 支付方式全解)Rates and payment details are as of 2026-11-06, sourced from CodeGateway's pricing page, top-up page, and billing guide. Fees, top-up amounts, and checkout options may change; the checkout page is authoritative.

Yes — you can pay for Claude API access without holding a foreign credit card. There are three practical routes: Anthropic's first-party API (a supported country and an accepted payment method are still required), a cloud marketplace such as AWS Bedrock or Google Vertex AI (you need a cloud account and a payment method), or an Anthropic-Messages-compatible gateway such as CodeGateway (top up through Stripe with Alipay or a card, then point your base_url at the gateway). If you want to pay with Alipay and use Claude on a pay-as-you-go basis, the gateway route is the most direct.

The short answer:

  • No foreign card, and you want to pay with Alipay: use a gateway such as CodeGateway, top up, and change your base_url.
  • You already have an AWS or GCP contract and need cloud invoicing: use Bedrock or Vertex AI.
  • You must have an Anthropic first-party account or invoice: use Anthropic's first-party API and follow its checkout options.
RoutePayment methodsForeign-card hurdleBest forNotes
Anthropic first-party APIShown at Anthropic checkoutUsually requiredYou need a first-party account or invoiceCountry and payment-method limits
AWS Bedrock / Google Vertex AIPayment method linked to your cloud accountUsually requiredExisting cloud contracts and invoicingHeavier setup and permissions
CodeGateway gatewayCredit card (Visa / Mastercard / AmEx), Stripe Link, Alipay, bank transferNot requiredAlipay or card users who want pay-as-you-goIndependent third party, not affiliated with Anthropic

See current top-up amounts →

1. Why a foreign card becomes a blocker

The first hurdle to paying for Claude API is not code; it is the payment rail. Anthropic's first-party API is available only in supported countries and regions, and its checkout shows only the payment methods it currently accepts. If you do not have an accepted international payment method, the account stops at the payment step.

For individual developers and small teams, a foreign card also adds friction: issuer risk checks, currency conversion, reconciliation, and expense reporting. The API may take a minute to call, but the payment step can take days.

Each route has a cost. The first-party API is the most direct, but payment is the gate. Cloud marketplaces fit companies that already have cloud contracts, but setup and permissions are heavier. A gateway trades a service fee for payment convenience, which fits people who want to pay with Alipay or a card on a pay-as-you-go basis. The rest of this guide uses CodeGateway as the example and covers payment methods, fees, and arrival times.

2. Which payment methods does CodeGateway support?

CodeGateway's online top-ups run through Stripe Checkout. Current options include:

  • Credit cards: Visa / Mastercard / AmEx
  • Stripe Link
  • Alipay
  • Bank transfer (handled through the billing flow, not Stripe Checkout)

The exact methods shown at checkout depend on Stripe at that moment. If the option you expect is missing, Stripe is not currently offering it to our merchant category in your region; use another method or contact support.

Top-up amounts: presets are $10 / $20 / $50 / $100; you can also enter a custom amount from $5 up to $10,000. First-time and prepaid top-ups may include bonus credit; the current tiers are shown on the top-up page. Your wallet does not separate principal from bonus credit.

CodeGateway prices in US dollars (USD). If your card is issued in another currency, your issuer converts the USD amount at its own exchange rate. Stripe's processing fee is charged per transaction; the final charge is shown at Stripe Checkout.

3. What it costs

Usage: upstream list price in USD × 1.07, billed on actual token usage. No monthly fee or subscription; your balance does not expire.

Top-up: amount + 2% platform fee + Stripe processing fee (about 3.9% + $0.30 per transaction). The platform fee and Stripe fee are charged on top of the top-up amount and do not reduce the credited balance. Neither fee is refundable.

Example with a $20 top-up:

  • Top-up amount: $20.00
  • 2% platform fee: $0.40
  • Stripe fee: about $1.08–$1.10 under the published formula
  • Total: about $21.48–$21.50, with the final breakdown shown at Stripe Checkout

If your card is not USD-denominated, your issuer may also charge a currency-conversion fee. That fee is set by the issuer, not by CodeGateway.

4. Step-by-step top-up

  1. Register and sign in to the CodeGateway Dashboard.
  2. Open Billing / Top up in your workspace.
  3. Choose a preset amount or enter a custom amount ($5–$10,000).
  4. Continue to Stripe Checkout and pay with Alipay or a card.
  5. After payment, Stripe notifies CodeGateway by webhook and credits your balance. Treat the actual balance as authoritative; check Payment History for status.
  6. Create an API key in the workspace (it starts with sk-cg-).
  7. Point your Anthropic SDK's base_url to https://api.codegateway.dev and replace api_key with your new key.
  8. Send a minimal request to /v1/messages to verify. Copy the model ID from the model catalog.

Top up and start using Claude →

5. Arrival, invoices, and refunds

Arrival: after payment, Stripe calls back to CodeGateway and most orders are credited quickly. Treat the actual balance as authoritative. If Payment History shows that Stripe captured the payment but the balance has not updated, the webhook is usually still syncing; refresh shortly. If it still has not arrived after a reasonable time, contact support.

Invoices: Stripe automatically issues a receipt after each successful top-up; invoices are available in the workspace billing area.

Refunds: unused balance can be refunded. The refund is capped at the lower of the original payment amount and the available wallet balance. The platform fee and Stripe fee are non-refundable. Funds are returned to the original payment method, usually within 1–3 business days, subject to your issuer's processing time. Each top-up can be refunded only once.

Balance validity: top-up balance does not expire.

6. FAQ

Can I use Claude API without an Anthropic account? Yes. CodeGateway has its own account system. Register, create an API key, and call the Anthropic-Messages-compatible endpoint; you do not need to register with Anthropic first.

Is Alipay more expensive than a card? The platform-side cost is the same: the 2% top-up fee plus the Stripe processing fee. The breakdown at Stripe Checkout may differ slightly by method; the checkout page is authoritative.

Can I use the balance in Claude Code or Cursor? Yes. Set the tool's Anthropic base_url to https://api.codegateway.dev and use your sk-cg- key. See the related reading below for configuration guides.

What is CodeGateway's relationship to Anthropic? CodeGateway is an independent third-party service and is not affiliated with Anthropic. Claude is a trademark of Anthropic. Model capabilities are provided upstream; billing and support are handled by CodeGateway.

Can my account be limited or banned? We do not promise that it cannot be limited. Follow CodeGateway's terms and the upstream model providers' usage policies; violating requests may be rejected, filtered, or rate-limited upstream.

Which countries and regions are supported? Follow the terms of service and the options shown at Stripe Checkout. If a payment method is missing, it is not currently available to our merchant category in your region.


No foreign card? Create a CodeGateway account, top up with Alipay or a card, and use Claude, GPT, and Gemini on a pay-as-you-go basis. Your balance does not expire.

Create a CodeGateway account →

Author:CodeGateway 团队Reviewed on:2026-11-06

Solve API Key & Billing limits with CodeGateway

Lacking an official API key or facing overseas card payment issues? Create an sk-cg- key instantly. One key for Claude, GPT, Gemini, and DeepSeek: Claude and Gemini text models use the Anthropic Messages protocol (/v1/messages) — the OpenAI-compatible text endpoints do not accept them. Built-in smart routing and free trial credits included.

Sign up free
Claude API Payment Without a Foreign Card (2026 Guide)