Endpoint
| Endpoint | POST /v1/messages |
| Anthropic-compatible path | POST /anthropic/v1/messages |
Authentication
| Header | Authorization: Bearer YOUR_API_KEY |
Specify the Claude model via the model field in the request body.
curl example
curl
curl https://your-router-domain.com/v1/messages \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"claude-4.6-sonnet","max_tokens":1024,"messages":[{"role":"user","content":"Hello"}]}'