---
title: "Paying for AI APIs in China: Invoices, Compliance and Gateways"
description: "Compare three ways to pay for AI APIs from China: official overseas APIs, domestic cloud vendors, and aggregation gateways, with a pre-payment checklist."
url: https://cdnping.org/en/blog/pay-for-ai-api-in-china
language: en
published: 2026-10-19
category: "Developer tools"
tags: ["AI API","payment","invoices","compliance","API gateway"]
source: cdnping.org
license: Free to quote and summarize with a link to the url above.
---
# Paying for AI APIs in China: Invoices, Compliance and Gateways

If you want to use an AI API without wrestling with a foreign-currency card, there are roughly three routes. You can pay in USD directly on the official platform with an overseas payment method. You can top up in RMB at a Chinese cloud provider or a domestic model platform. Or you can subscribe to an aggregation gateway that accepts RMB for AI API access. The three differ on invoices, compliance, data policy, and who you contact when something breaks. This post goes through each, and ends with a checklist to run before you pay.

## What are the three payment routes?

| Route | Billing currency | Typical payment method | Models available | What to confirm first |
|---|---|---|---|---|
| Official overseas API | Mostly USD | Overseas credit card, etc. | The vendor's own models | Whether your region is on the official supported list; terms of service |
| Chinese cloud provider / domestic model platform | RMB | Corporate bank transfer, domestic payment | Mostly Chinese models | Real-name verification requirements; invoicing rules |
| Aggregation gateway | Depends on the platform | Depends on the platform | Models from multiple vendors | Whether it is officially authorized; data policy; whether uptime data is public |

For the technical differences between these approaches, see [Official API, cloud-hosted, or aggregation gateway: how to choose an access method](/en/blog/official-api-vs-cloud-vs-gateway). This post only covers how you pay, how you get an invoice, and how you stay within the rules.

### Official overseas API: the most direct, but payment and region are the hurdles

Using a vendor's own API means the models, billing, and terms of service all come from the primary source, and there is a single party responsible when something goes wrong. There are two hurdles:

1. Payment method. Overseas vendors usually price in USD, so you need a card that can pay in foreign currency.
2. Region restrictions. Each vendor lists supported countries and regions in its terms of service or documentation. Before you sign up, check the official docs to confirm your region is on the list. If it is not, do not take this route. Getting around region restrictions violates the terms of service, the account may be disabled, and the balance may not be recoverable.

If you are expensing this through a company, think one step further: ask finance up front whether a foreign-currency bill can be booked and whether they will accept it.

### Chinese cloud providers and domestic model platforms: easiest for RMB and invoices

Domestic model platforms and cloud providers settle in RMB, generally support enterprise verification and corporate payment, and issue invoices under Chinese rules (fapiao, the official tax invoice used for reimbursement and accounting in China). If your main work is Chinese long-text or batch processing, try your own tasks on a Chinese model first; if it is good enough, this route is the least hassle for finance and compliance.

Things to watch:

- Invoice type (regular or VAT special invoice), the invoicing entity, and timing all follow each platform's console documentation. Read them before you pay.
- API formats are not necessarily identical across platforms. Many offer an OpenAI-compatible interface, but parameter details can differ. Before switching platforms, run your own calls with a small balance.
- There is generally no cross-border network issue, but it is still worth measuring real latency.

### Aggregation gateways: one account for many models

An aggregation gateway puts models from several vendors behind one interface, usually compatible with the OpenAI or Anthropic API format, so a developer tool only needs a new endpoint URL and key. For individual developers, the draw is paying in RMB without an overseas card.

Services in this category vary a lot. At minimum, check four things: whether it is an officially authorized channel, how data is handled, whether billing is transparent, and whether uptime data is public. The next section covers these.

## What exactly should you check when choosing a gateway?

