Published: · Updated:
Exact ID: claude-opus-4-8. Models available to your key: GET /v1/models.
Claude Opus 4.8 API pricing
| API429 price | Official Anthropic price (Standard) |
|---|---|
$1.5000 / 1,000,000 cache-write input tokens $1.5000 / 1,000,000 cached input tokens $1.5000 / 1,000,000 input tokens $7.5000 / 1,000,000 output tokens | $5 / $25 per 1M ordinary input / output tokens Standard; base tokens Manufacturer sourceChecked: Oct 24, 2026. Cache, tools and special modes are excluded from this rate pair. |
API429 prices as of the catalog dated .
Cost calculator for Claude Opus 4.8
Ordinary input and output are counted, excluding cache, tools, fees and repeated calls. This estimates spending; it does not validate whether a request is accepted. RUB results use only your entered rate; they are neither a bank quote nor a top-up amount.
Context and capabilities of Claude Opus 4.8
The manufacturer specifies a shared context window of 1,000,000 and a maximum output of 128,000 tokens for its own API (specification: Anthropic, checked Oct 24, 2026, 6:11 AM UTC). These are manufacturer limits, not verified effective API429 limits: test very long contexts on your own request.
API429 capabilities published for this exact ID: chat vision . Test any mode missing from this list on your own request.
Practical task: an established bug-fixing workflow
Supply a reproducible failure, expected behavior and the smallest relevant code excerpt. Request hypotheses first and a separate repair plan next. Record retries and accepted fixes: when two versions share token prices, the cost of a completed repair still depends on actual token consumption and repeated attempts.
Exact version and lifecycle
According to Anthropic documentation reviewed on 2026-10-24, Anthropic lists this version as Active (legacy). Keeping an existing workflow does not make it the default choice for every new project. When evaluating Opus 5.5, review native API settings separately from the public client method used by your application.
Context, output and ordinary token budget
According to Anthropic documentation reviewed on 2026-10-24, the manufacturer specifies a 1,000,000-token shared window and up to 128,000 output tokens. Input and output must fit together. The manufacturer lists $5 per million input tokens and $25 per million output tokens. Equality with Opus 4.6 rates does not guarantee equal spending for a completed repair.
Alternatives for a controlled comparison
gpt-5.6-sol is a candidate for evidence-based document synthesis. gemini-2.5-flash-lite is a candidate for maintaining a budget baseline. grok-4.6 is a candidate for planning a long coding and knowledge task.
Speed and errors of Claude Opus 4.8 over 24 hours
There are no fresh observations with confirmed traffic for this model. This does not mean zero latency or prove an absence of errors.
Source: public 24-hour statistics. The mean is neither a median nor a response time guarantee.
How to connect Claude Opus 4.8: curl, Python, JavaScript
Create a key, check your balance and set API429_API_KEY on the server. The request is paid from your balance; Python and JavaScript first check that the model is available to your key.
curl
Before generation, check the exact ID in the response from GET https://gateway.api429.com/v1/models using the same Bearer key.
curl --fail-with-body https://gateway.api429.com/v1/chat/completions \
-H "Authorization: Bearer $API429_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"claude-opus-4-8","messages":[{"role":"user","content":"Bug: pagination repeats the last item from the previous page. Rows are sorted by created_at and timestamps may tie. Propose hypotheses and a verification plan without running queries."}],"max_tokens":512,"stream":false}'Python 3
import json
import os
import urllib.request
key = os.environ["API429_API_KEY"]
base = "https://gateway.api429.com/v1"
headers = {"Authorization": "Bearer " + key, "Content-Type": "application/json"}
models_request = urllib.request.Request(base + "/models", headers=headers)
with urllib.request.urlopen(models_request, timeout=30) as response:
available = {item["id"] for item in json.load(response)["data"]}
model = "claude-opus-4-8"
if model not in available:
raise ValueError("Model is unavailable to this key")
payload = json.loads("{\"model\":\"claude-opus-4-8\",\"messages\":[{\"role\":\"user\",\"content\":\"Bug: pagination repeats the last item from the previous page. Rows are sorted by created_at and timestamps may tie. Propose hypotheses and a verification plan without running queries.\"}],\"max_tokens\":512,\"stream\":false}")
request = urllib.request.Request(base + "/chat/completions",
data=json.dumps(payload).encode("utf-8"), headers=headers, method="POST")
with urllib.request.urlopen(request, timeout=60) as response:
result = json.load(response)
choice = result["choices"][0]
if choice.get("finish_reason") != "stop" or not choice.get("message", {}).get("content"):
raise ValueError("Incomplete or empty response")
print(choice["message"]["content"])
print(result.get("usage"))JavaScript: Node.js 18+
const key = process.env.API429_API_KEY;
if (!key) throw new Error("Set API429_API_KEY");
const base = "https://gateway.api429.com/v1";
const headers = { Authorization: "Bearer " + key, "Content-Type": "application/json" };
const model = "claude-opus-4-8";
const available = await fetch(base + "/models", { headers, signal: AbortSignal.timeout(30000) });
if (!available.ok) throw new Error("Models HTTP " + available.status);
if (!(await available.json()).data.some(item => item.id === model)) throw new Error("Model unavailable to this key");
const response = await fetch(base + "/chat/completions", {
method: "POST", headers, signal: AbortSignal.timeout(60000),
body: JSON.stringify({"model":"claude-opus-4-8","messages":[{"role":"user","content":"Bug: pagination repeats the last item from the previous page. Rows are sorted by created_at and timestamps may tie. Propose hypotheses and a verification plan without running queries."}],"max_tokens":512,"stream":false})
});
if (!response.ok) throw new Error("Generation HTTP " + response.status);
const result = await response.json();
const choice = result.choices?.[0];
if (choice?.finish_reason !== "stop" || !choice?.message?.content) throw new Error("Incomplete or empty response");
console.log(choice.message.content);
console.log(result.usage);The examples use basic fields from the published API contract.
Claude Opus 4.8 in n8n: HTTP Request
- Create an HTTP Request with method POST and URL
https://gateway.api429.com/v1/chat/completions. - Store the Bearer key in credentials; add
Content-Type: application/json. Do not put the key in an exported workflow example. - Send the JSON from curl: the exact model
claude-opus-4-8, messages, max_tokens and stream=false. - After the HTTP node, check
choices,finish_reasonand the response content before writing the result to your production system.
Alternatives to Claude Opus 4.8: similar models and prices
Compare them on the same task. Prices apply to a short text request; see the catalog for full pricing.
| Model | API429: input / output per 1M tokens |
|---|---|
GPT 5.6 Solgpt-5.6-sol | $1.5 / $9 |
Gemini 2.5 Flash Litegemini-2.5-flash-lite | $0.03 / $0.12 |
Grok 4.6grok-4.6 | $0.6 / $1.8 |
Version and release date
Manufacturer API release date, Anthropic: . The exact predecessor has not been established in the reviewed sources.
Payment and a $10 test
- Russian bank card. Top up your balance in the account.
- Invoice for companies. Bank transfer with closing documents.
- USDT and TON. Top up in crypto.
$10 test credit. Subscribe to our Telegram channel through the bot and get $10 on your balance for the first requests. Get $10 in the bot
Frequently asked questions
What should an established Opus 4.8 workflow evaluate?
Use a reproducible repair with a recorded defect, expected result and acceptance check. Request hypotheses before a repair plan. This lets reviewers reject an incorrect explanation before a large patch and identify where repeated attempts consume tokens in the workflow.
Why do equal Opus 4.6 prices not imply equal spending?
According to Anthropic documentation reviewed on 2026-10-24, both versions have reviewed ordinary rates of $5/$25 per million input/output tokens. Your task can still require different numbers of attempts and different response lengths. Compare total usage through an accepted repair while keeping the acceptance criterion unchanged.
What does the pagination example evaluate?
Equal created_at values can make ordering ambiguous. A useful answer proposes a testable hypothesis about ordering and page boundaries rather than declaring a cause without a query or schema. The plan should state which observations confirm or reject each hypothesis.
How should legacy status affect migration from Opus 4.8?
According to Anthropic documentation reviewed on 2026-10-24, active (legacy) is the manufacturer lifecycle description, not a latest-generation claim. Prepare an Opus 5.5 comparison using retained failures and inspect native workflow settings separately. A shared Opus name is insufficient evidence that every integration setting will behave identically.
Sources and review
- platform.claude.com/docs/en/models/opus-4-8/overview
- platform.claude.com/docs/en/about-claude/pricing
- platform.claude.com/docs/en/about-claude/model-deprecations
- gateway.api429.com/api/public/openapi.json
Editorial review: . Pricing and general calculator · Getting started · Compare the family: Claude
