claude-opus-4-8 API

At provider list price

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 tokensper 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
Claude Opus 4.8 is the Opus-class workhorse Anthropic recommends as the starting point for complex agentic coding and enterprise workloads. It uses adaptive thinking — the model decides how much reasoning depth each request needs, with the effort parameter defaulting to high — which makes it dependable in long tool-use loops: multi-file refactors, iterative test-and-fix cycles, and agent runs that span dozens of sequential steps without losing the plot. Latency is moderate: slower than Sonnet-class models, but substantially cheaper and faster than Anthropic's top-tier Fable 5 while covering most of the same territory. The specs are built for large jobs. The context window is 1M tokens with up to 128K output tokens per request, and Anthropic documents no long-context surcharge — a 900K-token prompt bills at the same per-token rate as a 9K one. It also accepts image input, so screenshots, charts, and scanned documents can flow through the same pipeline as text. One migration note worth budgeting for: Opus 4.7 and later use a newer tokenizer that produces roughly 30% more tokens for the same text than pre-4.7 models, so token counts (and therefore costs) will read higher than a like-for-like run on older Claude versions. On CaMeL Hub, claude-opus-4-8 is billed per token at $5 per 1M input and $25 per 1M output in the public default group, with streaming, function calling, and vision all enabled. The same API key works against both the OpenAI-compatible endpoint (point any OpenAI SDK at https://api.camel-hub.com/v1) and the Anthropic-native format, so tools like Claude Code connect without code changes. One account also covers GPT, Gemini, DeepSeek, and hundreds of other models behind the same base URL, and you can pay by Alipay, WeChat Pay, or international cards — with both top-up and subscription options.

What it is good for

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.

More from Anthropic

Compare with other models