API documentation

Anthropic Messages

Anthropic-compatible Messages route through AIGate.

Use /v1/messages for clients that expect Anthropic Messages. You can authenticate with x-api-key or the bearer token header.

Request

bash
curl https://api.aigate.shop/v1/messages \  -H "x-api-key: sk-your-api-key" \  -H "anthropic-version: 2023-06-01" \  -H "Content-Type: application/json" \  -d '{    "model": "anthropic/claude-opus-4.7",    "max_tokens": 200,    "messages": [{ "role": "user", "content": "Explain prompt caching in one sentence." }]  }'