Models / Anthropic

AN

Claude Sonnet 4.6

$1.80 in, $9.00 out per million tokens, 40% under Anthropic's list price.

claude-sonnet-4-6managed routeAnthropic SDKOpenAI SDK

Price · per million tokens, USD

TokensAnthropic list priceUplinkSwitchSaving
Input$3.00$1.80-40%
Cached inputBilled at the input rate.
Output$15.00$9.00-40%
List price: Anthropic's published rate, read Oct 11, 2026. Same price on every host.

Call it · 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-4-6",
    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-4-6',
  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-4-6"
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-4-6",
    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-4-6',
  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-4-6","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.