# Claude Sonnet 5 - Core.Today AI API > Anthropic's newest Sonnet model, tuned for the best balance of speed, cost, and intelligence. Features a 1M-token context window, 64K max output tokens, and knowledge cutoff to August 2025. Supports adaptive thinking that reasons only when a turn needs it, vision, and tool use. Compatible with the Anthropic Messages and OpenAI Chat Completions formats. - **Provider**: Anthropic - **Model ID**: claude-sonnet-5 - **Category**: LLM - **Credits**: 4 per 1K tokens (avg) - **Speed**: Fast - **Quality**: Ultra ## Model Specifications - **Context Window**: 1M tokens - **Max Output**: 64K tokens - **Training Cutoff**: 2025-08 - **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**: 5,574 credits ($3.72) - **Output Tokens**: 27,870 credits ($18.58) - **Cached Tokens**: 557 credits ($0.37) ## Features - Balanced speed, cost, and intelligence - 1M token context window - 64K max output tokens - Knowledge cutoff: August 2025 - Adaptive thinking (effort-controlled) - Vision and tool use - Streaming support ## Use Cases - High-volume production workloads - Long-context document understanding (up to 1M tokens) - Code generation and review - Multi-step agentic workflows - Cost-sensitive reasoning tasks ## 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 64000) - **stream**: boolean (default: false) - Enable Server-Sent Events streaming ## Examples ### High-throughput Analysis Fast, cost-efficient analysis over large documents with Claude Sonnet 5 ```json { "model": "claude-sonnet-5", "messages": [ { "role": "system", "content": "You are a research analyst. Provide structured, source-aware analysis." }, { "role": "user", "content": "Summarize the key findings and open questions from this 200-page technical report and flag any inconsistencies." } ], "max_tokens": 6000 } ``` ### Production Code Generation Generate production-ready code with a strong quality-to-cost ratio ```json { "model": "claude-sonnet-5", "messages": [ { "role": "system", "content": "You are a senior software engineer. Write clean, well-tested, production code." }, { "role": "user", "content": "Implement a token-bucket rate limiter in TypeScript backed by Redis, with 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 - Best default Anthropic model when you want strong reasoning at Sonnet-tier speed and cost - 1M context window handles very large codebases and document sets in a single request - 64K output enables long-form drafts in a single response - Sampling params (`temperature`, `top_p`, `top_k`) are unsupported — omit them; a non-default value returns a 400 - Thinking is adaptive-only: use `thinking: {type: "adaptive"}` and control depth with the `effort` parameter; fixed `budget_tokens` returns a 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