curl verification
The debugging entry point: probe commands live here; other pages link over.
Model ID
Use IDs visible to your account: the recommended models table (pricing API) or
GET /v1/models. Don't copy sample names from docs/blogs.1. Models
bash
curl https://api.daoxe.com/v1/models \
-H "Authorization: Bearer sk-xxxx"2. Chat
bash
curl https://api.daoxe.com/v1/chat/completions \
-H "Authorization: Bearer sk-xxxx" \
-H "Content-Type: application/json" \
-N \
-d '{
"model": "copy from /v1/models",
"messages": [{"role":"user","content":"ping"}],
"max_tokens": 64
}'3. Messages
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": "copy from /v1/models",
"max_tokens": 64,
"messages": [{"role":"user","content":"ping"}]
}'4. Compare with the jp route
bash
curl https://jp.daoxe.com/v1/models \
-H "Authorization: Bearer sk-xxxx"Tips