快速开始
只做一件事:证明 Key + 模型 ID + 线路可用。
列模型
bash
curl https://api.daoxe.com/v1/models \
-H "Authorization: Bearer sk-xxxx"最小 Chat
bash
curl https://api.daoxe.com/v1/chat/completions \
-H "Authorization: Bearer sk-xxxx" \
-H "Content-Type: application/json" \
-N \
-d '{
"model": "从 /v1/models 复制",
"messages": [{"role":"user","content":"ping"}],
"max_tokens": 64
}'最小 Messages(若用 Claude)
bash
curl https://api.daoxe.com/v1/messages \
-H "x-api-key: sk-xxxx" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "从 /v1/models 复制",
"max_tokens": 64,
"messages": [{"role":"user","content":"ping"}]
}'