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.
| Input | $15 | per 1M tokens |
|---|---|---|
| Output | $75 | per 1M tokens |
| Cache read | $1.5 | per 1M tokens |
| Web search | $0.01 | per 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)import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://api.llmapi.ai",
apiKey: process.env.LLMAPI_KEY,
});
const message = await client.messages.create({
model: "claude-opus-4-1-20250805",
max_tokens: 4096,
messages: [{ role: "user", content: "Hello" }],
});
for (const block of message.content) {
if (block.type === "text") console.log(block.text);
}curl https://api.llmapi.ai/v1/messages \
-H "x-api-key: $LLMAPI_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{
"model": "claude-opus-4-1-20250805",
"max_tokens": 4096,
"messages": [{"role": "user", "content": "Hello"}]
}'POST /v1/chat/completionsSet LLMAPI_KEY to your LLM API key.Chat Completions docs
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.llmapi.ai/v1",
api_key=os.environ["LLMAPI_KEY"],
)
response = client.chat.completions.create(
model="claude-opus-4-1-20250805",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.llmapi.ai/v1",
apiKey: process.env.LLMAPI_KEY,
});
const response = await client.chat.completions.create({
model: "claude-opus-4-1-20250805",
messages: [{ role: "user", content: "Hello" }],
});
console.log(response.choices[0].message.content);curl https://api.llmapi.ai/v1/chat/completions \
-H "Authorization: Bearer $LLMAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-opus-4-1-20250805",
"messages": [{"role": "user", "content": "Hello"}]
}'More from Anthropic
All Anthropic text models
Claude Fable 5.2claude-fable-5-2$8 / $40per 1M input / output
Claude Opus 5.5claude-opus-5-5$4 / $20per 1M input / output
Claude Sonnet 5.5claude-sonnet-5-5$2 / $10per 1M input / output
Prices synced .