Models / Anthropic

Claude Sonnet 5 API pricing

$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

Price · per million tokens, USD

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. Same price on every host.

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 · base URL and key

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.

Cheapest first. A real request is billed on the provider's own token count. Same estimate as JSON: POST https://api.uplinkswitch.com/v1/estimate, no key needed.

Claude Sonnet 5 questions

What is Claude Sonnet 5?
Claude 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.
How much does the Claude Sonnet 5 API cost?
$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.
Is Claude Sonnet 5 free?
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.
What is the Claude Sonnet 5 context window?
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.
What is the Claude Sonnet 5 model id?
claude-sonnet-5. Send it as the model through the Anthropic SDK or OpenAI SDK with base URL https://api.uplinkswitch.com/v1.
How do I get a Claude Sonnet 5 API key?
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.
Does Claude Sonnet 5 work with Claude Code?
Yes. Set ANTHROPIC_BASE_URL to https://api.uplinkswitch.com/v1, ANTHROPIC_AUTH_TOKEN to your key and ANTHROPIC_MODEL to claude-sonnet-5.
Is it the real Claude Sonnet 5?
Every day each model gets the same test prompt, and a model always counts that prompt the same way; a swapped one would not. Claude Sonnet 5's latest result: Same fingerprint since Oct 12.