Claude 4 Opus API
Retiring soon. Migrate to Opus 4.8 or Sonnet 4.6.
💰 Save up to 70% vs official Anthropic pricingTechnical 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 opus-class AI model, released in 2024-06. Retiring soon. Migrate to Opus 4.8 or Sonnet 4.6.
With a 200K context window and maximum output of 4,096 tokens, Claude 4 Opus is well-suited for original claude 4 and retiring 2026-06-15. At $15.00/1M input and $75.00/1M output, it offers premium pricing within the Anthropic ecosystem.
Claude 4 Opus supports 2 capabilities: Vision, Tool Use. Fine-tuning is not available for this model. The model serves as an original claude 4 solution for developers building multimodal AI applications.
Through AI API Hub, you can access Claude 4 Opus with USDT & USDC payments, no credit card required. All via a fully OpenAI-compatible API — just change your base URL and start building in 30 seconds.
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"}
]
}'Compare Alternatives
Frequently Asked Questions
What is Claude 4 Opus?
Claude 4 Opus is Anthropic's previous opus model. Retiring soon. Migrate to Opus 4.8 or Sonnet 4.6.. It features a 200K context window, supports Vision, Tool Use, and is available through AI API Hub with USDT/USDC payments.
How much does Claude 4 Opus cost?
Claude 4 Opus pricing: $15.00 per 1M input tokens, $75.00 per 1M output tokens. Pay-as-you-go with no minimum commitment. Sign up at AI API Hub and start with as little as $5.
Claude 4 Opus vs GPT-5.5?
Claude 4 Opus: $15.00/$1M input, 200K context. GPT-5.5: $5.00/$1M input, 256K context. Claude 4 Opus is priced higher for premium performance. Original Claude 4. Compare them 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.