一个入口,调用所有上游模型
Relay 提供 OpenAI 兼容的统一 API:按模型自动路由到上游渠道,价格公开、按 token 计费、缓存命中享折扣。
可用模型
完整目录 →11
| 模型 | 渠道 | 缓存读 / 1K | |||
|---|---|---|---|---|---|
| gpt-5.6-sol | GPT-0.21 | 1,050,000 | ¥0.2160 | ¥1.0800 | ¥0.0216 |
| gpt-5.6-terra | GPT-0.21 | 1,000,000 | ¥0.1080 | ¥0.6480 | ¥0.0040 |
| gpt-5.6-luna | GPT-0.21 | 1,000,000 | ¥0.0108 | ¥0.0648 | ¥0.0040 |
| gpt-5.6-sol | GPT-0.3x | 1,050,000 | ¥0.2160 | ¥1.0800 | ¥0.0216 |
| gpt-5.6-terra | GPT-0.3x | 1,000,000 | ¥0.1080 | ¥0.6480 | ¥0.0040 |
| gpt-5.6-luna | GPT-0.3x | 1,000,000 | ¥0.0108 | ¥0.0648 | ¥0.0040 |
| gpt-5.6-sol | GPT-0.03x-稳定性不保证 | 1,050,000 | ¥0.2160 | ¥1.0800 | ¥0.0216 |
| gpt-5.6-terra | GPT-0.03x-稳定性不保证 | 1,000,000 | ¥0.1080 | ¥0.6480 | ¥0.0040 |
| gpt-5.6-luna | GPT-0.03x-稳定性不保证 | 1,000,000 | ¥0.0108 | ¥0.0648 | ¥0.0040 |
| deepseek-v4-flash | deepseek-official | 1,000,000 | ¥0.0240 | ¥0.0720 | ¥0.0008 |
| deepseek-v4-pro | deepseek-official | 1,000,000 | ¥0.0720 | ¥0.2160 | ¥0.0024 |
三步接入
01
登录并创建 API Key
使用 zmzai 账号登录,在控制台创建一个 API Key,新账号自带 ¥1 体验额度。
02
按 OpenAI 协议发起请求
兼容 OpenAI Chat Completions 接口,OpenAI SDK、curl 直接替换 baseURL 即可调用。
03
查看用量与账单
每次调用按 token 实时计费,用量、余额与账本在控制台随时核对。
curl — chat completions
$curl https://m.zmzai.cloud/api/v1/chat/completions \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"model":"deepseek-v4-flash","messages":[{"role":"user","content":"你好"}]}'