Create Message
POST
/v1/messagesCreate a model response using the Anthropic-compatible Messages format.
Request Body
application/jsonmodel:requiredstringModel identifier used for this request.
messages:requiredarrayMessages that make up the conversation.
max_tokens:requiredintegerMaximum number of tokens allowed in the generated message.
Example
1024stream:optionalbooleanWhether to stream partial results as they become available.
thinking:optionalobjectExtended thinking configuration for supported models.
Response
200A successful request returns a JSON response. The complete example is shown in the code panel.