Claude Opus 5 API
anthropic/claude-opus-5Claude Opus 5 converts conversation messages into detailed analysis, code, plans, and tool-oriented responses. Use it for demanding agentic coding, multi-step reasoning, and enterprise analysis, with access through both Chat Completions and the Claude Messages protocol.
Claude Opus 5
Anthropic · chat-completions
Quick start
Send one POST request to /v1/chat/completions. Non-streaming calls return the model result and usage directly, with no task creation or status polling.
- Endpoint
- POST /v1/chat/completions
- Model ID
- claude-opus-5
- Protocol
- Chat Completions
Request fields
| Field | Requirement | Description |
|---|---|---|
| model | Required | claude-opus-5 |
| messages | Required | A non-empty array of conversation messages. |
| max_tokens | Optional | Limits output tokens for this response. |
| stream | Optional | Returns an SSE event stream when true. |
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": "claude-opus-5",
"messages": [
{
"role": "user",
"content": "Explain why deterministic retries matter in distributed systems."
}
],
"max_tokens": 1024,
"stream": false
}'Keep API keys on the server. Never expose them in browser code or public repositories.
Continue with
Related Models
Claude Opus 5 API — Frequently asked questions
What is the Claude Opus 5 API?
Claude Opus 5 is developed by Anthropic. It accepts ordered conversation messages and returns generated text plus usage through Vidgo AI.
How do I call the Claude Opus 5 API?
Use model claude-opus-5 with /v1/chat/completions for OpenAI-style clients or /v1/messages for Claude-compatible clients. Both protocols support direct JSON responses and SSE streaming.
How much does Claude Opus 5 cost?
Per 1M tokens, Vidgo charges 400 credits for input, 2000 for output, and 40 for cache reads. Cache writes cost 500 credits for the five-minute tier or 800 for the one-hour tier. The minimum positive charge for a successful request is 0.001 credit.
What inputs does Claude Opus 5 accept?
Both supported protocols accept a non-empty messages array with role and text content. Chat Completions accepts max_tokens optionally, while Claude Messages requires it.
Which Claude 5 model should I choose?
Choose Opus for demanding multi-step reasoning, broad agentic coding, and enterprise evidence review. Choose Sonnet for recurring production coding, tool workflows, and analysis at lower Vidgo token rates.