Claude Opus 4.8
💬
Sign in to try Claude Opus 4.8
Sign in with your Google account and top up credits to get started.
Sign in with GoogleUse via API
Base URL: https://adverraai.com/hub/api/v1 · Authenticate with Authorization: Bearer YOUR_API_KEY — create a key in your dashboard
curl https://adverraai.com/hub/api/v1/chat/completions \
-H "Authorization: Bearer $ADVERRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-opus-4.8",
"messages": [{"role": "user", "content": "Hello"}],
"stream": false
}'
# pip install openai
from openai import OpenAI
client = OpenAI(base_url="https://adverraai.com/hub/api/v1", api_key="YOUR_API_KEY")
r = client.chat.completions.create(
model="anthropic/claude-opus-4.8",
messages=[{"role": "user", "content": "Hello"}],
)
print(r.choices[0].message.content)
const r = await fetch("https://adverraai.com/hub/api/v1/chat/completions", {
method: "POST",
headers: { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" },
body: JSON.stringify({ model: "anthropic/claude-opus-4.8", messages: [{ role: "user", content: "Hello" }] })
});
const data = await r.json();
console.log(data.choices[0].message.content, data.usage.credits);
Fully compatible with OpenAI Chat Completions: stream, temperature, max_tokens, tools, image messages, etc. The response includes usage.credits showing the credits used.
Parameters for this model
Send as JSON in the request body. Fields marked * are required.
| Parameter | Type | Allowed values | Default | Description |
|---|---|---|---|---|
model * |
string | – | – | ID of the model to call — anthropic/claude-opus-4.8 |
messages * |
array | – | – | Conversation messages, each with role (system / user / assistant) and content |
max_tokens |
integer | – | – | Maximum tokens in the answer |
temperature |
number | 0 – 2 | 1 | Randomness of the answer; lower is steadier |
top_p |
number | 0 – 1 | 1 | Nucleus sampling threshold |
stream |
boolean | true, false | false | Stream the answer back in chunks (SSE) |
stop |
string | array | – | – | Sequences where generation stops |
tools |
array | – | – | Tools (functions) the model may call |
tool_choice |
string | object | – | – | Controls how tools are chosen |
response_format |
object | – | – | Forces an answer format such as JSON |
About this model
Claude Opus 4.8 is a Chat & Text model by Anthropic
Input
PriceInput 276 · Output 1,380 credits per 1M tokens
Claude Opus 4.8 is Anthropic's most capable generally available model in the Opus family. It supports text, image, and file inputs with text output, with reasoning support and a 1M-token...
Preparing details in English…