Skip to content
Anthropic · Claude Opus

claude-opus-4-6-thinking API

Use Claude Opus extended reasoning on Openrouter API for long-context analysis and multi-turn chat.

ReasoningChat & TextSynchronousPrompt caching
Model id
claude-opus-4-6-thinking

claude-opus-4-6-thinking API pricing

All prices in USD. Openrouter API rates compared with the official list price for the same unit.

Token typeOpenrouter APIOfficialSave
Input per 1M tokens$4.40$5.00−12%
Cached input per 1M tokens$0.44$0.50−12%
Cache write per 1M tokens$5.50$6.25−12%
Cache write (5 min) per 1M tokens$5.50$6.25−12%
Cache write (1 hour) per 1M tokens$8.80$10.00−12%
Output per 1M tokens$22.00$25.00−12%

What is claude-opus-4-6-thinking?

Anthropic’s claude-opus-4-6-thinking is a Claude Opus chat and reasoning model available through Openrouter API. Its Opus and thinking naming positions it as a higher-capability option suited to extended reasoning tasks, such as working through complex questions or analyzing large bodies of supplied material. It accepts up to 1,000,000 input tokens and supports up to 128,000 output tokens. Openrouter API’s native Claude Messages interface supports text and image content, multi-turn conversations, tool use, SSE streaming, and extended thinking controls.

Call the model through Openrouter API’s OpenAI-compatible base URL, https://openrouterapi.ru/v1, or use the native Claude Messages endpoint for Anthropic-style controls. Openrouter API provides pay-as-you-go billing only for successful requests. Input costs $4.40 per 1M tokens and output costs $22.00 per 1M tokens, with separate rates for prompt-cache reads and writes. The default configuration is about 12% below the developer's list price.

claude-opus-4-6-thinking highlights

Large Input Capacity

Supports up to 1,000,000 input tokens for requests containing substantial reference material or conversation history.

Extended Thinking Controls

The native Claude Messages API exposes a thinking object for extended thinking configuration. Responses may include thinking blocks when enabled.

Prompt Cache Support

Supports prompt-cache reads and cache writes, with documented pricing for 5-minute and 1-hour cache-write TTLs.

Native Claude Interface

Openrouter API’s Claude Messages interface supports text and images, tool use, multi-turn conversations, and SSE streaming. Responses follow the standard Anthropic Messages format (no extra wrapper).

How to call the claude-opus-4-6-thinking API in 4 steps

  1. 01

    Get an API key

    Sign in to Openrouter API, top up from $50, and create an sk-ora key in the console.

  2. 02

    Set the base URL

    Use https://openrouterapi.ru/v1 as the base URL in your SDK or HTTP client.

  3. 03

    Send the request

    Call POST /v1/chat/completions with "model": "claude-opus-4-6-thinking" and the parameters below.

  4. 04

    Handle the response

    Read the response (or stream tokens with stream: true). Usage and cost appear in your console.

curl https://openrouterapi.ru/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTERAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-4-6-thinking",
    "messages": [
      {"role": "system", "content": "You are a concise assistant."},
      {"role": "user", "content": "Explain what an AI API gateway does in two sentences."}
    ],
    "stream": false
  }'

Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequiredclaude-sonnet-4-6Model name
messagesarrayRequired—List of messages
rolestringRequireduserRole type
contentstringRequired—Message content
max_tokensintegerRequired—Maximum tokens to generate (**required**, same as Anthropic official)
thinkingobjectOptional—Extended thinking configuration
systemstring | arrayOptional—System prompt
temperaturenumberOptional—Temperature parameter, range 0-1
top_pnumberOptional—Nucleus sampling parameter, range 0-1
top_kintegerOptional—Top-K sampling
streambooleanOptional—Enable streaming
stop_sequencesarrayOptional—Stop sequences
metadataobjectOptional—Metadata
toolsarrayOptional—Tool definitions
tool_choiceobjectOptional—Tool choice strategy

What you can build with claude-opus-4-6-thinking

Document Analysis Workflows

Build assistants that work through large sets of supplied documents and produce structured explanations or summaries within the documented token limits.

Multi-Step Problem Solving

Use the reasoning-focused model for workflows that require examining constraints and explaining a proposed solution.

Tool-Assisted Assistants

Build multi-turn assistants using the native Claude Messages API’s tool definitions and tool-choice controls.

Image-Aware Conversations

Use the native Claude Messages interface to include text and images in conversations about supplied visual material.

Tips for better results

  • 01

    Prefer Explicit Thinking Configuration

    For easier migration to Anthropic’s official endpoint, the documentation recommends the standard model name, claude-opus-4-6, plus the thinking parameter rather than a platform-side thinking alias.

  • 02

    Set Output Limits

    Include the required max_tokens parameter when using the native Claude Messages API. Set it to the output budget your task needs; the model may stop before reaching it.

  • 03

    Plan Cache Costs

    Cache reads cost $0.44 per 1M tokens. Cache writes with a 5-minute TTL cost $5.50 per 1M tokens, while a 1-hour TTL costs $8.80 per 1M tokens.

  • 04

    Preserve Thinking Signatures

    If you pass thinking blocks back in a multi-turn conversation, return their signature unchanged. The request is rejected if signatures are altered.

Limits and things to know

  • Maximum input is 1,000,000 tokens and maximum output is 128,000 tokens.

  • Native Claude Messages requests require max_tokens, but generation may stop before that limit.

claude-opus-4-6-thinking API FAQ

How much does claude-opus-4-6-thinking cost on Openrouter API?

Input costs $4.40 per 1M tokens and output costs $22.00 per 1M tokens. Cached input reads cost $0.44 per 1M tokens; 5-minute cache writes cost $5.50 per 1M tokens and 1-hour cache writes cost $8.80 per 1M tokens. The default configuration is about 12% below the developer's list price, and Openrouter API bills only successful requests.

How do I call claude-opus-4-6-thinking through Openrouter API?

Use https://openrouterapi.ru/v1 as your OpenAI-compatible base URL and set the model to claude-opus-4-6-thinking in a POST /v1/chat/completions request with Bearer authentication. For the native Claude protocol, use POST /v1/messages with either x-api-key or Bearer authentication.

Which parameters control extended thinking and streaming?

The native Claude Messages API exposes thinking for extended thinking configuration and stream for SSE output. It also supports system, tools, tool_choice, and the required max_tokens parameter.

What are the input and output token limits?

The model supports a maximum input of 1,000,000 tokens and a maximum output of 128,000 tokens. Your requested max_tokens is a generation ceiling, not a guarantee of response length.

Can I use this model commercially?

Commercial use is subject to the model developer’s terms. Review Anthropic’s applicable terms and Openrouter API’s service terms before deploying your application.

How does the thinking variant differ from the standard Claude Opus model?

The thinking suffix positions claude-opus-4-6-thinking for extended reasoning. For explicit control and easier migration, Openrouter API’s documentation recommends using claude-opus-4-6 with the thinking parameter rather than relying on a platform-side alias.

Related models

Depth: 250+ models · Minimum top-up $50

Start building with claude-opus-4-6-thinking

One key, pay as you go from $50, billed only for successful requests.