One API, USD credits, transparent pricing, virtual API keys, and usage tracking for global developers building AI apps and agents.
Switch by changing base URL, API key, and model name.
Prepaid balance and token-based billing. No Chinese local payment required.
Track tokens, charged amount, upstream cost estimate, and margin.
Start with DeepSeek. Expand to Qwen, GLM, Kimi, image, speech, and video.
deepseek-chat — Input $0.30 / 1M tokens, Output $0.60 / 1M tokens.
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)