Claude Opus 4.5 API
anthropic/claude-opus-4.5Claude Opus 4.5 Chat turns conversation text and image context into code, analysis, and detailed answers for demanding multi-step tasks. Its 200K-token context keeps related files and instructions together while system guidance and tools shape the response.
Claude Opus 4.5
Anthropic · chat-completions
Quick start
Send a POST request to /v1/chat/completions with anthropic/claude-opus-4.5. Choose JSON or SSE with stream, and receive generated content and usage.
- Endpoint
- POST /v1/chat/completions
- Model ID
- anthropic/claude-opus-4.5
- Protocol
- Chat Completions
Request fields
| Field | Requirement | Description |
|---|---|---|
| model | Required | anthropic/claude-opus-4.5 |
| messages | Required | A non-empty ordered array; each message contains role and content. |
| max_tokens | Optional | A positive integer setting the response output limit; the playground offers 1–65,536. |
| temperature | Optional | Sampling temperature; the playground offers 0–2 and defaults to 1. |
| top_p | Optional | Nucleus sampling probability; the playground offers 0–1 and defaults to 1. |
| stream | Optional | Set true for SSE events; complete JSON is returned by default. |
Response and usage
Successful responses include generated content and usage. Billing settles from actual input, output, and cache tokens.
Streaming
Set stream: true to read SSE. Finalize usage accounting from the terminal usage event.
curl --request POST \
--url https://api.vidgo.ai/v1/chat/completions \
--header "Authorization: Bearer $VIDGO_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"model": "anthropic/claude-opus-4.5",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Explain why deterministic retries matter in distributed systems."
}
],
"max_tokens": 4096,
"temperature": 1,
"top_p": 1,
"stream": false
}'Keep API keys on the server. Never expose them in browser code or public repositories.
Continue with
Related Models
Claude Opus 4.5 API frequently asked questions
What is the Claude Opus 4.5 API?
Claude Opus 4.5 turns conversation text and image context into useful answers. Its 200K-token context supports connected work. Use anthropic/claude-opus-4.5 through Chat Completions or Claude Messages, or try the Playground above.
How does Claude Opus 4.5 help with complex coding?
Give Claude Opus 4.5 the target behavior, relevant source files, constraints, and test findings. It can connect those inputs to produce code and explain the decisions for review.
What context and output sizes does Claude Opus 4.5 have?
Claude Opus 4.5 has a 200K-token context window and a 64K-token model output limit. In the Playground, max_tokens ranges from 1 to 65,536.
How can Claude Opus 4.5 analyze images?
Place an image block in messages.content alongside the relevant text, then ask a focused question about the visual details. The response is text.
What does Claude Opus 4.5 cost on Vidgo AI?
Claude Opus 4.5 is $4.00 and 1000 credits per 1M input tokens, and $20.00 and 5000 credits per 1M output tokens. The Pricing section shows both rates.
Which API endpoints can I use for Claude Opus 4.5?
Use anthropic/claude-opus-4.5 with /v1/chat/completions or /v1/messages. Choose Chat Completions for system-role messages or Messages for a separate system field.