claude-opus-4-6 API
Claude Opus 4.6 is Anthropic's Opus-class frontier model with a 1M-token context window. Call it on CaMeL Hub via the OpenAI-compatible API (base_url https://api.camel-hub.com/v1) for $5 per 1M input tokens and $25 per 1M output tokens — pure pay-as-you-go, no monthly minimum.
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
- Capabilities
- streaming, vision, function-calling
- Endpoints
- anthropic, openai
What it is good for
- Whole-repository code review and multi-file refactoring — load an entire codebase into the 1M-token window and get globally consistent edits
- Long-running agent loops that chain dozens of tool calls (search, code execution, external APIs) through function calling
- Single-pass analysis of contracts, filings, and technical documentation spanning hundreds of pages
- Vision workflows: extracting structured data from screenshots, scanned documents, charts, and UI mockups
- Drafting long structured deliverables — specs, migration plans, research reports — using the 128K output ceiling
- Pinned-snapshot production deployments where model behavior must stay stable for months
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-6",
"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-6",
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-6",
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-6 billed on CaMeL Hub?
Purely per token, with input and output priced separately: $5 per 1M input tokens and $25 per 1M output tokens. There is no per-request fee and no monthly minimum — you pay only for the tokens each call actually consumes, and every request is itemized in the console.
Does it support streaming, function calling, and image input?
Yes to all three. You can stream responses token by token (stream: true), define tools for function calling, and send images alongside text for vision tasks. Each works through CaMeL Hub the same way it does with a standard OpenAI-style or Anthropic-style client.
What are the context window and maximum output?
Claude Opus 4.6 accepts up to 1,000,000 tokens of context and can generate up to 128,000 output tokens per request. Per Anthropic's documentation, the full window is billed at the standard per-token rate — there is no long-context surcharge tier for this model.
How do I start using it?
Create an account at https://api.camel-hub.com/console, generate an API key, then point any OpenAI SDK at base_url https://api.camel-hub.com/v1 with model "claude-opus-4-6". If your code targets the Anthropic Messages API instead, the native endpoint format is also supported — no other changes needed.
How does Opus 4.6 differ from the newer Opus 4.7 and 4.8?
It lists at the same $5/$25 per-1M-token rate but is one to two generations older, with a reliable knowledge cutoff of May 2025 (training data through August 2025). It also keeps the earlier Claude tokenizer — Anthropic notes the tokenizer introduced with Opus 4.7 produces roughly 30% more tokens for the same text, so identical prompts generally tokenize more compactly on Opus 4.6. Choose it for stable, well-understood behavior; choose 4.8 for the freshest capabilities.