Claude Opus 5
Claude Opus 5 is Anthropic's advanced model for complex agentic coding and enterprise work, with a 1M-token context window, 128K maximum output, and adaptive thinking enabled by default.
🚀Function Overview
Claude Opus 5 is Anthropic's current Opus recommendation for difficult everyday coding and enterprise workflows, priced the same as Opus 4.8 while improving long-horizon task completion, verification, review, and tool use.
Key Features
- Official Claude API model ID claude-opus-5
- 1M-token context window as both the default and maximum
- 128K maximum output on the synchronous Messages API
- Text and image input with text output
- Adaptive thinking enabled by default with low, medium, high, xhigh, and max effort levels
- Available through Claude API, Amazon Bedrock, Google Cloud, and Microsoft Foundry
- Standard Claude API pricing of $5 per million input tokens and $25 per million output tokens
- Fast mode research preview on the Claude API at premium pricing
Use Cases
- •Complex multi-file coding features and large refactors
- •Long-horizon agentic workflows with repeated tool use
- •Difficult debugging, root-cause analysis, and high-precision code review
- •Enterprise document, spreadsheet, presentation, and knowledge work
- •Vision-assisted chart, document, diagram, and frontend analysis
- •Migration testing from Claude Opus 4.8
- •Task routing evaluations against Claude Fable 5 and Claude Sonnet 5
⚙️Input Parameters
model
stringUse claude-opus-5 for the official Claude API model ID.
messages
arrayAnthropic Messages API conversation payload for text, image, coding, and tool-use workflows.
system
stringOptional system instruction for role, workflow, tool, output, and safety constraints.
max_tokens
integerMaximum output tokens to generate, up to 128K on the synchronous Messages API.
effort
stringAdaptive thinking effort level: low, medium, high, xhigh, or max. The default is high.
thinking
objectOptional thinking configuration. Thinking is enabled by default; disabling it is allowed only with high effort or below.
tools
arrayOptional tool definitions for agent workflows, code execution, file editing, search, and structured tool calls.
speed
stringOptional fast-mode request on supported Claude API accounts using the required research-preview beta header.
💡Usage Examples
Example 1
Input Parameters
{
"model": "claude-opus-5",
"messages": [
{
"role": "user",
"content": "Trace this intermittent production bug across the repository, identify the root cause, implement the smallest safe fix, and verify the affected workflow."
}
],
"effort": "xhigh",
"max_tokens": 8192
}Output Results
Example 2
Input Parameters
{
"model": "claude-opus-5",
"messages": [
{
"role": "user",
"content": "Compare Opus 5 with Fable 5 for this long-running coding agent. Use our task success, latency, token use, and validation cost to recommend a default and escalation model."
}
],
"effort": "high",
"max_tokens": 4096
}Output Results
Quick Actions
Technical Specifications
- Hardware Type
- Claude API / Amazon Bedrock / Google Cloud / Microsoft Foundry
- Commercial Use
- Supported
- Pricing
- Claude API: $5 per million input tokens and $25 per million output tokens; separate prompt-caching, batch-processing, and Fast mode rates apply
- Platform
- Replicate
Related Keywords
Related Models
Bielik 1.5B v3 Instruct
Bielik-1.5B-v3-Instruct is a generative text model featuring 1.6 billion parameters. It is result of collaboration between the open-science/open-souce project SpeakLeash and the High Performance Computing (HPC)
Cordia-A6 Text Generation Model
A model for generating text sequences based on input prompts and adjustable parameters.
Claude Sonnet 4
Claude Sonnet 4 is a significant upgrade to 3.7, delivering superior coding and reasoning while responding more precisely to your instructions