Anthropic
Anthropic

Claude 4 Opus

anthropic/claude-4-opus

Claude Opus 4 is the world’s best coding model, with sustained performance on complex, long-running tasks and agent workflows. Claude Sonnet 4 is a significant upgrade to Claude Sonnet 3.7, delivering superior coding and reasoning while responding more precisely to your instructions.

Capability

Vision Support

Tools

Function Calling

Context Window

200,000

Max Output Tokens

8,192

Using Claude 4 Opus with Python API

Using Claude 4 Opus with OpenAI compatible API

import openai

client = openai.Client(
  api_key= '{your_api_key}',
  base_url="https://api.model.box/v1",
)
response = client.chat.completions.create(
model="anthropic/claude-4-opus",
messages: [
  {
    role: 'user',
    content:
      'introduce your self',
    },
  ]
)
print(response)