Skip to main content

Maximum
anthropic/claude-opus-4.7/chat

Anthropic's Claude Opus 4.7 chat API delivers 1,000,000 input tokens, 128,000 output tokens, high-resolution vision input, and four reasoning levels.

Input $4.25Output $21.25per 1 million tokensCached input $0.425Cache write $5.3125

Workbench

Claude Opus 4.7

What can Claude Opus 4.7 help with?

Missing the model you need?

LONG-CONTEXT CREATIVE & VISION API

Claude Opus 4.7 API at a glance

Million-token dialogue, creative writing, and high-detail vision with four reasoning tiers.

Context window
1M
1,000,000 tokens for manuscripts, lore, or code
Reply ceiling
128K
Generate full chapters or long technical specs
Image input
HD Img
Reads fine details in dense image_url uploads

Results

What Claude Opus 4.7 is good at

  • Continuity

    Keep full books and character arcs in memory

    Claude Opus 4.7 holds up to 1,000,000 tokens of lore, transcripts, or technical specs while emitting up to 128,000 tokens in a single response.

  • Vision

    Sharper reading of dense images and diagrams

    Upgraded from Opus 4.6 for higher-resolution visual inputs, Claude Opus 4.7 extracts fine labels, layout details, and annotations via image_url.

  • Flexibility

    Verified permissive adult fiction handling

    Live L2–L4 checks passed adult creative-writing prompts cleanly, making Claude Opus 4.7 a strong choice for interactive fiction and roleplay apps.

Before you run it

What to know before you run Claude Opus 4.7

Chat
Claude Opus 4.7 accepts text and image_url parts; video and audio clips are not supported on this endpoint.
Chat
Although live checks passed adult fiction, lawful consensual adult content rules still apply and minors are strictly prohibited.

Use cases

What to build with the Claude Opus 4.7 API

  • Power long-session interactive fiction and roleplay

    Cache world settings and character cards once, then run hundreds of coherent dialogue turns without mid-story tone drift.

  • Analyze high-density visual documents

    Combine annotated floor plans, UI mockups, or dense PDF page images with structured questions inside one thread.

Prompts

Claude Opus 4.7 prompt examples you can copy

  • Chat

    Continue a multi-chapter scene in consistent voice

    Using the attached character sheet and prior chapter notes, continue the dialogue from Elena's perspective while preserving her guarded tone and unresolved suspicion.

    Why it works. Showcases Claude Opus 4.7's long-context narrative fidelity and natural dialogue pacing.

    Try this prompt

Pricing

Claude Opus 4.7 API pricing

From $4.25 per million input tokens and $21.25 per million output tokens.

Get started

How to use the Claude Opus 4.7 API in three steps

  1. Step 1

    Use low effort for natural conversation flow

    In interactive writing or roleplay loops, low or medium reasoning_effort keeps replies responsive without over-deliberating every beat.

  2. Step 2

    Cache stable lore or reference docs

    Keep static system prompts and character sheets identical across turns so Claude Opus 4.7 hits the lower cache-read rate.

Parameter reference and code samples are in the API and Readme tabs at the top of this page.

FAQ

Claude Opus 4.7 API FAQ

About Claude Opus 4.7

Choose Claude Opus 4.7 when you want Anthropic's 1M-token context, sharper vision, and verified permissive performance for long-form writing, roleplay, and visual tasks.

All Claude models13

Related models and next tasks