Back to All Models
Anthropic · Reasoning

Claude Opus 4.1

anthropic/claude-opus-4.1
Use Model Now

Claude Opus 4.1 is an updated version of Anthropic’s flagship model, offering improved performance in coding, reasoning, and agentic tasks.

Input Price / 1M Tokens
$17.25
Output Price / 1M Tokens
$86.25
Context Window
200K
VisionToolsReasoning
Python Example — anthropic/claude-opus-4.1
from openai import OpenAI

client = OpenAI(
    base_url="https://relaystack-ai.vercel.app/v1",
    api_key="sk-rs-your-key-here",
)

response = client.chat.completions.create(
    model="anthropic/claude-opus-4.1",
    messages=[{"role": "user", "content": "Hello from RelayStack!"}],
)
print(response.choices[0].message.content)