Create Message
POST
/v1/messagesCreate a model response using the Anthropic-compatible Messages format.
Request Body
application/jsonmodel:requiredstringModel identifier used for this request.
Example
claude-sonnet-5messages:requiredobjectMessages that make up the conversation.
Example
[{"role":"user","content":"hi"}]stream: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.
Compatibility References
Use these external references to review additional parameters supported by compatible provider formats.