Claude Opus 4.8 API pricing
$2.00 in, $7.50 out per million tokens, 60% under Anthropic's list price on input and 70% on output.
claude-opus-4-8managed routeAnthropic SDKOpenAI SDK
Price · per million tokens, USD
Get a key| Tokens | Anthropic list price | UplinkSwitch | Saving |
|---|---|---|---|
| Input | $5.00 | $2.00 | -60% |
| Cached input | $0.50 | $0.20 | -60% |
| Output | $25.00 | $7.50 | -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 3
Claude Opus 4.8 vs Claude Opus 4.7 price · per million tokens, USD
Claude Opus 4.7| Tokens | Claude Opus 4.7 | Claude Opus 4.8 | List change |
|---|---|---|---|
| Input | $2.00list $5.00 | $2.00list $5.00 | same |
| Cached input | $0.20list $0.50 | $0.20list $0.50 | same |
| Output | $7.50list $25.00 | $7.50list $25.00 | same |
Claude Opus 4.8 specs
- Context window
- 1,000,000 tokens
- Max output
- 128,000 tokens
- Input
- text and image
- Released
- May 28, 2026
Claude Opus 4.8 API key · base URL and setup
- Create a key in the console at uplinkswitch.ai/console. Credit is prepaid from $10 with no subscription, and the key works at once.
- 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.
- Send claude-opus-4-8 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-opus-4-8",
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-4-8',
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-4-8"
claudePython · 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-4-8",
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-4-8',
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-4-8","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.
More from Anthropic
Compare: Claude Opus 4.8 vs Claude Opus 5.5, Claude Opus 4.8 vs Claude Sonnet 5, Claude Opus 4.8 vs Claude Fable 5, Claude Opus 4.8 vs Claude Opus 5.
Claude Opus 4.8 questions
Claude Opus 4.8 is a model from Anthropic, released May 28, 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-opus-4-8.
$2.00 per million input tokens and $7.50 per million output tokens, with cached input at $0.20. Anthropic's list price is $5.00 and $25.00, so this is 60% 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.0058.
Claude Opus 4.8 has a 1,000,000-token context window, with up to 128,000 output tokens per request. It takes text and image input.
claude-opus-4-8. 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 Opus 4.8 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-opus-4-8.
Every day each model gets the same test prompt, and the results are public on /proof. Claude Opus 4.8's latest result: Steady since Nov 3.
Per million tokens here, Claude Opus 4.8 is $2.00 input and $7.50 output; Claude Opus 4.7 is $2.00 and $7.50. Anthropic's list price went from $5.00 and $25.00 on Claude Opus 4.7 to $5.00 and $25.00 on Claude Opus 4.8. One key calls both, so switching is a change of model id.