Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

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

Body

application/json

Anthropic Messages request

max_tokens
integer
messages
object[]
metadata
object
model
string
stop_sequences
string[]
stream
boolean
system
temperature
number
thinking
object
tool_choice
object
tools
object[]
top_k
integer
top_p
number

Response

JSON response or SSE stream when stream=true

content
object[]
id
string
model
string
role
string
stop_reason
string
stop_sequence
string
type
string
usage
object