← All models
Anthropic: Claude Opus 5
anthropic/claude-opus-5textVisionFilesReasoning
Anthropic's flagship for demanding reasoning, coding and long-horizon agentic work — end-to-end software tasks, code review and bug finding. Text, image & file input, 1M context.
Price in / out
Cache, read / write
Context / Max output
1M / 128K
Released
Jul 24, 2026
Additional rates
Web search
Parameters
messagesrequiredreasoning_effortoff · low · medium · high · xhigh · maxmax_tokensoptional · alias max_completion_tokensstreamtrue · falsetoolsfunction calling (OpenAI format)tool_choiceauto · none · requiredresponse_formatjson_object · json_schemaweb_search · · · providerrouting: order · only · ignore · sortstream_options{"include_usage": true}image_urlimage (data: URL)filePDF · DOCX · TXT · CSV · XLSX · PPTX (data: URL)Fine-tuning · 1
stopoptionalHow to use via API
from openai import OpenAI
client = OpenAI(base_url="https://api.mixen.ai/v1", api_key="mxn-...")
resp = client.chat.completions.create(
model="anthropic/claude-opus-5",
messages=[{"role": "user", "content": "Привет"}],
reasoning_effort="low", # off · low · medium · high · xhigh · max
max_tokens=1024,
stream=False,
)
print(resp.choices[0].message.content)
# Стриминг: stream=True — ответ приходит чанками
for chunk in client.chat.completions.create(
model="anthropic/claude-opus-5",
messages=[{"role": "user", "content": "Привет"}],
stream=True,
):
print(chunk.choices[0].delta.content or "", end="", flush=True)
# с файлом (PDF · DOCX · TXT · CSV · XLSX · PPTX)
doc = client.chat.completions.create(
model="anthropic/claude-opus-5",
messages=[{"role": "user", "content": [
{"type": "text", "text": "Кратко перескажи документ"},
{"type": "file", "file": {
"filename": "doc.pdf",
"file_data": "data:application/pdf;base64,JVBERi0...",
}},
]}],
)

