OpenAI-compatible API for Chinese AI models
Use DeepSeek and other Chinese models without Chinese accounts or local payments.

One API, USD credits, transparent pricing, virtual API keys, and usage tracking for global developers building AI apps and agents.

Open DashboardRead Quickstart

OpenAI-compatible

Switch by changing base URL, API key, and model name.

USD credits

Prepaid balance and token-based billing. No Chinese local payment required.

Transparent usage

Track tokens, charged amount, upstream cost estimate, and margin.

Chinese model focus

Start with DeepSeek. Expand to Qwen, GLM, Kimi, image, speech, and video.

First model

deepseek-chat — Input $0.30 / 1M tokens, Output $0.60 / 1M tokens.

Quick example

from openai import OpenAI

client = OpenAI(
    api_key="sk-cmag-your-key",
    base_url="http://127.0.0.1:8000/v1"
)

response = client.chat.completions.create(
    model="deepseek-chat",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)