v1
latestOpenAPI 3.1.02026-07-2616299271.2 KBAnthropic Compatible
Create a Message
Send a structured list of input messages with text and/or image content, and the model will generate the next message in the conversation.
The Messages API can be used for either single queries or stateless multi-turn conversations.
Learn more about the Messages API in our user guide
post/v1/messages
Headers
Request body
Example request
{
"max_tokens": 1024,
"messages": [
{
"content": "Hello, world",
"role": "user"
}
],
"model": "claude-opus-4-6"
}Response
Message object.
{"stackTrail":"components:schemas:AnthropicMessage","oasType":"schema","type":"unknown","description":"Referenced by this API but not published in the vendor's docs pages."}