Messages
POST https://api.makahai.com/v1/messages
Anthropic models also accept the Anthropic Messages format, so code written for the Anthropic SDK works with a new base URL and key. The model catalog shows which models support this format (look for Anthropic under API formats).
Request
curl https://api.makahai.com/v1/messages \
-H "x-api-key: $MAKAHAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-opus-5-5",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Draft a short incident summary."}]
}'
This endpoint accepts either x-api-key or Authorization: Bearer.
Anthropic SDK
import os
from anthropic import Anthropic
client = Anthropic(base_url="https://api.makahai.com", api_key=os.environ["MAKAHAI_API_KEY"])
msg = client.messages.create(
model="claude-sonnet-5-5",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}],
)
print(msg.content[0].text)
Set base_url to https://api.makahai.com without /v1; the Anthropic SDK adds the path itself.
Which format to use
Both formats reach the same models and are billed the same way. Use Messages if your code already uses the Anthropic SDK; use Chat Completions if you want one format for every provider.
Claude Fable models have parameter restrictions; see Model notes.