Chat Completion
Anthropic
claude-sonnet-4-6-thinking
Creates a model response for the given chat conversation.
POST
Chat Completion
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Model ID
Available options:
claude-sonnet-4-6-thinking Example:
"claude-sonnet-4-6-thinking"
A list of messages comprising the conversation so far.
Minimum array length:
1Example:
[{ "role": "user", "content": "Hello!" }]The maximum number of tokens to generate.
Required range:
1 <= x <= 8192Sampling temperature. Higher values make output more random.
Required range:
0 <= x <= 2Example:
1
Nucleus sampling threshold.
Required range:
0 <= x <= 1Penalizes repeated tokens based on their frequency in the text so far.
Required range:
-2 <= x <= 2Penalizes tokens that have already appeared in the text.
Required range:
-2 <= x <= 2If true, stream partial message deltas using SSE.
Sequences where the model will stop generating further tokens.