Claude Messages
Anthropic-compatible Messages API.
Endpoint: POST /v1/messages
Authentication
Either standard gateway token:
-H "Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"Or native Anthropic headers (auto-mapped by the gateway):
-H "x-api-key: sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "anthropic-version: 2023-06-01"Example
curl https://api.starrise.ai/v1/messages \
-H "x-api-key: sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-20250514",
"max_tokens": 1024,
"messages": [
{"role": "user", "content": "Hello, Claude"}
]
}'Use the official @anthropic-ai/sdk with baseURL: 'https://api.starrise.ai' and your Starrise token as apiKey.
Streaming uses the same SSE pattern as Anthropic's API.

