Claude 4 Opus API
Retiring soon. Migrate to Opus 4.8 or Sonnet 4.6.
💰 Save up to 70% vs official Anthropic pricingClaude 4 Opus — cheaper than the official Anthropic API
Access Claude 4 Opus through AI API Hub and pay less per token. Same OpenAI-compatible endpoint, lower cost.
Technical Specifications
| Provider | Anthropic |
| Model Family | Claude 4 Opus |
| Release Date | 2024-06 |
| Context Window | 200K |
| Max Output Tokens | 4,096 |
| Input Price | $15.00 / 1M tokens |
| Output Price | $75.00 / 1M tokens |
| Vision Support | Yes ✓ |
| Function Calling | Yes ✓ |
| JSON Mode | No |
| Streaming | No |
| Fine Tuning | Not Available |
| Status | Deprecated ⚠ |
Overview
Claude 4 Opus is Anthropic's previous-generation opus model, released in 2024-06. Retiring soon. Migrate to Opus 4.8 or Sonnet 4.6.
For developers, the headline numbers are a 200K context window and up to 4,096 output tokens per response — enough headroom for original claude 4 and retiring 2026-06-15 without chunking your input. Priced at $15.00/1M input and $75.00/1M output, it sits in the premium tier — best reserved for tasks where quality justifies the spend.
On the capability side, Claude 4 Opus exposes 2 features: Vision, Tool Use. Note that fine-tuning isn't supported — you'll work with the base model. Vision support means you can pass images alongside text, handy for document parsing or UI automation.
The practical appeal of routing Claude 4 Opus through AI API Hub is simplicity: one OpenAI-compatible endpoint, USDT & USDC payments, no credit card, and you're calling the API in under 30 seconds — just swap your base URL.
What Makes Claude 4 Opus Different
How Claude 4 Opus is used
Claude 4 Opus is used for agentic workflows combining visual understanding with action — document processing pipelines that extract data and call APIs, visual Q&A systems, and multimodal agents. Tool calling enables it to trigger external functions based on what it sees in images.
Pricing position within Anthropic
Claude 4 Opus sits in the middle of Anthropic's pricing at $15.00/1M input — 329% above the lineup average ($1.00 cheapest, $5.00 most expensive). 4 siblings cost less, 0 cost more. This mid-tier positioning makes it a sensible default when you're unsure which variant to pick.
Claude 4 Opus's role in the lineup
Within Anthropic's lineup, Claude 4 Opus is a mid-tier option — balanced between cost and capability. The opus family has 2 active variants, and Claude 4 Opus occupies the upper end. This makes it a safe default for production workloads where you're not sure which tier to pick.
Real-world use cases
Real-world deployments: document processing pipelines (read invoice → extract fields → call accounting API), visual Q&A systems, and multimodal agents that act on what they see. Claude 4 Opus handles the full see-decide-act loop in a single model call.
vs sibling models
What makes Claude 4 Opus different from sibling models: compared to Claude Opus 4.8 ($10.00/1M cheaper, 1M vs 200K context (larger)); Claude Sonnet 4.6 ($12.00/1M cheaper, 1M vs 200K context (larger)); Claude Haiku 4.5 ($14.00/1M cheaper, same 200K context). Choose Claude 4 Opus when vision input is needed.
API Examples
Python
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.apiyihe.org/v1"
)
response = client.chat.completions.create(
model="claude-4-opus",
messages=[
{"role": "user", "content": "Hello"}
]
)
print(response.choices[0].message.content)JavaScript / Node.js
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.API_KEY,
baseURL: "https://api.apiyihe.org/v1"
});
const response = await client.chat.completions.create({
model: "claude-4-opus",
messages: [
{ role: "user", content: "Hello" }
]
});
console.log(response.choices[0].message.content);cURL
curl https://api.apiyihe.org/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "claude-4-opus",
"messages": [
{"role": "user", "content": "Hello"}
]
}'Supported Features
| Vision / Image Input | ✅ Supported |
| Audio / Voice Input | ❌ Not Available |
| Function Calling | ✅ Supported |
| JSON Mode | ❌ Not Available |
| Streaming | ❌ Not Available |
| Fine-Tuning | ❌ Not Available |
| Multimodal | ❌ Not Available |
Benchmark Scores
| Benchmark | Score |
|---|---|
| MMLU | Not Publicly Available |
| GPQA | Not Publicly Available |
| SWE-Bench | Not Publicly Available |
| HumanEval | Not Publicly Available |
| GSM8K | Not Publicly Available |
| MATH | Not Publicly Available |
| MMMU | Not Publicly Available |
Pricing History
Claude 4 Opus was released in 2024-06 by Anthropic and is currently deprecated — consider upgrading to a newer model.
Current Pricing: $15.00 per 1M input tokens · $75.00 per 1M output tokens. Pay-as-you-go with no minimum commitment.
Pricing Model: Token-based billing (pay per use). No subscription fees. No hidden costs.
💡 Anthropic occasionally updates pricing. AI API Hub reflects current pricing in real-time. All prices in USD. Pay with USDT or USDC — no currency conversion fees.
Compare Alternatives
Frequently Asked Questions
What is Claude 4 Opus?
Claude 4 Opus is Anthropic's previous-generation opus model. Retiring soon. Migrate to Opus 4.8 or Sonnet 4.6. It offers a 200K context window and supports Vision, Tool Use. You can access it through AI API Hub using USDT or USDC — no credit card required.
How much does Claude 4 Opus cost?
Claude 4 Opus is priced at $15.00 per 1M input tokens and $75.00 per 1M output tokens, billed pay-as-you-go with no minimum. Through AI API Hub you can start with as little as $5 and scale from there.
Claude 4 Opus vs GPT-5.5?
They're built for different jobs. Claude 4 Opus costs $15.00/1M input with a 200K window; GPT-5.5 runs $5.00/1M input with 256K. GPT-5.5 is the cheaper option, while Claude 4 Opus trades cost for original claude 4. See the full side-by-side at /compare/claude-4-opus-vs-gpt-5.5/.
Claude 4 Opus context window?
Claude 4 Opus has a 200K context window, capable of processing up to 200,000 tokens in a single request. Maximum output tokens: 4,096.
Does Claude 4 Opus support function calling?
Yes, Claude 4 Opus supports function/tool calling, allowing you to define functions that the model can invoke. This enables AI agents, API integrations, and structured data extraction.
Is Claude 4 Opus multimodal?
Partially — Claude 4 Opus supports vision (image input) but not native audio processing.
Claude 4 Opus API rate limits?
Claude 4 Opus rate limits: 2K RPM. Higher tier plans offer increased throughput. For high-volume production use, consider Anthropic's faster variant models.
How to access Claude 4 Opus API?
Access Claude 4 Opus through AI API Hub: (1) Register at api.apiyihe.org/register?aff=8JZC, (2) Deposit USDT/USDC, (3) Get your API key instantly, (4) Use the OpenAI-compatible endpoint https://api.apiyihe.org/v1 with model name "claude-4-opus". Start building in under 30 seconds.