Endpoints

Messages format (Anthropic)

Besides the OpenAI-compatible format, the gateway accepts requests in the Messages format familiar to Anthropic SDK clients.

POST/v1/messages
cURL
curl -X POST https://kiree.net/v1/messages \
  -H "Authorization: Bearer sk-your-kiree-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "<claude-model-id>",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
The gateway accepts Messages-format requests for Anthropic SDK clients. Check the catalog for available models; for most tasks the OpenAI-compatible /v1/chat/completions also works.