Models / Anthropic

Claude Sonnet 5 API pricing

Claude Sonnet 5, often written Sonnet 5: $1.20 in, $3.00 out per million tokens, 40% under Anthropic's list price on input and 70% on output.

claude-sonnet-5managed routeAnthropic SDKOpenAI SDK
Claude Sonnet 5 on UplinkSwitch

Price · per million tokens, USD

Get a key
TokensAnthropic list priceUplinkSwitchSaving
Input$2.00$1.20-40%
Cached input$0.20$0.12-40%
Output$10.00$3.00-70%
List price: Anthropic's published rate, read October 2026. Prices read from the live catalog on 2026-12-03; the page follows the catalog.
Real-model check: Steady since Nov 26

Claude Sonnet 5 vs Claude Sonnet 4.6 price · per million tokens, USD

Claude Sonnet 4.6
TokensClaude Sonnet 4.6Claude Sonnet 5List change
Input$1.80list $3.00$1.20list $2.00-33%
Cached input$0.18list $0.30$0.12list $0.20-33%
Output$9.00list $15.00$3.00list $10.00-33%

Claude Sonnet 5 specs

Context window
1,000,000 tokens
Max output
128,000 tokens
Input
text and image
Released
June 30, 2026

Claude Sonnet 5 API key · base URL and setup

  1. Create a key in the console at uplinkswitch.ai/console. Credit is prepaid from $10 with no subscription, and the key works at once.
  2. Point your SDK or tool at https://api.uplinkswitch.com/v1, for example with ANTHROPIC_BASE_URL, and send the key as the bearer token.
  3. Send claude-sonnet-5 as the model. The same key calls every other model in the catalog.
Python · Anthropic SDK
from anthropic import Anthropic

client = Anthropic(
    base_url="https://api.uplinkswitch.com/v1",
    api_key="sk-uplink-live-...",
)

message = client.messages.create(
    model="claude-sonnet-5",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Summarize this in one line."}],
)
print(message.content[0].text)
TypeScript · Anthropic SDK
import Anthropic from '@anthropic-ai/sdk';

const client = new Anthropic({
  baseURL: 'https://api.uplinkswitch.com/v1',
  apiKey: 'sk-uplink-live-...',
});

const message = await client.messages.create({
  model: 'claude-sonnet-5',
  max_tokens: 1024,
  messages: [{ role: 'user', content: 'Summarize this in one line.' }],
});
console.log(message.content[0]);
Claude Code
export ANTHROPIC_BASE_URL="https://api.uplinkswitch.com/v1"
export ANTHROPIC_AUTH_TOKEN="sk-uplink-live-..."
export ANTHROPIC_MODEL="claude-sonnet-5"
claude
Python · OpenAI SDK
from openai import OpenAI

client = OpenAI(
    base_url="https://api.uplinkswitch.com/v1",
    api_key="sk-uplink-live-...",
)

completion = client.chat.completions.create(
    model="claude-sonnet-5",
    messages=[{"role": "user", "content": "Summarize this in one line."}],
)
print(completion.choices[0].message.content)
TypeScript · OpenAI SDK
import OpenAI from 'openai';

const client = new OpenAI({
  baseURL: 'https://api.uplinkswitch.com/v1',
  apiKey: 'sk-uplink-live-...',
});

const completion = await client.chat.completions.create({
  model: 'claude-sonnet-5',
  messages: [{ role: 'user', content: 'Summarize this in one line.' }],
});
console.log(completion.choices[0].message.content);
curl
curl https://api.uplinkswitch.com/v1/messages \
  -H "x-api-key: sk-uplink-live-..." \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{"model":"claude-sonnet-5","max_tokens":256,"messages":[{"role":"user","content":"Hello"}]}'

What would it cost? · paste a prompt, priced before you send it

Input is counted at about 4 characters per token.

Claude Sonnet 5 questions

Claude Sonnet 5, often written Sonnet 5, is a model from Anthropic, released June 30, 2026, with a 1,000,000-token context window, taking text and image input. Through UplinkSwitch it answers the Anthropic SDK or OpenAI SDK on one key as claude-sonnet-5.

$1.20 per million input tokens and $3.00 per million output tokens, with cached input at $0.12. Anthropic's list price is $2.00 and $10.00, so this is 40% under Anthropic's list price on input and 70% on output.

It is pay as you go: prepaid credit from $10, with no subscription or monthly fee, billed per token. A 1,000-token prompt with a 500-token reply costs about $0.0027.

Claude Sonnet 5 has a 1,000,000-token context window, with up to 128,000 output tokens per request. It takes text and image input.

claude-sonnet-5. Send it as the model through the Anthropic SDK or OpenAI SDK with base URL https://api.uplinkswitch.com/v1.

Create one in the console at uplinkswitch.ai/console: prepaid credit from $10, no subscription, and the key is live at once. The same key calls Claude Sonnet 5 and every other model in the catalog; send it as the bearer token with base URL https://api.uplinkswitch.com/v1.

Yes. Set ANTHROPIC_BASE_URL to https://api.uplinkswitch.com/v1, ANTHROPIC_AUTH_TOKEN to your key and ANTHROPIC_MODEL to claude-sonnet-5.

Every day each model gets the same test prompt, and the results are public on /proof. Claude Sonnet 5's latest result: Steady since Nov 26.

Per million tokens here, Claude Sonnet 5 is $1.20 input and $3.00 output; Claude Sonnet 4.6 is $1.80 and $9.00. Anthropic's list price went from $3.00 and $15.00 on Claude Sonnet 4.6 to $2.00 and $10.00 on Claude Sonnet 5. One key calls both, so switching is a change of model id.
Join on Telegram
Help