OPENAI-COMPATIBLE GATEWAY

China’s leading AI models. One API.

Explore DeepSeek, Qwen, Kimi, GLM and more from one developer interface. Compare Chinese model families, estimate your token budget and use the SDK you already know.

POST /v1/chat/completions

          
cURLExample request

MODEL CATALOG

Find the right model.

Compare model families by workload. Each entry shows whether its API route is available.

PREPAID API ACCESS

Plan your token budget.

Estimates use the selected input/output mix and standard rates. Actual usage is metered separately for input and output tokens.

PAYMENTS & USAGE

How credits work.

Your account balance covers usage across available models. A checkout session belongs to the account that created it.

Creem checkout

Sign in to your wallet, select a credit pack and pay on Creem. Your account balance updates automatically after Creem confirms the payment.

Metered by model

Input and output tokens are billed at the model's published rates per million tokens. Any applicable cache rates appear with that model.

Balance and history

The console shows your remaining balance, top-ups and request usage. Check the payment status there if a top-up is still pending.

Request cost = (input tokens × input rate + output tokens × output rate) ÷ 1,000,000. Use the listed cache rate for eligible input.

DEVELOPER QUICKSTART

Make your first request.

Use the OpenAI SDK or call the REST endpoint directly. Set your gateway URL, pass your API key and choose a model ID from the console.

Check API access

      

Connect a client

OpenAI-compatible tools and OpenCode

In your console, create an API key and copy an available model ID. Select OpenAI Compatible in your app, set the API base ending in /v1, and enter the key and model ID.

Claude Code with CC Switch

Add a custom provider and enter the endpoint, gateway key and available model ID. Choose Anthropic Messages when that route is enabled. For a Chat Completions route, choose that format and enable local routing.

Codex with CC Switch

Add a custom provider using an available model that has been tested on the Responses endpoint. If you use a Chat Completions route, enable protocol conversion in CC Switch and verify tool calls with your model.

Only routes listed as available in your console are ready for requests. Never paste a gateway API key into a public page or a shared config file.

FAQ

Before you integrate.

How are tokens counted?

Input is what you send to the model, and output is what it generates. Each model has its own rates, so the same credit amount can cover different volumes.

Can I use my existing client?

Clients that let you configure a custom OpenAI-compatible base URL, key and model ID can use the chat completions endpoint. Individual model features vary.

Where is inference processed?

Requests are sent to the upstream selected for the model. Processing region and data-handling terms depend on that upstream.

What if a payment is pending?

Review the order status and receipt before attempting a second checkout. When requesting help, include the order ID and do not share your API key.

Sign in to your wallet and select this pack to open Creem checkout. After Creem confirms the payment, refresh your wallet to see the credits.