Create message (Anthropic)
Sends a structured list of input messages and generates the next message in the conversation. This is the Anthropic Messages API.
Reasoning behavior mirrors the Chat Completions API: corti-s1 and corti-s1-mini generate chain-of-thought reasoning, while -instant variants do not. However, the Anthropic Messages API response does not expose reasoning as a separate field — content is returned as text blocks only.
Authorizations
Use a Corti-issued bearer token.
Headers
Anthropic API version header.
Body
corti-s1, corti-s1-instant, corti-s1-mini, corti-s1-mini-instant Maximum tokens to generate. Required by the Anthropic API.
x >= 1Conversation messages. Supported roles: user, assistant.
1System prompt. Equivalent to a system message in chat completions.
If true, returns SSE with typed events: message_start, content_block_start, content_block_delta, content_block_stop, message_delta, message_stop.
0 <= x <= 1Response
Successful response. For non-streaming requests, returns a complete message object. For streaming requests, returns Server-Sent Events (SSE) with typed events: message_start, content_block_start, content_block_delta, content_block_stop, message_delta, message_stop.
Unique message ID (e.g. chatcmpl-3e537413-...).
message assistant Array of content blocks.
The model name used for this response.
Why generation stopped.
end_turn