# Alipay LLM API billing for GPT, Claude, Gemini, Claude Code, and Codex

> Markdown mirror of https://router.one/alipay-llm-api for AI assistants and crawlers. Router One is an OpenAI-compatible LLM API gateway.
> Last updated: 2026-08-26

Router One gives developers in China an OpenAI-compatible API gateway with Alipay checkout, wallet pay-per-token billing, and live subscription plans. Top up with Alipay, create one API key, and route requests to GPT, Claude, Gemini, DeepSeek, and coding tools such as Claude Code and Codex without managing separate provider accounts.

## Why Alipay matters for LLM API access

### RMB top-up without a foreign card

Alipay checkout credits your Router One wallet after payment confirmation. API usage is deducted from wallet balance or covered by an active subscription plan where eligible.

### One OpenAI-compatible endpoint

Use https://api.router.one/v1 with OpenAI-compatible SDKs, Codex CLI, OpenClaw, Hermes Agent, and application backends. Use https://api.router.one for Claude Code and Anthropic-compatible clients.

### Cost traces after every request

Each request records model, provider, token counts, latency, status, and cost metadata so teams can audit spend instead of guessing from a monthly provider invoice.

## Models and tools supported after Alipay top-up

The same Router One wallet can pay for GPT, Claude, Gemini, Grok, DeepSeek, GLM, MiniMax, Claude Code, Codex CLI, image generation, and video generation endpoints when the selected model or feature is available on your account.

## How to pay for LLM API calls with Alipay

- Create a Router One account and open the dashboard.
- Go to billing, choose a wallet top-up amount, and select Alipay.
- Scan the QR code with the Alipay app and confirm the payment.
- Create an API key after the balance is credited.
- Set OPENAI_BASE_URL to https://api.router.one/v1 for OpenAI-compatible clients.
- Use the dashboard logs to verify tokens, latency, provider path, and cost.

## FAQ

### Can I use Alipay instead of a US credit card?

Alipay replaces a US credit card on Router One: Alipay top-ups through the hosted checkout credit the same USD wallet used for every model call, for developers who cannot or do not want to use a US credit card. The checkout page is the source of truth for the current minimum amount, FX rate, and any channel fee.

### Does Alipay work for Claude Code and Codex?

Yes. Alipay credits the same Router One wallet. Claude Code uses the Anthropic-compatible endpoint at https://api.router.one, while Codex and OpenAI-compatible SDKs use https://api.router.one/v1.

### Is Router One an agent orchestration runtime?

No. Router One is the model invocation gateway. Your application, coding tool, or framework controls orchestration; Router One handles model calls, routing, fallback, billing, and observability.

### What happens when wallet balance is exhausted?

Requests outside active plan coverage return HTTP 402 until you top up again. The dashboard shows the related cost and balance events.

## See also

- Compare card, Alipay, and stablecoin funding: https://router.one/wechat-pay-llm-api
- Connect the credited wallet to a coding tool: https://router.one/use-cases/ai-coding-tools
- Use USDT or USDC instead: https://router.one/pay-with-crypto
- Stablecoin billing on the same gateway: https://router.one/crypto-llm-api
- Pay for LLM APIs without a US credit card: https://router.one/blog/llm-api-without-us-credit-card
- Read the pricing methodology: https://router.one/pricing-methodology
- Canonical page: https://router.one/alipay-llm-api
- Models and per-model token rates: https://router.one/models (markdown: https://router.one/models.md)
- Pricing: https://router.one/pricing
- API docs (markdown): https://router.one/docs.md
- Company facts: https://router.one/facts/company.md
