
claude-sonnet-5Claude Sonnet 5 is Anthropic's newest Sonnet — a 1M-token context window (both the default and the maximum; there is no smaller-context variant), up to 128K output tokens, adaptive thinking, and the same tools and platform features as Claude Sonnet 4.6 (Priority Tier is the one exception — Sonnet 5 does not support it). On APIMODELS it's just $1 input / $4.5 output per 1M tokens, with prompt caching (cache reads at $0.1/M). Use it through the Anthropic Messages API (/v1/messages) — the native path for Claude Code, the Anthropic SDK, and Anthropic-compatible clients like Cursor — with native tool use (function calling). Request params match Claude Opus 4.8.
Default and maximum — no smaller variant
Extended reasoning when the task needs it
Long, complete responses in one call
Native tool use via the Anthropic Messages API
View complete API reference with all parameters and examples.
Enable real-time streaming responses with Server-Sent Events.
{
"model": "claude-sonnet-5",
"stream": true,
"max_tokens": 1024,
"messages": [...]
}Enable Claude to use tools and call functions.
{
"model": "claude-sonnet-5",
"max_tokens": 1024,
"tools": [{
"name": "get_weather",
"description": "Get current weather for a location",
"input_schema": {
"type": "object",
"properties": {
"location": {"type": "string", "description": "City name"}
},
"required": ["location"]
}
}],
"tool_choice": {"type": "auto"},
"messages": [{"role": "user", "content": "What's the weather in Tokyo?"}]
}Analyze PDF documents by sending them as base64 encoded content.
{
"model": "claude-sonnet-5",
"max_tokens": 1024,
"messages": [{
"role": "user",
"content": [{
"type": "document",
"source": {
"type": "base64",
"media_type": "application/pdf",
"data": "<base64_encoded_pdf>"
}
}, {
"type": "text",
"text": "Summarize this document."
}]
}]
}Get structured JSON responses that match your schema.
{
"model": "claude-sonnet-5",
"max_tokens": 1024,
"output_format": {
"type": "json_schema",
"schema": {
"type": "object",
"properties": {
"name": {"type": "string"},
"age": {"type": "integer"}
},
"required": ["name", "age"]
}
},
"messages": [{"role": "user", "content": "Extract info: John is 30 years old"}]
}Enable Claude to search the web for up-to-date information.
{
"model": "claude-sonnet-5",
"max_tokens": 1024,
"tools": [{
"type": "web_search_20250305",
"name": "web_search",
"max_uses": 5
}],
"messages": [{"role": "user", "content": "What's the latest news about AI?"}]
}| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model identifier (e.g., claude-sonnet-5) |
| messages | array | Yes | Array of message objects with role and content |
| max_tokens | integer | Yes | Maximum tokens in the response (1 - 128000) |
| system | string | No | System prompt to set context |
| stream | boolean | No | Enable streaming responses (SSE) |
| temperature | number | No | Sampling temperature (0.0 - 1.0) |
| top_p | number | No | Nucleus sampling threshold (0.0 - 1.0) |
| top_k | integer | No | Top-k sampling (0 - infinity) |
| stop_sequences | array | No | Sequences that stop generation |
| tools | array | No | Function calling tools definition |
| tool_choice | object | No | Tool selection strategy (auto/any/tool) |
| thinking | object | No | Enable extended thinking mode |
| output_format | object | No | Structured output with JSON schema |
View complete API reference with streaming, thinking, and more.
Billing: Cost = (input_tokens * input_price + output_tokens * output_price) / 1,000,000
Claude Sonnet 5 — это API категории «языковая модель» от Anthropic. Claude Sonnet 5 is Anthropic's newest Sonnet — a 1M-token context window (both the default and the maximum; there is no smaller-context variant), up to 128K output tokens, adaptive thinking, and the same tools and platform features as Claude Sonnet 4.6 (Priority Tier is the one exception — Sonnet 5 does not support it). On APIMODELS it's just $1 input / $4.5 output per 1M tokens, with prompt caching (cache reads at $0.1/M). Use it through the Anthropic Messages API (/v1/messages) — the native path for Claude Code, the Anthropic SDK, and Anthropic-compatible clients like Cursor — with native tool use (function calling). Request params match Claude Opus 4.8. Через платформу APIMODELS доступ к этой модели идёт по единому API с прозрачной оплатой по факту использования. Текущая цена: Input: $1, Output: $4.5 per 1M tokens.
Build intelligent conversational systems to automatically answer user queries and improve service efficiency.
Automatically write articles, emails, ad copy, and other text content to boost productivity.
Assist with code writing, debugging, and code review to accelerate software development.
Understand and analyze unstructured data, extract key insights, and generate summary reports.
Claude Sonnet 5 доступна через APIMODELS по цене: Input: $1, Output: $4.5 per 1M tokens. Оплата идёт по факту использования — вы платите только за то, что сгенерировали.
Зарегистрируйтесь на APIMODELS, получите API-ключ и обращайтесь к нашему единому эндпоинту. Есть подробная документация с примерами на cURL, Python и Node.js.
APIMODELS отдаёт ту же самую модель Claude Sonnet 5 через свою агрегирующую платформу. Мы предоставляем единый интерфейс API, поэтому отдельные аккаунты у каждого поставщика не нужны — один ключ открывает доступ ко всем моделям.
Claude Sonnet 5 — новейшая модель Sonnet от Anthropic: контекстное окно 1 млн токенов (и по умолчанию, и максимальное — варианта с меньшим контекстом просто нет), до 128К выходных токенов, адаптивное мышление, те же инструменты и платформенные функции, что у Claude Sonnet 4.6, за одним исключением — не поддерживается Priority Tier. На apimodels.app это всего $1 за вход и $4.5 за выход за миллион токенов — баланс возможностей и низкой цены.
Да — Sonnet 5 поддерживает нативный вызов инструментов (function calling) через Anthropic Messages API (/v1/messages), тот же формат, что использует Claude Code и Anthropic SDK. Укажите ANTHROPIC_BASE_URL как https://api.apimodels.app/v1, модель claude-sonnet-5, и используйте свой ключ apimodels (см. /docs/claude-code). Совместимые с Anthropic API клиенты вроде Cursor тоже работают, если настроить их на кастомную Anthropic-модель. Инструменты передаются в формате Anthropic ({name, input_schema}); параметры запроса идентичны Claude Opus 4.8.
$1 за вход / $4.5 за выход за миллион токенов. Поддерживается кэширование промптов: токены, прочитанные из кэша (попадание), тарифицируются всего по $0.1/млн — десятая часть от цены входа — а запись в кэш стоит $2/млн. Контекст в 1 млн токенов плюс кэширование делают модель отличным выбором для длинных документов, долгих сессий и агентного программирования.
Sonnet 5 — самый новый Sonnet: контекст 1М + адаптивное мышление по $1/$4.5, лучшее соотношение цены и качества для большинства задач по коду, чату и работе с длинными документами. Sonnet 4.6 — предыдущий Sonnet; Opus 4.8 ($3/$13) — для самых сложных долгих агентных рассуждений. Берите claude-sonnet-5 как самый новый и дешёвый вариант, который при этом остаётся сильным — все модели используют один API-ключ, так что переключаться можно по задаче.
В APIMODELS Claude Sonnet 5 соседствует более чем с 60 моделями под одним API-ключом и общим балансом, поэтому выбор — это вопрос соответствия задаче, а не привязки к поставщику. Модель поддерживает 1M Context, Adaptive Thinking, 128K Output, Tool Calling; вы можете сравнить её по цене и возможностям с другими моделями категории «языковая модель» и переключиться, изменив одну строку с именем модели — без нового аккаунта и без переписывания интеграции. Все варианты категории «языковая модель» с актуальными ценами — на apimodels.app/models.
Claude Sonnet 5 поддерживает: 1M Context, Adaptive Thinking, 128K Output, Tool Calling. Полный список параметров и примеры вызовов — в документации APIMODELS.
Да. APIMODELS отдаёт Claude Sonnet 5 через единый API и один ключ — отдельные аккаунты у каждого поставщика не нужны, и вам не приходится самостоятельно решать вопросы регионального сетевого доступа к каждому из них.
Принимаем Stripe (Visa, Mastercard и другие международные карты) и Alipay. Баланс становится доступен сразу после оплаты.
How to get access, regional availability, and how this model compares with its alternatives.