# Claude Opus 5 - Core.Today AI API > Anthropic's latest flagship Opus model, with a 1M-token context window by default and 128K max output tokens. Same pricing as Opus 4.5–4.8 ($5/$25 per M tokens) with prompt caching (read $0.50/M, write $6.25/M) and web search. Compatible with the Anthropic Messages and OpenAI Chat Completions formats. - **Provider**: Anthropic - **Model ID**: claude-opus-5 - **Category**: LLM - **Credits**: 5 per 1K tokens (avg) - **Speed**: Medium - **Quality**: Ultra ## Model Specifications - **Context Window**: 1M tokens - **Max Output**: 128K tokens - **Training Cutoff**: 2026-01 - **Supported Formats**: text, json, markdown - **Compatible SDK**: Anthropic, OpenAI ### Capabilities - Vision (image input) - Function Calling - Streaming - JSON Mode - System Prompt ### Token Pricing (per 1M tokens) - **Input Tokens**: 9,290 credits ($6.19) - **Output Tokens**: 46,450 credits ($30.97) - **Cached Tokens**: 929 credits ($0.62) ## Features - Most capable Anthropic model - 1M token context window (default) - 128K max output tokens - Prompt caching (read 10% / write 125% of input price) - Web search tool support - High-resolution vision (up to 2,576px long edge) - Streaming support ## Use Cases - Frontier research and analysis - Long-context document understanding (up to 1M tokens) - Advanced code generation and refactoring - Multi-step agentic workflows - Web-grounded question answering ## API Endpoint Base URL: https://api.core.today Endpoint: POST /llm/anthropic/v1/messages ## Authentication Header: Authorization: Bearer YOUR_API_KEY Note: LLM endpoints use OpenAI-compatible format with Authorization Bearer token. ## Input Parameters ### Required - **messages**: array - Array of message objects (OpenAI format) ### Optional - **max_tokens**: integer (default: 4096) - Maximum tokens in response (up to 128000) - **stream**: boolean (default: false) - Enable Server-Sent Events streaming ## Examples ### Long-context Analysis Deep multi-step analysis over large documents with Claude Opus 5 ```json { "model": "claude-opus-5", "messages": [ { "role": "system", "content": "You are a principal research analyst. Provide rigorous, source-aware analysis." }, { "role": "user", "content": "Given this corpus of quarterly reports, identify the three biggest emerging risks and quantify their exposure." } ], "max_tokens": 8000 } ``` ### Production Code Generation Generate production-ready code with full reasoning ```json { "model": "claude-opus-5", "messages": [ { "role": "system", "content": "You are a senior software engineer. Write clean, well-tested, production code." }, { "role": "user", "content": "Implement an idempotent payment reconciliation worker in Python with retries and unit tests." } ], "max_tokens": 6000 } ``` ## Response Format ```json { "id": "chatcmpl-abc123", "object": "chat.completion", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "Response text here" }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 100, "completion_tokens": 50, "total_tokens": 150 } } ``` ## Tips - Latest flagship Opus — same price as Opus 4.5–4.8, so prefer it for new workloads - 1M context window handles very large codebases and document sets in a single request - Prompt caching: read $0.50/M (10%), write $6.25/M — cache large repeated contexts - Web search costs 20 credits per request on top of token usage - Sampling params (`temperature`, `top_p`, `top_k`) follow the latest Opus convention — omit them if requests return 400 - Streaming recommended for long responses - Compatible with both Anthropic Messages and OpenAI SDK formats ## Documentation https://docs.anthropic.com/en/docs/about-claude/models