curl --request POST \
--url https://ai.{environment}.corti.app/anthropic/v1/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'anthropic-version: <anthropic-version>' \
--data '
{
"model": "corti-s1",
"max_tokens": 500,
"messages": [
{
"role": "user",
"content": "Count from 1 to 5"
}
]
}
'{
"id": "<string>",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "<string>"
}
],
"model": "<string>",
"stop_reason": "end_turn",
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"cache_creation_input_tokens": 123,
"cache_read_input_tokens": 123
}
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}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.
curl --request POST \
--url https://ai.{environment}.corti.app/anthropic/v1/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'anthropic-version: <anthropic-version>' \
--data '
{
"model": "corti-s1",
"max_tokens": 500,
"messages": [
{
"role": "user",
"content": "Count from 1 to 5"
}
]
}
'{
"id": "<string>",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "<string>"
}
],
"model": "<string>",
"stop_reason": "end_turn",
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"cache_creation_input_tokens": 123,
"cache_read_input_tokens": 123
}
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}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.
1Show child attributes
Show child attributes
System 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.
Show child attributes
Show child attributes
The model name used for this response.
Why generation stopped.
end_turn Show child attributes
Show child attributes
Was this page helpful?