Claude Opus 4.8 is Anthropic`s most capable generally available model in the Opus family. It supports text, image, and file inputs with text output, with reasoning support and a 1M-token context window. It is suited for highly autonomous agents, long-horizon agentic work, knowledge work, and memory-driven tasks where coherence over extended sessions matters.It is particularly strong on multi-step reasoning, complex coding, and end-to-end project orchestration - large codebases, multi-stage debugging, and long-running asynchronous agent pipelines. Beyond coding, it handles knowledge work such as drafting documents, building presentations, and analyzing data, maintaining quality across very long outputs.
Claude 4.8 Opus introduces a 1M-token context window alongside elite multimodal perception and reasoning. Built for long-horizon agentic work and memory-driven automation, it maintains structural coherence and logical depth across exceptionally long outputs and extended execution windows.
To interact with this model via an OpenAI-compatible gateway or OpenRouter endpoint:
| Parameter | Type | Required | Description |
|---|---|---|---|
model |
string |
Yes | Use "claude-opus-4-8" or "anthropic/claude-4.8-opus". |
messages |
array |
Yes | Array of standard conversation objects (role/content) supporting multi-modal payloads. |
max_tokens |
integer |
No | Limits generation length. Supports massively expanded output targets. |
temperature |
float |
No | Recommended: 0.0 for mission-critical logic; 0.5 for creative analysis. |
claude-opus-4-8 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-8",
"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.
