Anthropic: Claude Opus 5

Models

Model details

Model
anthropic/claude-opus-5
Provider
openrouter
API
anthropic-messages
Base URL
https://openrouter.ai/api
Input
text, image
Reasoning
Yes
Context window
1,000,000
Max tokens
128,000
Show configuration
{
  "providers": {
    "openrouter": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "anthropic/claude-opus-5",
          "name": "Anthropic: Claude Opus 5",
          "reasoning": true,
          "input": [
            "text",
            "image"
          ],
          "thinkingLevelMap": {
            "off": "none",
            "minimal": null,
            "low": "low",
            "medium": "medium",
            "high": "high",
            "xhigh": "xhigh",
            "max": "max"
          },
          "contextWindow": 1000000,
          "maxTokens": 128000,
          "cost": {
            "input": 5,
            "output": 25,
            "cacheRead": 0.5,
            "cacheWrite": 6.25
          },
          "compat": {
            "forceAdaptiveThinking": true,
            "supportsTemperature": false
          }
        }
      ],
      "api": "anthropic-messages",
      "baseUrl": "https://openrouter.ai/api"
    }
  }
}

Pricing

USD per million tokens. A tier is selected from the total input tokens in each request and applies to that entire request.

Pricing rates for Anthropic: Claude Opus 5
Request inputInputOutputCache readCache write
All requests$5$25$0.5$6.25

Session cost calculator

Estimate the requests made during an agent session. A user turn can make several model calls while using tools, so costs are calculated per model request.

Session shape
Rounded median shapes from recent Pi agent sessions.
Warm-request cache reuse
Effective token reuse combines partial hits and occasional complete misses.
Estimated session$0.00
Uncached input
—
Cache reads
—
Uncached prefixes
—
Cache writes
—
Output
—
Without caching
—

The first request starts cold unless marked otherwise. Output is billed separately from context growth because reasoning tokens are not always retained. This remains a directional estimate: providers differ in eligibility, rounding, and retention.

Compatibility flags

Effective values after applying Pi's API defaults and model overrides.

Effective compatibility flags for Anthropic: Claude Opus 5
FeatureValue
supportsEagerToolInputStreamingYes
supportsLongCacheRetentionYes
sendSessionAffinityHeadersNo
supportsCacheControlOnToolsYes
supportsTemperatureNo
forceAdaptiveThinkingYes
allowEmptySignatureNo