Skip to content
Anthropic · Claude Sonnet

claude-sonnet-4-5-20250929-thinking API

Run Claude Sonnet chat and extended reasoning on Openrouter API with prompt caching and pay-as-you-go billing.

ReasoningChat & TextSynchronousPrompt caching
Model id
claude-sonnet-4-5-20250929-thinking

claude-sonnet-4-5-20250929-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$2.64$3.00−12%
Cached input per 1M tokens$0.264$0.30−12%
Cache write per 1M tokens$3.30$3.75−12%
Cache write (5 min) per 1M tokens$3.30$3.75−12%
Cache write (1 hour) per 1M tokens$5.28$6.00−12%
Output per 1M tokens$13.20$15.00−12%

What is claude-sonnet-4-5-20250929-thinking?

Anthropic’s claude-sonnet-4-5-20250929-thinking is a Claude Sonnet chat and reasoning model, positioned for tasks that benefit from extended thinking. It is suited to document analysis, multi-turn assistants, and tool-assisted workflows. The dated name is positioned as a pinned snapshot for reproducibility. Openrouter API’s Claude Messages interface supports text and image content, streaming SSE, tool definitions, and an extended thinking configuration, with a separate system prompt for application instructions.

The model accepts up to 200,000 input tokens and generates up to 64,000 output tokens. Prompt-cache reads and writes are supported. Openrouter API charges $2.64 per 1M tokens for input and $13.20 per 1M tokens for output, with separate cache rates. Default configuration pricing is about 12% below the developer's list price. Access uses one Openrouter API key, with pay-as-you-go billing only for successful requests.

claude-sonnet-4-5-20250929-thinking highlights

Extended Thinking Controls

The Claude Messages API accepts a thinking configuration for extended reasoning. Responses may include thinking blocks when enabled.

Large Token Limits

Supply up to 200,000 input tokens and generate up to 64,000 output tokens. Set max_tokens to bound generation.

Prompt Cache Support

The model supports prompt-cache reads and writes, including documented 5-minute and 1-hour cache-write pricing.

Streaming And Tools

Build multi-turn workflows with tool definitions and tool-choice controls through the Claude Messages API. Enable stream for Server-Sent Events output.

How to call the claude-sonnet-4-5-20250929-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-sonnet-4-5-20250929-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-sonnet-4-5-20250929-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-sonnet-4-5-20250929-thinking

Document analysis assistants

Provide lengthy source material and ask for summaries, comparisons, or answers tied to the supplied text.

Multi-step decision support

Use extended thinking for tasks such as evaluating constraints, comparing approaches, and explaining a proposed plan.

Tool-assisted workflows

Define application tools so an assistant can work with external functions during a multi-turn conversation.

Image-aware conversations

Use the Claude Messages interface to supply text and images for conversational analysis of visual material.

Tips for better results

  • 01

    Set the output budget

    On POST /v1/messages, max_tokens is required. Choose a task-appropriate value within the 64,000-token output limit; the model may stop before reaching it.

  • 02

    Choose caching deliberately

    Cache reads cost $0.264 per 1M tokens. Cache writes with a 5-minute TTL cost $3.30 per 1M tokens, while writes with a 1-hour TTL cost $5.28 per 1M tokens; choose based on your expected reuse window.

  • 03

    Preserve thinking signatures

    If you pass thinking blocks back in a multi-turn conversation, return their signature unchanged. Requests with altered signatures are rejected.

  • 04

    Keep model names portable

    The Claude Messages documentation recommends a standard model name plus the thinking parameter over -thinking aliases, which keeps your code portable across platforms. Keep system instructions in the separate system parameter.

Limits and things to know

  • Maximum input is 200,000 tokens; maximum output is 64,000 tokens.

  • The Claude Messages API requires max_tokens and allows at most 4 stop sequences.

  • Use /v1/messages for inference; responses follow the standard Anthropic Messages format (no extra wrapper).

claude-sonnet-4-5-20250929-thinking API FAQ

How much does claude-sonnet-4-5-20250929-thinking cost on Openrouter API?

Input costs $2.64 per 1M tokens, output costs $13.20 per 1M tokens, and cache reads cost $0.264 per 1M tokens. Cache writes cost $3.30 per 1M tokens for the default or 5-minute TTL rate, and $5.28 per 1M tokens for a 1-hour TTL. Default configuration pricing is about 12% below the developer's list price, with billing only for successful requests.

How do I call this model through Openrouter API?

Use the OpenAI-compatible base URL https://openrouterapi.ru/v1 with POST /v1/chat/completions, a Bearer token, and model set to claude-sonnet-4-5-20250929-thinking. For the native Claude Messages protocol, use POST /v1/messages with either x-api-key or Bearer authentication and include model, messages, and max_tokens.

Which reasoning and generation parameters are available?

The Claude Messages interface supports thinking, system, max_tokens, temperature, top_p, top_k, stream, stop_sequences, tools, and tool_choice. Its documented temperature range is 0–1; the documentation recommends using either temperature or top_p, not both.

What are the input and output limits?

The model supports a maximum of 200,000 input tokens and 64,000 output tokens. The Claude Messages interface supports text and image content, and max_tokens sets the generation ceiling rather than guaranteeing that 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 terms before deploying your application.

How does the thinking variant differ from a standard Claude Sonnet model?

The -thinking name positions this variant for extended reasoning, while the date suffix positions it as a pinned snapshot for reproducibility. The documentation recommends using a standard model name with the thinking parameter when portability to Anthropic’s official endpoint matters; published information does not establish comparative performance.

Related models

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

Start building with claude-sonnet-4-5-20250929-thinking

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