curl https://reward.dzzi.ai/v1/chat/completions \
-H "Authorization: Bearer 你的-sk-gift-key" \
-H "Content-Type: application/json" \
-d '{
"model": "[按次]claude-sonnet-4-6",
"messages": [{"role": "user", "content": "你好"}]
}'
curl https://reward.dzzi.ai/v1/messages \
-H "x-api-key: 你的-sk-gift-key" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "[按次]claude-opus-4-8",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "你好"}]
}'
curl 'https://reward.dzzi.ai/v1beta/models/[按次]gemini-2.5-pro:generateContent' \
-H "x-goog-api-key: 你的-sk-gift-key" \
-H "Content-Type: application/json" \
-d '{
"contents": [{"parts": [{"text": "你好"}]}]
}'
from openai import OpenAI
client = OpenAI(
api_key="你的-sk-gift-key",
base_url="https://reward.dzzi.ai/v1",
)
resp = client.chat.completions.create(
model="[按次]claude-sonnet-4-6", # 注意 [按次] 前缀
messages=[{"role": "user", "content": "你好"}],
)
print(resp.choices[0].message.content)
[按次] 前缀(本站特色,与 new-api 一致)