LLM API
AnthropicText generationReleased August 5, 2025

Claude Opus 4.1

Claude Opus 4.1 costs $15 per 1M input tokens and $75 per 1M output tokens on LLM API, with a 200K-token context window.

Pricing

Served by AWS Bedrock, the only provider.

Claude Opus 4.1 prices on LLM API
Input$15per 1M tokens
Output$75per 1M tokens
Cache read$1.5per 1M tokens
Web search$0.01per search

Features

  • ToolsYes
  • Parallel tool callsNo
  • Image inputYes
  • ReasoningYes
  • Prompt cachingYes
  • Structured outputsYes
  • JSON modeYes
  • StreamingYes
  • Web searchNo
  • Also acceptsclaude-opus-4.1

Call Claude Opus 4.1

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-1-20250805",
    max_tokens=4096,
    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