Claude 3.5 Sonnet
Model Overview
How to Make a Call
API Schema
Creates a chat completion using a language model, allowing interactive conversation by predicting the next response based on the given chat history. This is useful for AI-driven dialogue systems and virtual assistants.
Authorizations
AuthorizationstringRequired
Bearer key
Body
modelundefined · enumRequiredPossible values:
stop_sequencesstring[]Optional
max_tokensnumber · min: 1OptionalDefault:
512streambooleanOptionalDefault:
falsefrequency_penaltynumberOptional
top_pnumberOptional
top_knumberOptional
temperaturenumber · max: 1Optional
tool_choiceany ofOptional
or
or
or
systemstringOptional
Responses
201Success
post
/v1/chat/completions201Success
No content
Code Example (Python)
Last updated