Skip to content

Models / Anthropic

Claude Opus 4.7

Available

Claude Opus 4.7 is an Opus model that Anthropic released on 16 April 2026 for advanced software engineering and long-running coding tasks.

Good for Coding agents · Hard reasoning · Long context · Images and screenshots

claude-opus-4-7Get API keyCompare

Is it right for you?

Newer models exist: Claude Opus 4.8, Claude Opus 5 and Claude Opus 5.5, the current Opus model. Anthropic lists Opus 4.7 as a legacy model. It reads text and images, writes text, and Anthropic lists 1M tokens of context. Pick it over the newer ones when you need its exact behaviour.

Best for

  • Long, multi-file coding tasks, which is what Anthropic built this model for.
  • Setups already tuned on Opus 4.7, including its effort settings.
  • Reading high-resolution screenshots: Anthropic lists image input up to 2,576 pixels on the long edge.

Not ideal for

  • New projects: Claude Opus 5.5 is the current Opus model, with a later knowledge cutoff (June 2026 against January 2026).
  • Quick edits and renames: higher effort levels use more output tokens.
  • Cost comparisons with older models: Anthropic says the updated tokenizer can use about 1.0 to 1.35 times more tokens for the same input.

Next to the rest of the Anthropic line

ModelInputOutputContextPer session
Claude Fable 5$13.2864$66.4318195K$4.2251
Claude Fable 5.1$13.2864$66.4318195K$3.7468
Claude Opus 4.6$6.2003$31.0015195K$1.9717
Claude Opus 4.7 (this page)$6.2003$31.0015195K$1.9717
Claude Opus 4.8$6.2003$31.0015195K$1.9717
Claude Opus 5$6.2003$31.0015195K$1.9717

What it costs

Prepaid, per token, no subscription. Set your traffic to see your bill.

percent of input tokens
Estimated monthly spend
$2,180.03

30 days, at today's prices. You're billed on actual tokens.

Per request
$0.036334
Coding session
$1.97
Per day
$72.67
Suggested key budget
$2,510.00
Alert at 80%
$2,008.00

A coding session is 30 requests of 20,000 input tokens, 80% from cache, and 1,000 output tokens each: the same session as the "Per session" column above. Thinking tokens are billed as output, so reasoning raises the cost.

Cached input. When the provider serves part of a prompt from its cache, those tokens are billed at the cache-read price instead of the input price. Writing a prompt into the cache is billed at the cache-write price. Separately, an exact repeat of a recent request is answered from Yunshu’s own cache and not charged.

Capabilities

What Claude Opus 4.7 can do, as Anthropic lists it.

Get started

Create a key in the console, export it as YUNSHU_API_KEY, then use one of these.

curl https://api.yunshurouter.com/v1/chat/completions \
  -H "Authorization: Bearer $YUNSHU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-4-7",
    "messages": [{"role": "user", "content": "Write a Python function that checks if a string is a palindrome."}]
  }'

Full steps for each tool: integration guides →

Questions

What is Claude Opus 4.7?

Claude Opus 4.7 is an Opus model from Anthropic for advanced software engineering and long-running coding tasks. It is now a legacy model. See the Anthropic page for the rest of the family.

Does Claude Opus 4.7 support tool calling?

Yes. Send tools in OpenAI format to /v1/chat/completions or in Anthropic format to /v1/messages. Through the Responses API (used by Codex) only function tools are passed through.

Does Claude Opus 4.7 support reasoning?

Yes. Anthropic lists adaptive thinking, steered by effort: low, medium, high, xhigh, max. The xhigh level sits between high and max and was added with this model. Anthropic’s default is high, and its guidance is to start with xhigh for coding and agentic work. With no thinking setting, Anthropic lists thinking as off.

Is there a newer model than Claude Opus 4.7?

Yes. Newer Opus models are Claude Opus 4.8, Claude Opus 5 and Claude Opus 5.5, the current one. Anthropic lists the same context and output limits for all of them. Opus 4.7 has a January 2026 knowledge cutoff; Opus 5.5 has June 2026. Still pick Claude Opus 4.7 if your prompts or evals are pinned to its behaviour. Anthropic lists retirement for it not sooner than 16 April 2027.