Skip to main content
POST
Create a Claude message
Use claude-sonnet-5 or claude-opus-5. Authorization: Bearer and x-api-key authentication are both accepted.

Authorizations

Authorization
string
header
required

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

Body

application/json
model
enum<string>
required
Available options:
claude-sonnet-5,
claude-opus-5
messages
object[]
required
max_tokens
integer
required
stream
boolean
default:false

Response

Message or SSE stream