Skip to main content
POST
Create a Claude message
Use a model that supports the Messages protocol. Authorization: Bearer and x-api-key authentication are both accepted.

Additional supported models

  • anthropic/claude-fable-5.1
  • anthropic/claude-opus-4.8
  • anthropic/claude-sonnet-4.6
  • anthropic/claude-opus-4.6
Send protocol fields at the root, without a generation input wrapper. messages must be a non-empty array. max_tokens must be a positive integer.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required
Example:

"anthropic/claude-fable-5.1"

messages
object[]
required
Minimum array length: 1
max_tokens
integer
required
Required range: x >= 1
stream
boolean
default:false

Response

Message or SSE stream

The response is of type object.