Claude 4.7 Opus API

Claude 4.7 Opus on AIMLAPI.

Modalities
TextText
In / Out price
$5/$25per 1M
Context window
1M tokens
Released
Apr 16, 2026

Claude 4.7 Opus overview

The pelican test: one prompt, every text model, unedited SVG output from Nov 3, 2026.

SVG of a pelican riding a bicycle, written by Claude 4.7 Opus through AI/ML API

Claude 4.7 Opus specs

Model ID
anthropic/claude-opus-4-7
Developer
Anthropic
Context window
1,000,000 tokens
Max output
128,000 tokens
Input
Text
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.

Long-document analysis
Summarize and extract from contracts, papers, and reports without aggressive chunking.

Use cases

Claude Opus 4.7 is documented as suited to hard coding work, including advanced software engineering and complex code reasoning tasks.

It is also suited to long-running agentic tasks and workflows that require staying on track over longer horizons.

The model is documented for professional knowledge work such as document creation, financial analysis, slides, data visualization, and multi-step research workflows.

It is additionally suited to visual understanding tasks, including reading dense screenshots, extracting data from complex diagrams, and working with charts, dense documents, and screen UIs where fine detail matters.

Capabilities

  • Streaming

Claude 4.7 Opus benchmarks by Artificial Analysis

See how Claude 4.7 Opus compares in generation speed and latency. Data retrieved Nov 3, 2026.

Speed

Output tokens / second

Benchmark results

Compare 15 models available on AI/ML API across 5 independent benchmarks.

Humanity's Last Exam

Expert-written questions across academic subjects.

Claude 4.7 Opus API pricing

Claude 4.7 Opus pricing in US dollars
UsagePriceUnit
Input$51M tokens
Output$251M tokens
Cached input$0.51M tokens

Prices from the AI/ML API price list, checked on Nov 4, 2026.

Claude 4.7 Opus vs other models: token prices

AI/ML API input and output rates for 5 models, per million tokens.

AI/ML API model prices in USD per million tokens
ModelInputOutput
Claude 4.7 Opus$5$25
Claude Haiku 5.5$0.1$0.5
Claude Sonnet 5.5$2$10
Claude Opus 5.5$4$20
Claude Fable 5.1$10$50

How to use the Claude 4.7 Opus API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "anthropic/claude-opus-4-7",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'

Related articles

All posts

Claude 4.7 Opus FAQ

What is the context window of Claude 4.7 Opus?

Claude 4.7 Opus has a 1,000,000 tokens context window and can return up to 128,000 tokens.

What inputs and outputs does Claude 4.7 Opus support?

Claude 4.7 Opus takes text as input and returns text.

What is the model ID for Claude 4.7 Opus?

Use anthropic/claude-opus-4-7 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

When was Claude 4.7 Opus released?

Claude 4.7 Opus became available on April 16, 2026.

How much does Claude 4.7 Opus cost?

Claude 4.7 Opus costs $5 input and $25 output per 1M tokens on AI/ML API, billed as you go with no subscription.

Does Claude 4.7 Opus support streaming?

Yes, Claude 4.7 Opus can stream responses as they are generated.

Who created Claude 4.7 Opus?

Claude 4.7 Opus was built by Anthropic.

Start building with Claude 4.7 Opus

Claude 4.7 Opus API

anthropic/claude-opus-4-7

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "anthropic/claude-opus-4-7",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'