Skip to main content
POST
Anthropic Messages

Authorizations

Authorization
string
header
required

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

Headers

anthropic-version
string | null
anthropic-beta
string | null
x-deepinfra-source
string | null
xi-api-key
string | null
x-api-key
string | null

Body

application/json
model
string
required
messages
Messages · object[]
required
max_tokens
integer | null
system
stop_sequences
string[] | null
stream
boolean | null
default:false
temperature
number | null
default:1
top_p
number | null
top_k
integer | null
metadata
Metadata · object | null
tools
AnthropicTool · object[] | null
tool_choice
Tool Choice · object | null
thinking
AnthropicThinkingConfig · object | null

Response

Successful Response