Claude Opus 4.1
Claude Opus 4.1 is deprecated and will stop answering on 5 August 2026. It is also the most expensive model in the catalog at $15 in / $75 out per million tokens — three times the price of Opus 5 for a 200K context window and a 32K output cap. Migrate to Claude Opus 5 before the retirement date.Retires 5 Aug 2026
View API reference- Input / output price
- From $15 / $75 per 1M
- Context
- 200K tokens
- Max output
- 32K tokens
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.onefoldhq.com/v1",
apiKey: process.env.ONEFOLD_API_KEY,
});
const result = await client.chat.completions.create({
model: "anthropic/claude-opus-4-1",
messages: [{ role: "user", content: "Why is the sky blue?" }],
});
console.log(result.choices[0].message.content);from openai import OpenAI
client = OpenAI(
base_url="https://api.onefoldhq.com/v1",
api_key=os.environ["ONEFOLD_API_KEY"],
)
result = client.chat.completions.create(
model="anthropic/claude-opus-4-1",
messages=[{"role": "user", "content": "Why is the sky blue?"}],
)
print(result.choices[0].message.content)curl https://api.onefoldhq.com/v1/chat/completions \
-H "Authorization: Bearer $ONEFOLD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-opus-4-1",
"messages": [{ "role": "user", "content": "Why is the sky blue?" }]
}'Playground
Try out Claude Opus 4.1 by Anthropic. Usage is billed to your team at API rates.
Claude Opus 4.1
Providers
Route to any available provider. One request shape for all of them, and the router picks on price, health and latency.
| Provider | Context | Max output | Latency | Throughput | Input | Output | Cache |
|---|---|---|---|---|---|---|---|
| 200K | 32K | 0.9 s | 52 tps | $15/M | $75/M | Read$1.50/MWrite$18.75/M | |
| 200K | 8K | 1.6 s | 52 tps | $15/M+3 more | $75/M+3 more | Read$1.50/MWrite$18.75/M | |
| 200K | 8K | 1.1 s | 43 tps | $15/M+3 more | $75/M+3 more | Read$1.50/MWrite$18.75/M |
Uptime 24 hours
Direct request success rate on Onefold and per-provider. Visit the docs for more info.
| Series | Low | Typical | High |
|---|---|---|---|
| Onefold | 100.00% | 100.00% | 100.00% |
| Anthropic | 99.60% | 99.95% | 99.97% |
| Bedrock | 99.78% | 99.95% | 99.97% |
| Google Vertex AI | 99.60% | 99.95% | 99.98% |
- 1Onefold100.00%
- 2Bedrock99.95%
- 3Anthropic99.95%
- 4Google Vertex AI99.95%
Status 24 hours
Reliability of providers. Visit the docs for more info.
Onefold100.00%
Anthropic99.95%Bedrock99.95%
Google Vertex AI99.95%
| Provider | Uptime | Operational windows | Degraded windows | Outage windows |
|---|---|---|---|---|
| Onefold | 100.00% | 96 | 0 | 0 |
| Anthropic | 99.95% | 96 | 0 | 0 |
| Bedrock | 99.95% | 96 | 0 | 0 |
| Google Vertex AI | 99.95% | 96 | 0 | 0 |
Throughput 24 hours
P50 throughput on live gateway traffic, in tokens per second (TPS). Visit the docs for more info.
| Series | Low | Typical | High |
|---|---|---|---|
| Anthropic | 46.43 tps | 49.10 tps | 52.84 tps |
| Bedrock | 50.30 tps | 51.56 tps | 55.11 tps |
| Google Vertex AI | 62.91 tps | 66.41 tps | 69.92 tps |
- 1Google Vertex AI66.41 tps
- 2Bedrock51.56 tps
- 3Anthropic49.10 tps
Latency 24 hours
P50 time to first token (TTFT) on live gateway traffic, in seconds. View the docs for more info.
| Series | Low | Typical | High |
|---|---|---|---|
| Anthropic | 1.10 s | 1.20 s | 1.29 s |
| Bedrock | 0.85 s | 1.01 s | 1.06 s |
| Google Vertex AI | 1.25 s | 1.31 s | 1.44 s |
- 1Bedrock1.01 s
- 2Anthropic1.20 s
- 3Google Vertex AI1.31 s
Pricing with caching
What input tokens cost as more of your prefix is reused. Cached input bills at $1.50 per million instead of $15.
Chart requires JavaScript. The figures are in the table below.
- Blended input rate
- List price
View as table
| Cache hit ratio | 0% | 25% | 50% | 75% | 90% |
|---|---|---|---|---|---|
| Blended input rate | $15 | $11.63 | $8.25 | $4.88 | $2.85 |
| List price | $15 | $15 | $15 | $15 | $15 |
| Cache hit ratio | Blended input | Saving | 1M in + 1M out |
|---|---|---|---|
| 0% | $15/M | — | $90 |
| 25% | $11.63/M | 22% | $86.63 |
| 50% | $8.25/M | 45% | $83.25 |
| 75% | $4.88/M | 68% | $79.88 |
| 90% | $2.85/M | 81% | $77.85 |
Getting started
Call Claude Opus 4.1 through Onefold with any OpenAI-compatible client by changing the base URL. Onefold authenticates the request and routes it to an available provider.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.onefoldhq.com/v1",
apiKey: process.env.ONEFOLD_API_KEY,
});
const result = await client.chat.completions.create({
model: "anthropic/claude-opus-4-1",
messages: [{ role: "user", content: "Why is the sky blue?" }],
});
console.log(result.choices[0].message.content);Streaming
Stream tokens as they are produced. The gateway never buffers the upstream response.
const stream = await client.chat.completions.create({
model: "anthropic/claude-opus-4-1",
messages: [{ role: "user", content: "Summarise this document." }],
stream: true,
});
for await (const chunk of stream) {
process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}Image input
Send images alongside text as message parts. Images count as input tokens.
const result = await client.chat.completions.create({
model: "anthropic/claude-opus-4-1",
messages: [
{
role: "user",
content: [
{ type: "text", text: "Describe this image." },
{ type: "image_url", image_url: { url: "https://example.com/photo.jpg" } },
],
},
],
});Top-level parameters
The same Claude Opus 4.1 request in every API format Onefold supports.
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model id in the form creator/model, here anthropic/claude-opus-4-1. Onefold routes the request to an available provider. |
| messages | Message[] | Yes | The conversation so far. System, user, assistant and tool roles are all accepted and translated into the provider dialect. |
| max_tokens | number | No | Hard cap on generated tokens. Claude Opus 4.1 supports up to 32,000. Thinking tokens count toward this limit. |
| stream | boolean | No | Stream the response as server-sent events. The gateway streams byte by byte rather than buffering the upstream response. |
| temperature | number | No | Sampling temperature. Passed through to the provider unchanged. |
| tools | Tool[] | No | Tool definitions in OpenAI shape. Translated into the provider native format, including parallel tool calls. |
Input limits
| Input | Formats | Sources | Limits |
|---|---|---|---|
| Text | — | — | Prompt and response share the 200K-token context window |
| Image | png, jpeg, webp, gif | URL, base64 | Sent as image parts in messages; counts as input tokens |
| URL, base64 | Sent as file parts in messages; counts as input tokens |
Capabilities
- Streaming
- Tool use
- Vision
- PDF input
- Citations
- Structured outputs
- Extended thinking
- Prompt caching
- Batch API
Accepted parameters
- max_tokens
- stream
- stop_sequences
- system
- tools
- tool_choice
- thinking
- temperature
- top_p
- top_k
- output_config.format
Specification
- Model id
- anthropic/claude-opus-4-1
- Upstream id
- claude-opus-4-1
- Modalities
- Text, Image in · Text out
- Context window
- 200,000 tokens
- Max output
- 32,000 tokens
- API dialect
- anthropic, translated for you
- Knowledge cutoff
- Jan 2025
- Min cacheable prefix
- 1,024 tokens
- Available on
- Anthropic, Bedrock, Google Vertex AI
Similar models
Switch between any of them by changing the model string.
| Model | Context | Input | Output |
|---|---|---|---|
| 1M | $10/M | $50/M | |
| 1M | $5/M | $25/M | |
| 1M | $5/M | $25/M |
About Claude Opus 4.1
Claude Opus 4.1 is deprecated and will stop answering on 5 August 2026. It is also the most expensive model in the catalog at $15 in / $75 out per million tokens — three times the price of Opus 5 for a 200K context window and a 32K output cap. Migrate to Claude Opus 5 before the retirement date.
It speaks the anthropic dialect and reaches 3 platforms through Onefold. Its knowledge is most reliable through Jan 2025. Anthropic released it on 5 Aug 2025.
What to consider when choosing a provider
- Output ceiling: platforms cap output independently of the model. Anthropic allows 32K. Bedrock allows 8K. Google Vertex AI allows 8K.
- Authentication: Onefold authenticates requests with one key. You do not manage provider credentials directly.
- Dialect: this model speaks anthropic. You never write it — the gateway accepts OpenAI-shaped requests and translates at the edge.
When to use Claude Opus 4.1
Best for
- Nothing new. Move existing traffic to Claude Opus 5.
- Agentic tool use: parallel tool calls, translated to the native format
Consider alternatives when
- Cost is the constraint: Claude Fable 5 runs at $10/M input
- Cost is the constraint: Claude Opus 5 runs at $5/M input
- You need more context: Claude Fable 5 carries 1M
- Latency dominates: a lighter model in the same family answers sooner
- The task is narrow: a smaller model hits the same bar for less on well-scoped work
Frequently asked questions
What does Claude Opus 4.1 cost?
$15 per million input tokens and $75 per million output tokens, which is Anthropic's published list price. Onefold adds a flat 5% routing fee on top, billed from prepaid credits. Cached input is far cheaper at $1.50 per million tokens.
What is the context window for Claude Opus 4.1?
200,000 tokens of context, with up to 32,000 tokens in a single response. Its knowledge is most reliable through Jan 2025.
How do I call Claude Opus 4.1?
Point any OpenAI-compatible client at https://api.onefoldhq.com/v1 and pass "anthropic/claude-opus-4-1" as the model string. There is no SDK to install, we translate the request into Anthropic's anthropic dialect on the way out and the response stream back on the way in.
How is prompt caching billed?
Reading from cache costs $1.50 per million tokens, one tenth of the list input price. Writing to a five-minute cache costs $18.75 (1.25× list), and a one-hour cache costs $30 (2× list). Prefixes shorter than 1,024 tokens will not cache at all.
Which API dialect does Claude Opus 4.1 speak?
The anthropic dialect. You never write it: the gateway accepts OpenAI-shaped requests and translates them at the edge, streaming byte by byte rather than buffering. Switching to a model on a different dialect means changing the model string and nothing else.
Is Claude Opus 4.1 being retired?
Yes. Anthropic retires this model on 5 Aug 2026, after which requests will fail. Move to a current model before then.