POST /v1/messagesAnthropic Messages-compatible request endpoint
Compatible API guide
Applications already structured around the Anthropic Messages API can call Infistar through the compatible endpoint while keeping the system, messages, and max_tokens request shape. Select the exact model ID from the live catalog rather than relying on a vendor display name or retired model name.
Send requests to POST /v1/messages. Include Authorization: Bearer YOUR_API_KEY, Content-Type: application/json, and anthropic-version: 2023-06-01. max_tokens is required and must be at least 1.
POST /v1/messagesAnthropic Messages-compatible request endpoint
anthropic-version: 2023-06-01Protocol version header required by the current public contract
Authorization: Bearer YOUR_API_KEYAuthentication with an Infistar API key
modelAn exact Claude model ID from Models and Pricing
max_tokensRequired maximum output length, with a minimum value of 1
This example validates the protocol shape only. Replace MODEL_ID with a model visible to your API key that supports Messages API.
curl https://infistar.ai/v1/messages \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "MODEL_ID",
"max_tokens": 256,
"messages": [{"role": "user", "content": "Hello"}]
}'