Models / Anthropic

Claude Opus 5 API pricing

$1.50 in, $7.50 out per million tokens, 70% under Anthropic's list price.

claude-opus-5managed routeAnthropic SDKOpenAI SDK

Price · per million tokens, USD

TokensAnthropic list priceUplinkSwitchSaving
Input$5.00$1.50-70%
Cached input$0.50$0.15-70%
Output$25.00$7.50-70%
List price: Anthropic's published rate, read October 2026. Same price on every host.

Claude Opus 5 specs

Context window
1,000,000 tokens
Max output
128,000 tokens
Input
text and image
Released
July 24, 2026

Claude Opus 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-opus-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-opus-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-opus-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-opus-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-opus-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-opus-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 Opus 5 questions

How much does the Claude Opus 5 API cost?
$1.50 per million input tokens and $7.50 per million output tokens, with cached input at $0.15. Anthropic's list price is $5.00 and $25.00, so this is 70% under Anthropic's list price.
Is Claude Opus 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.0053.
What is the Claude Opus 5 context window?
Claude Opus 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 Opus 5 model id?
claude-opus-5. Send it as the model through the Anthropic SDK or OpenAI SDK with base URL https://api.uplinkswitch.com/v1.
Does Claude Opus 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-opus-5.
Is it the real Claude Opus 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 Opus 5's latest result: Same fingerprint since Oct 12.