OpenAI-compatible · multi-vendor model gateway

One endpoint, one keyUsage you can verify

Change one line of base_url and call China’s leading models with the same key — routing, failover and metered billing are on us. Not sure which to pick? Run the same prompt side by side first.

16

live models

5

UI languages

9

plans from · USD/month

Re-checked every 10 minutes — these numbers move

ZGo Gateway is an OpenAI-compatible API gateway that puts 16 AI models — DeepSeek, Kimi, GLM, MiniMax, Hunyuan and more — behind one endpoint and one key. Switching models is a one-line change. Pricing is per token and published in full: 1 credit equals $0.001, plans start at $9 per month, and there is no auto-renewal.

Model catalog

Models that actually work, with pricing and status

Every model below is sellable right now: DeepSeek, Kimi, GLM, MiniMax and Hunyuan, priced per token, with context window and live upstream status.

16 available right now · 24 shown here at random

What we handle

The messy parts are on us

You integrate one OpenAI-compatible endpoint; routing, failover, billing and reconciliation all happen here.

One endpoint, one key

OpenAI-compatible. Change one line of base_url. Switching models is changing one string — no re-registering upstreams, no new SDK.

Automatic routing & failover

Routing by price and availability; on a timeout or error it switches to a backup automatically — your request does not break and your code does not change.

Subscriptions or credit packs, metered

Subscribe for period credits or buy permanent credit packs; usage is billed per token with a transparent ledger.

Model comparison bench

Run the same prompt across several models at once and compare style, speed and cost — try before you commit.

Transparent upstream status

Who is available, at what price, how fast — all in the open. When an upstream wobbles you see which one, not just “service error”.

Integration self-check

Not sure you wired it correctly? Verify connectivity, auth, streaming and latency in one pass — a helper now, not the main course.

Capability map

What you get

Four groups of capabilities. See them before you sign up — anything needing an account is marked

Get started

Call models directly with a ZGo key, billed per token

Model selection

Run one prompt across several models, then pick

Diagnostics

Probe endpoints you are not sure about — or keep watching them

Account

Balance, call history and account security

Integration

Three steps, and the rest of your code stays

If you already use the OpenAI SDK, the migration is two lines of config. No new API to learn, no private package to install.

  1. 01

    Choose a plan or buy credits

    Subscribe monthly or quarterly for period credits, or buy a one-time credit pack. Subscription credits expire at the end of the period if unused; pack credits never expire.

    Example: Basic $9/month includes 13,000 credits

  2. 02

    Create a key

    Name the key, set a spend cap and a domain allowlist. One key per purpose — if something goes wrong only that key is disabled.

    Disable or delete anytime, effective immediately

  3. 03

    Change one base_url

    Keep your existing OpenAI SDK untouched — change only base_url and api_key. Switching models is changing the model string.

    No private SDK required

from openai import OpenAI
client = OpenAI(
base_url="https://myzgo.cn/v1",
api_key="sk-zgo-••••a91f",
)
resp = client.chat.completions.create(
model="deepseek-v4-flash",
messages=[{"role": "user", "content": "hello"}],
)
print(resp.choices[0].message.content)

base_url:https://myzgo.cn/v1

Routing & billing

Routing and billing, laid bare

The fair question for any gateway is “where exactly did you mark up my call”. Below are the seven steps a real request takes, and the single moment your balance moves.

  1. 01

    Validate the key

    Key is valid, not disabled, within quota, and the origin domain is allowlisted.

  2. 02

    Look up the price

    Take the model’s retail price from the pricing table. Retail and cost are stored separately; the cost field never enters billing.

  3. 03

    Pick an upstream

    Choose one by health, latency and cost, and hand it the whole request — no mid-flight vendor switch.

  4. 04

    Forward and time it

    Stream the response; first-byte and total time are recorded on this call. Upstream problems surface here.

  5. 05

    Settle by usage

    only billing point

    Charge only after upstream returns usage: retail × channel multiplier × route multiplier.

  6. 06

    Write to the ledger

    Charges, refunds and balance queries all go through one wallet; the ledger is always in CNY and every entry is auditable.

  7. 07

    Failure means refund

    free

    On timeout or 5xx it switches to the next upstream and refunds this call to the last cent.

One request, one upstream

No switching vendors midway. Prompt caches are per-vendor; stitching segments only makes it slower and pricier.

No output, no charge

On failure it switches to the next upstream and refunds the amount immediately — the balance is untouched.

A single wallet

Charges, refunds and balance queries live in one module: one place books, one place reconciles.

Sample billsample data
Logical model
deepseek-flash
Upstream hit
DeepSeek (auto-selected)
Input 1,024 tok
$0.000154
Output 512 tok
$0.000307
Channel × route multiplier
1.0 × 1.0
Charged

$0.000461

Ledger record

Control

We take the traffic, you keep the switches

Caps on spend, one-click key disable, and every call auditable — these three decide whether you can confidently route requests here.

One key, one boundary

Separate keys per purpose: restrict source IPs, restrict models, set a spend cap. Over the line it is rejected — one bug cannot drain the account.

Every call leaves a trace

Which upstream, how many tokens in and out, how much was charged, how long it took — auditable line by line.

Credits and plans

Subscription credits reset each period and unused period credits expire; separately purchased pack credits never expire.

Your keyssample data
  • Production · web203.0.113.24$5012,480Active
  • Staging · testUnrestricted$5316Active
  • Legacy · bot198.51.100.7$200Disabled

Start with one line of base_url

Top up, create a key, send your first request. If you are unsure which model to use, run the same prompt through two of them first.