curl --request POST \
--url https://api.caprioletech.com/v1/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "claude-latest",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Hello World!"
}
]
}
'{}Endpoints
Messages
Create Anthropic Messages-compatible output with Capriole AI Claude models.
POST
/
v1
/
messages
curl --request POST \
--url https://api.caprioletech.com/v1/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "claude-latest",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Hello World!"
}
]
}
'{}Use this endpoint when your application, SDK, or agent expects the Anthropic Messages request and response format.
Send a standard Messages payload with
model, messages, and max_tokens. Capriole AI resolves latest aliases to the selected upstream Claude model before upstream dispatch, forwards compatible fields such as system, tools, thinking, and stream, and returns the upstream JSON or SSE stream unchanged.
POST /v1/messages accepts claude-latest, claude-fable-5-2, claude-fable-5-1, claude-fable-5, claude-opus-5-5, claude-opus-5, claude-opus-4-8, claude-opus-4-7, claude-opus-4-6, and claude-sonnet-4-6. Use claude-latest to select Fable 5.2 without changing your configuration.
POST /v1/messages/count_tokens accepts the same Claude model IDs for Anthropic-compatible token-count checks. It returns the input token count for the selected Claude model, or an error.Authorizations
Body
application/json
Response
Anthropic Messages-compatible JSON response or SSE stream
Anthropic Messages-compatible response body.
Last modified on November 24, 2026

