Official API vs relay service: where the difference really lies, worked out
Start by listing the dimensions
Most people compare unit price. The decision actually involves four dimensions:
| Dimension | Official API | Relay service |
|---|---|---|
| Unit price | The baseline price | Baseline x rate (can be below 1) |
| Onboarding | Overseas payment, sometimes an overseas network | CNY payment, reachable from mainland China |
| Reliability | Backed by the vendor | Depends on the site and on its upstream |
| Data boundary | Public policy and a legal entity | Usually no explicit commitment |
| Feature completeness | Complete (every endpoint works) | Depends on how much the site implemented |
Cost: the official channel is not automatically pricier
This is the most counter-intuitive part.
When a relay service is cheaper (rate below 1): the site has a volume discount from its upstream and passes part of it on to you. Here the relay service really is cheaper.
When a relay service is more expensive:
- Rate above 1 (you are paying for payment convenience)
- The site does not support prompt caching - this one item can multiply your real cost several times over
- Hidden markup in the billing rules (thinking tokens billed twice, for instance)
So "relay services are always cheaper" is wrong. Work it out from your actual token mix.
Barriers: the real value of a relay service
For individual developers and small teams this is often the deciding factor:
| Barrier | Official | Relay service |
|---|---|---|
| Payment | Overseas credit card | Alipay / WeChat Pay |
| Network | Some vendors need an overseas network | Reachable directly from mainland China |
| Identity checks | Required by some | Usually none |
| Invoicing | Overseas entity, awkward to expense locally | Some can issue one |
If your main obstacles are payment and network, the value of a relay service is real - convenience is exactly what it sells.
Reliability: the official advantage is accountability
Official APIs fail too, but they have:
- A public status page and incident notices
- An explicit service-level commitment
- A legal entity you can hold to account
A relay service's reliability depends on several layers: its own nodes, its upstream channels, and its upstream's upstream. The longer the chain, the more places it can break.
That does not make relay services unstable by definition - a well-run site can be very stable. The difference is that when something goes wrong, you can find out why, and hold someone accountable.
Feature completeness: the most easily overlooked dimension
Official APIs have every endpoint working. A relay service may have implemented only "the popular ones".
Typical gaps:
- Newer protocols (the Responses API)
- Tool-calling fields
- Streaming details (some sites buffer the whole response)
- Special parameters (caching, thinking budget)
How to check: do not just send "hello" - run your real workflow through it.
A decision framework
What is your main obstacle?
- Payment or network does not work -> relay service (this is its core value)
- High data sensitivity -> official, or self-hosted
- You need full features -> official
- You only care about cost -> work it out from your token mix, not the rate
How large is your usage?
- Very small -> relay service (low barrier, cheap to try)
- Medium -> either; go back to the obstacles above
- Very large -> worth doing the maths; self-hosting may win
A pragmatic combination
You do not have to pick one. A common high-performing setup:
- Primary traffic through a relay service (cheaper, easy to pay for)
- Keep an official channel as a fallback (usable when it matters)
- Keep base_url as a configuration value (switching costs one line)
That gives you the relay service's cost advantage with the official channel as a reliability backstop.
Related reading
- From list price to your invoice: a worked cost conversion
- Self-hosting a gateway vs buying a relay service: cost and where each fits
- Mainland sites vs overseas platforms: payment, latency, compliance
Was this useful? If you have run into something the article does not cover, tell us and we will verify it and update the text.
Related articles
Video generation behind a relay: three API shapes, four billing traps, one acceptance checklist
MCP through a relay: what works, what never will, and how to test it in ten minutes
A relay selection decision tree: working back from your scenario to a site
Logging and reconciliation: attributing token spend to the project level
Migrating suppliers gradually: replacing an API site without interrupting service
Build your own probe: twenty lines of script to monitor your API suppliers
Read on: a few of the services we list
This article does not point at a specific model family, so here are a few of the highest-scoring services we list, in case you want to read on. They are ordered by score and uptime and are not a recommendation.
See the full list in the directory, or browse by model family.