LLM API
AnthropicText generationReleased April 16, 2026

Claude Opus 4.7

Claude Opus 4.7 costs $5 per 1M input tokens and $25 per 1M output tokens on LLM API, with a 1M-token context window.

Pricing

Lowest price among 2 providers, after discounts.

Claude Opus 4.7 prices on LLM API
Input$5per 1M tokens
Output$25per 1M tokens
Cache read$0.5per 1M tokens
Cache write, 5 minutes$6.25per 1M tokens
Cache write, 1 hour$10per 1M tokens
Web search$0.01per search

Providers

Prices after each provider’s discount; the lowest in bold.

Providers of Claude Opus 4.7 on LLM API
Anthropic$5$25$0.51M128K
AWS Bedrock$5$25$0.51M128K

Features

“Some providers”: not every provider of this model supports it.

  • ToolsYes
  • Parallel tool callsNo
  • Image inputYes
  • ReasoningYes

    Levels: low, medium, high, max

  • Prompt cachingYes
  • Structured outputsSome providers
  • JSON modeYes
  • StreamingYes
  • Web searchYes
  • Also acceptsclaude-opus-4.7

Call Claude Opus 4.7

POST /v1/messagesSet LLMAPI_KEY to your LLM API key.Anthropic Messages docs

import os

import anthropic

client = anthropic.Anthropic(
    base_url="https://api.llmapi.ai",
    api_key=os.environ["LLMAPI_KEY"],
)

message = client.messages.create(
    model="claude-opus-4-7",
    max_tokens=16000,
    messages=[{"role": "user", "content": "Hello"}],
)
for block in message.content:
    if block.type == "text":
        print(block.text)

More from Anthropic

All Anthropic text models

Prices synced .

You've been invited to LLM API

Top up $50 or more and the friend who invited you gets $20 in credits. We pay the $20; your credits stay yours. Referral terms

Sign up