How to use the Claude API in China: sign up by email, pay with Alipay
Updated 2026-11-27简体中文繁體中文日本語한국어DeutschFrançaisEspañolPortuguês (Brasil)ItalianoРусский
Anthropic does not offer its API in mainland China, and signing up takes a phone number and a card from a supported country. On APIKing an email address gets you an API key and you can top up with Alipay. Claude Opus, Sonnet, Haiku and Fable all run on that one key, through the OpenAI SDK, the Anthropic SDK or Claude Code.
How it differs from the official API
- No foreign phone number or card, and no identity or company verification.
- Pay with Alipay in CNY, or with Visa or Mastercard in USD.
- Pay as you go from your balance. No subscription, and the balance never expires.
- Failed calls and failed generations are not charged.
- The API servers are in Hong Kong.
Claude prices
Live prices, next to Anthropic’s list prices:
| Model | Price | Official price (per 1M tokens) |
|---|---|---|
| Claude Opus 5.5 | $0.50 in · $2.50 out / 1M | $4.00 in · $20.00 out / 1M |
| Claude Sonnet 5.5 | $0.25 in · $1.30 out / 1M | $2.00 in · $10.00 out / 1M |
| Claude Sonnet 5 | $0.44 in · $2.20 out / 1M | $2.00 in · $10.00 out / 1M |
| Claude Haiku 5.5 | $0.04 in · $0.17 out / 1M | $0.10 in · $0.50 out / 1M |
| Claude Fable 5.2 | $1.50 in · $7.50 out / 1M | $8.00 in · $40.00 out / 1M |
Call Claude with the OpenAI SDK
Change two things in existing OpenAI code: point base_url at https://apiking.ai/v1 and use your APIKing key. Set model to a Claude model.
from openai import OpenAI
client = OpenAI(base_url="https://apiking.ai/v1", api_key="sk-YOUR_KEY")
reply = client.chat.completions.create(
model="claude-sonnet-5-5",
messages=[{"role": "user", "content": "Explain vector databases in three sentences"}],
)
print(reply.choices[0].message.content)Call Claude with the Anthropic SDK
Anthropic’s native /v1/messages works too. Set base_url to https://apiking.ai (without /v1) and use your APIKing key.
import anthropic
client = anthropic.Anthropic(base_url="https://apiking.ai", api_key="sk-YOUR_KEY")
message = client.messages.create(
model="claude-opus-5-5",
max_tokens=1024,
messages=[{"role": "user", "content": "Check this SQL for injection risks"}],
)
print(message.content[0].text)Use it in Claude Code
Claude Code needs two variables, ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN. See the Claude Code setup guide for every step.
Get started
- Sign up with an email address, or sign in with Google.
- Top up in the console wallet with Alipay in CNY or a card in USD.
- Create an API key in the console and call it as above.
Questions
Can I use the Claude API in China?
Anthropic does not offer its API in mainland China. An APIKing key calls every Claude model; sign up by email, top up with Alipay, and the API servers are in Hong Kong.
Is identity or company verification required?
No. Sign up with an email address or Google and create an API key.
Can I call Claude with the OpenAI SDK?
Yes. Set base_url to the APIKing /v1 address and model to a Claude model. The Anthropic SDK and Claude Code work too.
Am I charged for failed calls?
No. Failed calls and failed generations are free, and the balance never expires.
Is there a free trial?
New accounts have no trial credit; top up first.