Skip to main content
POST
Anthropic messages

Authorizations

X-API-Key
string
header
required

Headers

anthropic-beta
string[]

Body

application/json
max_tokens
integer<int64>
Example:

256

messages
object[] | null
Example:
metadata
object
model
string
Example:

"claude-sonnet-4-5"

models
string[] | null
provider_configs
object | null
provider_data_collection
string
provider_enforce_distillable_text
boolean | null
provider_ignore
string[] | null
provider_max_completion_price
number | null
provider_max_image_price
number | null
provider_max_prompt_price
number | null
provider_max_request_price
number | null
provider_only
string[] | null
provider_order
string[] | null
provider_quantizations
string[] | null
provider_require_parameters
boolean
provider_sort
string
provider_zdr
boolean | null
service_tier
string
stop_sequences
string[] | null
stream
boolean
Example:

false

system
object[] | null
temperature
object
thinking
object
tool_choice
object
tools
object[] | null
top_k
object
top_p
object

Response

200 - application/json

OK

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