Anthropic logo
Anthropic

Claude Opus 4-1

Anthropic's most powerful model, achieving top-tier performance in complex reasoning, creative writing, and deep analysis tasks

Category Text Model ID claude-opus-4-1-20250805
Context Length200K tokens
Model TypeLarge Language Model (LLM)
MultimodalSupports text, image, and PDF input

ๅฎšไปทไธŽ่ง„ๆ ผ

๐Ÿ’ฐ ๅฎšไปท

่พ“ๅ…ฅ$15 / M tokens
่พ“ๅ‡บ$75 / M tokens

โš™๏ธ ่ง„ๆ ผ

Context Length200K tokens
Model TypeLarge Language Model (LLM)
MultimodalSupports text, image, and PDF input
Training Cutoff DateMay 2025

API ่ฐƒ็”จ็คบไพ‹

Python

from openai import OpenAI

client = OpenAI(
    base_url="https://api.xairouter.com/v1",
    api_key="your-api-key"
)

response = client.chat.completions.create(
    model="claude-opus-4-1-20250805",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)

cURL

curl https://api.xairouter.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "claude-opus-4-1-20250805",
    "messages": [
      {"role": "user", "content": "Hello!"}
    ]
  }'