anthropic/claude-opus-4.7

Anthropic: Claude Opus 4.7

Context length
1000K
Input / 1M tokens
$5.00
Output / 1M tokens
$25.00
Released
2026-04-16
Modality
text+image+file->text

About Anthropic: Claude Opus 4.7

Opus 4.7 is the next generation of Anthropic's Opus family, built for long-running, asynchronous agents. Building on the coding and agentic strengths of Opus 4.6, it delivers stronger performance on...

Call Anthropic: Claude Opus 4.7

Via OpenRouter: one base URL for every provider.

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anthropic/claude-opus-4.7",
    "messages": [{"role": "user", "content": "Say hello"}]
  }'

Direct on Anthropic:

curl https://api.anthropic.com/chat/completions \
  -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-4.7",
    "messages": [{"role": "user", "content": "Say hello"}]
  }'

Anthropic keys

OpenRouter keys

OpenRouter keys work for anthropic/claude-opus-4.7 regardless of the upstream provider.