Anthropic

Sonnet 5

Anthropic's most capable Sonnet-class model, with frontier performance across coding, agents, and professional work.

Claude models work only with Anthropic’s official tools and xKCode

Claude models on xKiro accept requests only from Anthropic’s official tools — Claude Code (in the terminal or your IDE), Claude Desktop and Cowork — and from xKCode, xKiro’s coding app, when you sign in to it with your xKiro account. Third-party tools (such as OpenCode, Cline, Roo Code, Kilo Code, Cursor or Codex), xKiro chat and direct API calls from your own code are not supported and return an error. Every other model on xKiro works with any tool or SDK, including xKiro chat.

Set up Claude Code Download xKCode

Model ID

anthropic/claude-sonnet-5
Context window
1M
tokens
Max output
128K
tokens
Input
$2
per 1M tokens
Output
$10
per 1M tokens

Cache read $0.2 · Cache write $2.50

Quickstart

Call Sonnet 5 in one request.

Claude models run only in Anthropic’s official tools and xKCode. Point Claude Code at xKiro once and select this model — or sign in to xKCode with your xKiro account.

SDK guides
~/.claude/settings.json
{  "env": {    "ANTHROPIC_BASE_URL": "https://api.xkiro.com",    "ANTHROPIC_AUTH_TOKEN": "sk-xt-...",    "ANTHROPIC_MODEL": ""  }}
Terminal
claude
Claude Code now sends its requests to anthropic/claude-sonnet-5 through xKiro.

Create an API key in the dashboard and paste it into ANTHROPIC_AUTH_TOKEN. xKCode needs no key to paste — signing in with xKiro sets it up.

Pricing

What Sonnet 5 costs.

Billed per million tokens at these rates, from your plan’s budget or your wallet.

  • $2

    Input

    per 1M tokens

  • $10

    Output

    per 1M tokens

  • $0.2

    Cache read

    per 1M tokens

  • $2.50

    Cache write

    per 1M tokens

On a plan

From $0.067 / $0.34 on a plan

Plan: up to −96%

Usage on a plan comes out of your allowance, so Sonnet 5 costs from $0.067 / $0.34 per 1M tokens when you use the whole allowance — up to 96% less than pay-as-you-go.

Compare plans →

Anthropic's own API lists Sonnet 5 at $2 / $10 per 1M tokens.

On a plan: up to 96% less than the official API.

Pay as you go here costs the same as the official API.

Anthropic pricing page (lowest tier), checked Oct 21, 2026

Billed fairly

  • A request that fails before any output is generated is never billed
  • An identical blocking request retried within two minutes replays the first result — no double charge
  • If a stream breaks off or you cancel it, you pay only up to that point

Specifications

Limits and capabilities.

Context window
1,000,000 tokens
Max output
128,000 tokens
Input
Text · Image
Output
Text
Provider
Anthropic
Model ID
anthropic/claude-sonnet-5
Good for
Coding · Long context

Capabilities

  • Tool useSupported
  • VisionSupported
  • Video inputNot supported
  • ReasoningSupported

Reasoning effort

  1. low
  2. medium
  3. high
  4. xhigh
  5. max

Set it with reasoning_effort in the OpenAI format, or thinking in the Anthropic format.

Reasoning guide

Supported parameters

  • max_tokens
  • stop
  • stream
  • tools
  • tool_choice
  • response_format
  • structured_outputs
  • reasoning
  • include_reasoning

Compare

Similar models.

Closest in price and context window — same provider first, then alternatives from other providers.

Browse all 69 models
Sonnet 5 compared with similar models, prices per 1M tokens
ModelInput / 1MOutput / 1M
Sonnet 5This modelVision · Reasoning · Tool use1M$2$10$0.2
Sonnet 5.5NewVision · Reasoning · Tool use1M$2$10$0.1
Sonnet 4Vision · Reasoning · Tool use1M$3$15$0.3
Sonnet 4.5Vision · Reasoning · Tool use1M$3$15$0.3
GPT-5.6 SolVision · Reasoning · Tool use1M$2$10$0.2
GPT-6 SolVision · Reasoning · Tool use1.05M$2$10$0.2
GPT-6.1 SolVision · Reasoning · Tool use1.05M$2$10$0.1
modelanthropic/claude-sonnet-5

Start building with Sonnet 5.

Claude models run only in Anthropic’s official tools and xKCode. Create a key and add it to Claude Code, or sign in to xKCode with your xKiro account — then select anthropic/claude-sonnet-5.

No credit card · No auto-renewal · 26 free models, free forever