claude-opus-4-8 API
Claude Opus 4.8 is Anthropic's model for complex agentic coding and enterprise work. On CaMeL Hub it costs $5 per 1M input tokens and $25 per 1M output tokens — call it through the OpenAI-compatible API by setting base_url to https://api.camel-hub.com/v1 and model to "claude-opus-4-8", or use the Anthropic-native endpoint with your existing Claude tooling.
Pricing
| per 1M input tokens | per 1M output tokens | |
|---|---|---|
| CaMeL Hub | $5.00 | $25.00 |
| Provider list price | $5.00 | $25.00 |
Prices are the public default-group rate in USD per 1M tokens; input and output are billed separately. · Provider list price · verified 2026-07-11
Specifications
- Provider
- Anthropic
- Context window
- 1000000 tokens
- Max output
- 128000 tokens
- Endpoints
- openai, anthropic
What it is good for
- Long-running coding agents (Claude Code, Cursor, Cline) performing multi-file refactors and test-driven bug fixes across large repositories
- Whole-codebase or multi-document analysis in a single request, loading up to 1M tokens of source files, contracts, or logs as context
- Function-calling agent backends that orchestrate many tools over dozens of sequential steps, such as research, ops automation, or data pipelines
- Enterprise document workflows — contract review, RFP drafting, policy summarization — that need long, structured outputs up to 128K tokens
- Vision-in-the-loop automation: reading UI screenshots, dashboards, and scanned tables as part of an agent's decision cycle
- Migration target for teams on older Opus models: Anthropic points Opus 4.1 users to Opus 4.8 ahead of the August 2026 retirement
Quickstart
OpenAI-compatible: set base_url to https://api.camel-hub.com/v1 and use your CaMeL Hub API key. No SDK changes needed.
cURL
curl https://api.camel-hub.com/v1/chat/completions \
-H "Authorization: Bearer $CAMEL_HUB_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-opus-4-8",
"messages": [{"role": "user", "content": "Hello!"}]
}'
Python
from openai import OpenAI
client = OpenAI(
api_key="$CAMEL_HUB_KEY",
base_url="https://api.camel-hub.com/v1", # <-- the only change vs. the OpenAI default
)
resp = client.chat.completions.create(
model="claude-opus-4-8",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)
Node.js
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.CAMEL_HUB_KEY,
baseURL: "https://api.camel-hub.com/v1", // <-- the only change vs. the OpenAI default
});
const resp = await client.chat.completions.create({
model: "claude-opus-4-8",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(resp.choices[0].message.content);
Get an API key Browse integration guides
Frequently asked questions
How is claude-opus-4-8 billed on CaMeL Hub?
Per token, with input and output priced separately: $5 per 1M input tokens and $25 per 1M output tokens in the public default group. You pay only for what each request actually consumes — there is no per-call fee, and streaming responses are billed identically to non-streaming ones.
Does claude-opus-4-8 support streaming, function calling, and image input?
Yes to all three. Streaming works via the standard stream=true parameter, function calling accepts OpenAI-style tools definitions on the compatible endpoint (or Anthropic-native tool blocks on the native endpoint), and vision requests can include images alongside text.
What are the context window and output limits?
Anthropic documents a 1M-token context window and up to 128K output tokens per request for Claude Opus 4.8. Note that Opus 4.7+ models use a newer tokenizer that yields roughly 30% more tokens for the same text than earlier Claude models, so budget context and cost accordingly.
Should I use the OpenAI-compatible endpoint or the Anthropic-native one?
Both are available with the same API key and the same pricing. If your code already uses an OpenAI SDK, keep it and just change base_url to https://api.camel-hub.com/v1. If your tooling speaks Anthropic's native Messages format — Claude Code, the Anthropic SDK — use that endpoint instead; no request rewriting is needed either way.
How do I get started with claude-opus-4-8 on CaMeL Hub?
Register at https://api.camel-hub.com/console, create an API key, and set your client's base_url to https://api.camel-hub.com/v1 with model "claude-opus-4-8". Top up by Alipay, WeChat Pay, or international card, or pick a subscription plan — the first request typically takes under five minutes to set up.