卡密兑换 · 优惠领取 · API 调用 · 用量统计
输入优惠码即可领取独立 API Key,每人均可领取一次,额度独立
兼容 OpenAI Chat Completions 接口,使用 Bearer Token 鉴权。
glm-5.1:
curl https://z.classby.cn/v1/chat/completions \
-H "Authorization: Bearer 你的卡密" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.1",
"messages": [
{"role": "user", "content": "你好"}
],
"max_tokens": 1024,
"stream": true
}'
Python SDK: openai.OpenAI(api_key="你的卡密", base_url="https://z.classby.cn/v1")
兼容 Anthropic Messages 接口,使用 x-api-key 鉴权。
glm-5.1:
curl https://z.classby.cn/v1/messages \
-H "x-api-key: 你的卡密" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.1",
"max_tokens": 1024,
"messages": [
{"role": "user", "content": "你好"}
],
"stream": true
}'
Python SDK: anthropic.Anthropic(api_key="你的卡密", base_url="https://z.classby.cn")