Messages
Endpoints
Messages
Create a message using the Anthropic Messages format.
POST
Messages
Creates a model response using the Anthropic Messages API request and response format. Like all
inference endpoints, requests are served through the attested TEE gateway and return an
Read assistant text from
x-receipt-id header for verification.
Request Body
string
required
Model id, for example
anthropic/claude-haiku-4.5.integer
required
Maximum number of tokens to generate.
array
required
Conversation turns. Each item has a
role (user or assistant) and content (a string or an
array of content blocks).string
A system prompt, sent as a top-level field rather than a message.
number
Sampling temperature.
boolean
Stream the response as server-sent events.
object
Routing constraints for this request, applied together. If no provider satisfies the constraints the request fails before the prompt is sent, and failover
retries stay inside the allowed set. Field reference:
Chat Completions. See
Attested routing and
Zero data retention.
zdr restricts routing to providers that
do not retain content; aci_verified restricts it to an upstream verified inside the TEE;
aci_session_ids pins it to specific attested channels.Example
Response
content[].text on blocks with type: "text". stop_reason is one of
end_turn, max_tokens, stop_sequence, or tool_use.