AGI Plan serves as the example for how to check item by item. First, the relationship: AGI Plan is a commercial partner of cdnping. So the list below only includes what AGI Plan states publicly on its own site, and every line can be verified by you.

| Check | What AGI Plan states publicly | How to verify |
|---|---|---|
| Officially authorized? | The site says explicitly that it is not an officially authorized channel | Read the site's statement; any gateway should be clear on this point |
| Billing | Monthly subscription, billed in RMB, no overseas credit card needed | See the [pricing page](https://agiplan.dev/pricing) |
| API format | Compatible with both OpenAI and Anthropic formats | Make one real call with your own tool |
| Data policy | Request bodies are not written to disk by default; content is not used for training or resold | Read the data policy text on the site |
| Uptime | A public endpoint, based on real requests; only 5xx counts as a platform failure | Pull the data yourself with the commands below |
| Region limits | Some models are marked "overseas only" | Check the [models page](https://agiplan.dev/models) |

The data policy is the item most often skipped. Before you hand company code to a third-party API, read the original text. For how to read it and which sections matter, see [Can your code and conversations be seen when you use a third-party AI API?](/en/blog/ai-api-data-privacy-policy). For a fuller set of relay and gateway evaluation criteria, see [How to choose an AI API relay: 8 checks on uptime, billing, and data policy](/en/blog/api-relay-how-to-evaluate).

### How do you convert subscription quota into usage?

AGI Plan's pricing is on its site: Lite ¥49/month, Plus ¥119/month, Pro ¥649/month, Max ¥1,368/month. The four tiers differ only in quota, and annual billing is 20% off. The unit of measure is the CU: 1 CU equals 1,000 output tokens of the baseline model. Pay-as-you-go is also available at ¥1 = 500 CU, with a ¥20 minimum top-up.

By that definition you can do the math yourself: a ¥20 top-up gives 10,000 CU, equivalent to 10 million output tokens of the baseline model. Two caveats:

- The conversion applies to output tokens of the "baseline model." Other models burn quota at different rates, so how much you actually get depends on which capability group you call.
- Input tokens and output tokens are counted separately. If the month-end bill does not match your local logs, check the counting method first and the quantity second. See [AI API bill doesn't match: token counting methods and how to reconcile](/en/blog/relay-billing-token-mismatch).

A sensible approach: start with the smallest pay-as-you-go top-up, run your real workload for a week, note the daily CU consumption, then decide which subscription tier to buy.

### How do you verify uptime yourself?

Whichever provider you pick, any uptime figure it gives should trace back to raw data. AGI Plan publishes hourly, per-capability-group success and failure counts, with no login required:

```bash
# Returns CSV by default
curl -s "https://agiplan.dev/api/status/requests?month=2026-10"

# Add format=json for JSON, handy for summarizing with jq
curl -s "https://agiplan.dev/api/status/requests?month=2026-10&format=json" | head -c 1000
```

The definition is: uptime = successes / (successes + failures caused by the platform itself), and only 5xx counts as a platform failure. In other words, your own 4xx errors (wrong key, bad parameters, quota exhausted) are not counted.

The table below is data cdnping pulled from this public endpoint on October 17, 2026. The window is the 30 days up to that day, using the same definition.

| Capability group | 30-day uptime | 30-day requests |
|---|---|---|
| Domestic models (domestic) | about 98.0% | 9,436 |
| Balanced (balanced) | about 95.0% | 3,625 |
| Frontier models (frontier) | about 94.4% | 33,729 |
| Fast (fast) | about 81.7% | 44,729 |

The fast group is clearly lower, and it is listed here as-is. Capability groups differ a lot, and looking only at the total hides problems. If most of your load lands on one group, focus on that group and log your own failure rate on the client. cdnping's [AGI Plan status page](/en/status/agiplan) mirrors this data. To measure other services with the same definition, see [Measure AI API uptime yourself: metrics, scripts, and definitions](/en/blog/measure-ai-api-uptime-yourself).

## What should you ask about invoices and reimbursement up front?

Invoices are where team purchases most often get stuck. Before paying, send the questions below to the provider and get written answers first:

1. What type of invoice can they issue, regular or VAT special?
2. Which company is the invoicing entity, and does it match the payee?
3. Can both subscriptions and pay-as-you-go top-ups be invoiced, and is the invoice amount based on the top-up or on consumption?
4. Can annual billing be invoiced in one go?

Official overseas APIs generally issue foreign bills, and whether they can be booked is a question for your own company's finance team. Invoicing rules differ across domestic platforms and gateways; go by the written statement on their site or from support, and do not assume.

## What are the compliance baselines?

This part is not complicated, but every item has to hold:

- Terms of service. Whichever route you take, follow the terms of the model vendor and of any intermediary platform. In regions the vendor does not support, do not use the service by faking location information, bulk registration, rotating multiple accounts, and the like. Those practices violate the terms and are out of scope for this post.
- Filing when you offer a service to others. Calling a model from your own code while you write software is one thing. Packaging model capability into a product and offering generative AI services to the Chinese public is another. The latter falls under filing or registration requirements in rules such as the Interim Measures for the Management of Generative AI Services. Consult legal counsel or the local regulator before launch.
- Cross-border data and sensitive data. Before sending company code or customer data to an overseas endpoint, check your internal data compliance requirements. Anonymize whatever you can.
- Website acceleration has its own requirements. If you want to accelerate an AI app for users in mainland China from inside the mainland, you need an ICP filing (the license required to operate a website in China) and must go through a licensed provider.

## Pre-payment checklist

Print this table or copy it into your notes and tick items off one by one:

| # | Check | How |
|---|---|---|
| 1 | Your region is on the official supported list | Read the vendor's supported-regions page |
| 2 | Whether the provider claims official authorization | Read the site's statement; if it says nothing, assume it is not |
| 3 | Data policy: written to disk, used for training, resold | Read the original text and save a screenshot |
| 4 | Billing definition: how input, output, and cache are counted | Top up a small amount and reconcile one bill |
| 5 | Whether raw uptime data is public | Pull it once with curl and look by capability group |
| 6 | Invoice type and invoicing entity | Get a written answer |
| 7 | Network latency | Test first-connection and round-trip time on the [cdnping home page](/en) |
| 8 | Integration method | Does it work by changing only the endpoint URL and key? |
| 9 | Where to look during an outage | Bookmark the [API status page](/en/status) and the provider's own status page |
| 10 | How you learn about price changes | Subscribe to the RSS of the [site updates](/en/changes) page; see [How to find out right away when an LLM API price changes](/en/blog/track-llm-price-and-model-changes) |

A note on item 7: cdnping's [/status](/en/status) probes from Cloudflare's edge. The October 17, 2026 snapshot came from the Denver (DEN) node, with 242 probes in total. It reflects the time from an overseas data center to each API entry point, not your actual experience inside China. For latency on a Chinese network, use the home page speed test from your own machine.

If item 8 gets stuck, see [Claude Code custom API, and endpoint configuration for Codex and OpenCode](/en/blog/configure-custom-api-endpoint-claude-code-codex) for each tool.

## How should you choose?

A rough split by use case:

- Company purchasing, special VAT invoices needed, mainly Chinese-language business: start with Chinese cloud providers and domestic model platforms.
- Individual developers writing code day to day, wanting to switch between several models in one tool, with no overseas card: consider a gateway that bills in RMB, but run through the checklist above, especially "officially authorized or not" and the data policy.
- A firm requirement on model provenance, your region is within the official supported range, and you can handle foreign-currency bills: use the official API directly.

You can also mix them, for example production traffic through the official API or a cloud provider, and development and experiments through a gateway. Whatever the combination, trial it with a small amount for a week, check uptime and billing against your own logs, and only then commit to long-term payment.
