# Claude Opus 4.7

Claude Opus 4.7 extends the Opus line with task budgets, an `xhigh` effort level, and stronger programmatic tool use with image libraries for long-running, multi-step knowledge work.

- **Model ID:** `anthropic/claude-opus-4.7`
- **Type:** chat
- **Providers:** anthropic, bedrock, vertexAnthropic
- **Context window:** 1,000,000
- **Maximum output tokens:** 128,000
- **Pricing:** $5/1M input tokens, $25/1M output tokens
- **Canonical page:** https://vercel.com/ai-gateway/models/claude-opus-4.7

## Supported parameters

Detailed capability metadata has not been reported for this model.

## Example

```ts
import { streamText } from 'ai'

const result = streamText({
  model: 'anthropic/claude-opus-4.7',
  prompt: 'Why is the sky blue?'
})
```

## About

Claude Opus 4.7 launched on AI Gateway on April 16, 2026. The model is optimized for long-running, asynchronous agents that execute complex, multi-step tasks. Over the 4.6 baseline, it strengthens knowledge-worker capabilities where visual verification of outputs matters and improves programmatic tool-calling with image-processing libraries.

Two API additions define the release. First, `taskBudget` lets you set token limits that cap individual agentic turns, bounding runaway cost on open-ended autonomous work. Second, adaptive thinking gains an `xhigh` effort level that sits between `high` and the `max` ceiling, giving finer-grained control over how deeply the model reasons. Thinking content is no longer returned by default; configure the display option when you want to surface it.

Claude Opus 4.7 handles pixel-level data transcription from charts and figures, high-resolution images for computer use and screenshot analysis, and document parsing where detail accuracy matters. Structured memory across conversation turns keeps state reliable over extended sessions.

Through AI Gateway, Claude Opus 4.7 is available with the standard unified API, observability, and provider routing. Set the model to `anthropic/claude-opus-4.7` in the AI SDK, Chat Completions API, Responses API, Messages API, or other API formats, from TypeScript or Python.

## What to consider

Thinking content is omitted from responses by default in Claude Opus 4.7. Configure the thinking display option explicitly when you want reasoning traces surfaced in the response.

## When to use

### Best For

- **Long-running asynchronous agents:** Multi-step workflows where `taskBudget` caps cost on open-ended autonomous execution
- **Visual verification tasks:** Knowledge work that requires pixel-level transcription from charts, figures, and technical diagrams
- **Computer use at high resolution:** Screenshot analysis, GUI automation, and document processing where image detail affects accuracy
- **Programmatic tool-calling with images:** Agents that invoke image-processing libraries as part of multi-step reasoning
- **Extended agent sessions:** Structured memory across turns keeps state reliable across long conversations

### Consider Alternatives When

- **Cost-sensitive production workloads:** Claude Sonnet 4.6 provides Opus-approaching intelligence at Sonnet pricing for high-volume traffic
- **Interactive low-latency use cases:** Claude Haiku 4.5 delivers faster responses for well-bounded high-throughput requests
- **Fixed thinking budget control:** Claude Opus 4.6 accepts fixed thinking budgets when you need deterministic compute per request rather than adaptive scaling

## Best for

- **Long-running asynchronous agents:** Multi-step workflows where `taskBudget` caps cost on open-ended autonomous execution
- **Visual verification tasks:** Knowledge work that requires pixel-level transcription from charts, figures, and technical diagrams
- **Computer use at high resolution:** Screenshot analysis, GUI automation, and document processing where image detail affects accuracy
- **Programmatic tool-calling with images:** Agents that invoke image-processing libraries as part of multi-step reasoning
- **Extended agent sessions:** Structured memory across turns keeps state reliable across long conversations

## Consider alternatives

- **Cost-sensitive production workloads:** Claude Sonnet 4.6 provides Opus-approaching intelligence at Sonnet pricing for high-volume traffic
- **Interactive low-latency use cases:** Claude Haiku 4.5 delivers faster responses for well-bounded high-throughput requests
- **Fixed thinking budget control:** Claude Opus 4.6 accepts fixed thinking budgets when you need deterministic compute per request rather than adaptive scaling

## Frequently asked questions

### What does the `taskBudget` parameter do?

It sets a token limit for an individual agentic turn, capping the maximum compute the model can use on open-ended autonomous work. Use it to bound runaway cost on long-running agents.

### How is the `xhigh` effort level different from `high`?

`xhigh` sits between `high` and `max`, offering deeper adaptive thinking than `high` without going to the `max` ceiling. Use it when the task warrants more depth than `high` provides but `max` would be overkill.

### Why don't I see reasoning traces in my responses?

Thinking content is omitted by default in Claude Opus 4.7. Configure the thinking display option (for example, `'summarized'`) when you want reasoning visible in the response.

### What makes Claude Opus 4.7 better for image-heavy agents?

High-resolution image support for computer use, screenshots, and documents, plus stronger programmatic tool-calling with image-processing libraries. The model also transcribes pixel-level data from charts and figures with higher fidelity.

### Does AI Gateway support Zero Data Retention for Claude Opus 4.7?

Yes, Zero Data Retention is available for this model. Zero Data Retention is offered on a per-provider basis. See https://vercel.com/docs/ai-gateway/capabilities/zdr for details.

### What is the pricing for Claude Opus 4.7?

Rates are listed on this page. They reflect the providers routing through AI Gateway and shift when providers update their pricing.

### How do I call Claude Opus 4.7 through AI Gateway?

Set the model to `anthropic/claude-opus-4.7` in the AI SDK, Chat Completions API, Responses API, Messages API, or other API formats, from TypeScript or Python. AI Gateway handles authentication, retries, and failover across `anthropic`, `bedrock`, `vertex`.

## Links

- [Model page](https://vercel.com/ai-gateway/models/claude-opus-4.7)
- [AI Gateway documentation](https://vercel.com/docs/ai-gateway)
- [Provider model documentation](https://docs.anthropic.com/claude/docs/models-overview)
- [Provider pricing](https://www.anthropic.com/pricing#anthropic-api)


If you encounter incorrect information, can’t find what you need, need a capability Vercel doesn’t currently offer, or have any other feedback to report, please do it by following the instructions at https://vercel.com/feedback.md.
