Claude 4.7 Opus
Model Overview
API Schema
post
Body
modelstring · enumRequiredPossible values:
stop_sequencesstring[]Optional
Custom text sequences that will cause the model to stop generating.
streambooleanOptionalDefault:
If set to True, the model response data will be streamed to the client as it is generated using server-sent events.
falsesystemstringOptional
A system prompt is a way of providing context and instructions to Claude, such as specifying a particular goal or role.
max_tokensnumberOptionalDefault:
The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.
32000Responses
200Success
idstringRequiredExample:
A unique identifier for the chat completion.
chatcmpl-CQ9FPg3osank0dx0k46Z53LTqtXMlobjectstring · enumRequiredExample:
The object type.
chat.completionPossible values: creatednumberRequiredExample:
The Unix timestamp (in seconds) of when the chat completion was created.
1762343744modelstringRequiredExample:
The model used for the chat completion.
anthropic/claude-opus-4-7post
/v1/chat/completions200Success
Code Example
Last updated
Was this helpful?