Skip to main content
POST
Claude Chat
This endpoint integrates a third-party model. For detailed parameter information, please refer to the official documentation at Claude Docs.

Authorizations

Authorization
string
header
required

Authentication is done using Bearer Token. Format: Authorization: Bearer sk-xxxxxx

Headers

anthropic-version
string
required

Anthropic API version

Example:

"2023-06-01"

x-api-key
string

Anthropic API Key (optional; Bearer Token can also be used)

Body

application/json
model
string
required
messages
object[]
required
max_tokens
integer
required
Required range: x >= 1
system
temperature
number
Required range: 0 <= x <= 1
top_p
number
top_k
integer
stream
boolean
stop_sequences
string[]
tools
object[]
tool_choice
object
thinking
object
metadata
object

Response

200 - application/json

Successfully created response

id
string
type
string
Example:

"message"

role
string
Example:

"assistant"

content
object[]
model
string
stop_reason
enum<string>
Available options:
end_turn,
max_tokens,
stop_sequence,
tool_use
usage
object