claude-opus-4-7 API

At provider list price streamingvisionfunction-calling

Claude Opus 4.7 is Anthropic's Opus-class model with a 1M-token context window and 128K max output. On CaMeL Hub you call it through an OpenAI-compatible API (base_url https://api.camel-hub.com/v1) at $5 per 1M input tokens and $25 per 1M output tokens — just swap the base URL in your existing SDK and use the model name claude-opus-4-7.

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
Capabilities
streaming, vision, function-calling
Endpoints
anthropic, openai
Claude Opus 4.7 sits in the Opus line — the tier Anthropic builds for its hardest reasoning and agentic-coding workloads. It was the first Opus generation to ship with a 1M-token context window at standard per-token pricing (no long-context surcharge tier), a 128K-token maximum output, and a January 2026 knowledge cutoff, which keeps its answers about recent frameworks, APIs, and library versions unusually current for a model in this class. One behavior worth budgeting for: Opus 4.7 introduced a newer tokenizer that produces roughly 30% more tokens for the same text than pre-4.7 Claude models. That tokenizer contributes to its stronger task performance, but it means a prompt that measured 100K tokens on Opus 4.6 can land noticeably higher here — estimate costs against this model's own token counts, not older ones. Latency is moderate: slower than Sonnet or Haiku tiers, appropriate for depth-first work rather than high-QPS chat. At $5 per 1M input tokens and $25 per 1M output tokens on CaMeL Hub, Opus 4.7 occupies the same price band as the newest Opus releases, so choosing it is usually about output stability — teams that validated pipelines against this exact snapshot can keep it pinned instead of re-testing on a newer model. CaMeL Hub serves it over both the OpenAI-compatible endpoint (point any OpenAI SDK at https://api.camel-hub.com/v1) and the native Anthropic Messages format, with streaming, image input, and function calling supported on both. Billing is per-token with input and output metered separately, and you can top up with Alipay, WeChat Pay, or international cards.

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-7",
    "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-7",
    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-7",
  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.7 billed on CaMeL Hub?

Per token, with input and output metered separately: $5 per 1M input tokens and $25 per 1M output tokens. There is no per-request fee — a call that reads 20K tokens and writes 2K tokens costs 20,000 × $5/1M + 2,000 × $25/1M = $0.15. Usage is deducted from your prepaid balance or subscription quota and every request is itemized in the console logs.

Does claude-opus-4-7 support streaming, images, and function calling?

Yes to all three. Set stream: true for token-by-token streaming, pass images (screenshots, diagrams, photos) as input for vision tasks, and define tools/functions for structured tool calls. All of this works through both the OpenAI-compatible endpoint and the native Anthropic Messages endpoint on CaMeL Hub.

What are the context window and output limits?

Anthropic documents a 1M-token context window and a 128K-token maximum output for Claude Opus 4.7. Note that Opus 4.7 uses a newer tokenizer that yields roughly 30% more tokens for the same text than earlier Claude models, so measure long inputs against this model's own token counts when planning around the limit.

How do I start calling claude-opus-4-7?

Register at https://api.camel-hub.com/console, create an API key, then point any OpenAI SDK at base_url https://api.camel-hub.com/v1 with model set to claude-opus-4-7. No code changes beyond the base URL and key — the same key also works against the Anthropic-native Messages route if you prefer that format.

When should I pick Opus 4.7 over a Sonnet or Haiku model?

Pick Opus 4.7 when the task rewards maximum reasoning depth — large-codebase work, long-document synthesis, or agent loops that must recover from their own mistakes. For high-volume, latency-sensitive traffic like chat or classification, a Sonnet- or Haiku-class model on the same endpoint costs a fraction as much; you can A/B both by changing only the model string.

More from Anthropic