How to use the Gemini API in China: no Google account, pay with Alipay
Updated 2026-11-28简体中文繁體中文日本語한국어DeutschFrançaisEspañolPortuguês (Brasil)ItalianoРусский
Google does not offer the Gemini API in mainland China, and Google AI Studio needs a Google account and a foreign card. On APIKing you sign up with an email address and top up with Alipay, then call the Gemini 4 chat models, the Nano Banana image models and the Veo and Gemini Omni video models with one key, through the OpenAI SDK, the native Gemini API or the Gemini CLI.
How it differs from the official API
- No Google account or foreign card, and no identity or company verification.
- Pay with Alipay in CNY, or with Visa or Mastercard in USD.
- Pay as you go, no subscription, the balance never expires, and failed calls are free.
- The same key calls Claude, GPT and DeepSeek.
- The API servers are in Hong Kong.
Gemini chat model prices
| Model | Price | Official price (per 1M tokens) |
|---|---|---|
| Gemini 4 Neon | $0.36 in · $1.80 out / 1M | $3.00 in · $15.00 out / 1M |
| Gemini 4 Argon | $0.18 in · $0.90 out / 1M | $2.00 in · $10.00 out / 1M |
Nano Banana, Veo and Gemini Omni prices
| Model | Price |
|---|---|
| Nano Banana Pro | $0.0196 / request |
| Nano Banana 2.1 | $0.0265 / request |
| Nano Banana 2 Lite | $0.008 / request |
| Veo 3.1 Fast | $0.1372 / request |
| Gemini Omni 1.1 Flash | From $0.02812/s |
Call Gemini with the OpenAI SDK
from openai import OpenAI
client = OpenAI(base_url="https://apiking.ai/v1", api_key="sk-YOUR_KEY")
reply = client.chat.completions.create(
model="gemini-4-argon",
messages=[{"role": "user", "content": "Summarise the three main points of this text: ..."}],
)
print(reply.choices[0].message.content)Use the native Gemini API
Gemini’s own generateContent works too, with Google’s paths and request bodies; only the key is an APIKing key:
curl "https://apiking.ai/v1beta/models/gemini-4-argon:generateContent" \
-H "Authorization: Bearer sk-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"contents": [{"parts": [{"text": "Hello"}]}]}'Use it in the Gemini CLI
Install the official Gemini CLI, then create or edit ~/.gemini/.env in your user folder:
GEMINI_API_KEY=sk-YOUR_KEY
GOOGLE_GEMINI_BASE_URL=https://apiking.ai
GEMINI_MODEL=gemini-4-argonGOOGLE_GEMINI_BASE_URLis the site root without/v1or/v1beta; the Gemini CLI adds the path.- Restart the Gemini CLI and choose Use Gemini API Key in
/auth. Pick a model with/model, or start a session withgemini -m MODEL_ID. - This uses API-key authentication, not a Google account sign-in.
Get started
Sign up with an email address or Google, top up in the wallet and create an API key. New accounts have no trial credit. For Claude and GPT from China, see the Claude guide and the GPT guide.
Questions
Can I use the Gemini API in China?
Google does not offer it in mainland China. An APIKing key calls Gemini, Nano Banana and Veo; top up with Alipay, and the API servers are in Hong Kong.
Do I need a Google account?
No. Sign up with an email address or Google; no identity or company verification.
Is the native Gemini API supported?
Yes. /v1beta/models/{model}:generateContent takes Google’s paths and bodies, authenticated with an APIKing key.
How do I set up the Gemini CLI?
Set GEMINI_API_KEY, GOOGLE_GEMINI_BASE_URL (the site root) and GEMINI_MODEL in ~/.gemini/.env, then choose Use Gemini API Key in /auth.