Opus 4.7 is the next generation of Anthropic's Opus family, built for long-running, asynchronous agents. Building on the coding and agentic strengths of Opus 4.6, it delivers stronger performance on complex, multi-step tasks and more reliable agentic execution across extended workflows. It is especially effective for asynchronous agent pipelines where tasks unfold over time - large codebases, multi-stage debugging, and end-to-end project orchestration. Beyond coding, Opus 4.7 brings improved knowledge work capabilities - from drafting documents and building presentations to analyzing data. It maintains coherence across very long outputs and extended sessions, making it a strong default for tasks that require persistence, judgment, and follow-through. For users upgrading from earlier Opus versions, see our [official migration guide here](https://openrouter.ai/docs/guides/evaluate-and-optimize/model-migrations/claude-4-7)
Claude 4.7 Opus is built for sophisticated, asynchronous agent pipelines and persistent knowledge work. It provides elite performance on tasks where execution unfolds over time, offering unmatched coherence across ultra-long outputs and extended multi-step sessions.
To interact with this model via an OpenAI-compatible gateway or OpenRouter endpoint:
| Parameter | Type | Required | Description |
|---|---|---|---|
model |
string |
Yes | Use "claude-opus-4-7" or "anthropic/claude-4-7-opus". |
messages |
array |
Yes | Array of standard conversation messages (role/content). |
max_tokens |
integer |
No | Limits the generation length. Supports extended output targets. |
temperature |
float |
No | Recommended: 0.0 for precise architectural logic; 0.5 for document drafting. |
claude-opus-4-7 supports Adaptive Thinking — the model dynamically decides when and how much to think. The legacy "type": "enabled" + budget_tokens parameters are removed on this model (will return a 400 error).
thinking is included, temperature, top_p, and top_k are not supported (will return 400).max_tokens should be set generously (e.g., ≥ 64000) when using "effort": "xhigh" or "max"."display": "summarized" to see the model's reasoning.| Value | Description |
|---|---|
"low" |
Fast; minimal thinking for simple tasks |
"medium" |
Balanced speed and depth |
"high" |
Deep reasoning — recommended default |
"xhigh" |
Best for coding and agentic tasks |
"max" |
Maximum reasoning for the hardest problems |
{
"model": "claude-opus-4-7",
"max_tokens": 64000,
"thinking": {
"type": "adaptive",
"display": "summarized"
},
"output_config": {
"effort": "xhigh"
},
"messages": [
{
"role": "user",
"content": "Your question here"
}
]
}
Note:
"type": "enabled"andbudget_tokensare fully removed on this model and will return a400error. Use"type": "adaptive"+output_config.effortinstead.
Run models at scale with our fully managed GPU infrastructure, delivering enterprise-grade uptime at the industry's best rates.
