We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
Anthropic: Claude Sonnet 4.5
anthropic/claude-sonnet-4.5Try Anthropic: Claude Sonnet 4.5 now
Runs on your balance at the prices above. New accounts start with free usage.
One API. Every model.
Session cost $0.00
Settings
Advanced parameters
Anthropic: Claude Sonnet 4.5 at a glance
- Input price is 567% higher than the median of 434 Text models.
- Context window of 1,000,000 tokens, enough for long documents and multi-turn conversations.
- Supports tool (function) calling for agents and integrations.
- Supports structured JSON output with a schema.
- Supports reasoning effort control.
- Accepts images as input (vision).
- A typical request (1,000 input / 500 output tokens) costs about $0.04.
About Anthropic: Claude Sonnet 4.5
Claude Sonnet 4.5 is a text model from Anthropic, released by the provider on 29 September 2025. It sits in Anthropic's Sonnet line, which the provider describes as its most advanced Sonnet model to date, optimized for real-world agents and coding workflows. On api14 it is listed under the model id anthropic/claude-sonnet-4.5 and falls into the text category.
The model accepts text, images and files as input and returns text only. Its context window is 1,000,000 tokens, and the maximum output is 64,000 tokens. The knowledge cutoff is 31 January 2025, so anything after that date is outside what the model was trained on. Because images and files are accepted alongside text, you can send mixed prompts that combine written instructions with visual or document content, while planning for text as the sole response format.
Those capabilities point to a few practical uses. Coding assistance and agent-style workflows are the areas Anthropic highlights, and the large context window suits tasks where you need to keep a long codebase, a lengthy document or a long conversation in view at once. Image and file input make it a reasonable fit for document analysis, extracting or summarizing information from uploaded material, and question answering over mixed content. Tool calling and structured outputs also make it usable as the reasoning step inside a larger pipeline, where the model decides which tools to invoke and returns data in a shape your code can parse.
You call it through api14's OpenAI-compatible API using the model id anthropic/claude-sonnet-4.5, so existing OpenAI SDK code works with a change of base URL and model name. The supported request parameters are include_reasoning, max_completion_tokens, max_tokens, reasoning, response_format, stop, structured_outputs, temperature, tool_choice, tools, top_k and top_p. In practice that means you can control sampling with temperature, top_p and top_k, cap output length with max_tokens or max_completion_tokens, define functions for the model to call with tools and tool_choice, and request structured or formatted responses with response_format and structured_outputs. Reasoning can be requested and its output included via the reasoning and include_reasoning parameters.
One limit worth noting is that output is text only, so if you need generated images or audio, this model is not the right choice. The knowledge cutoff of 31 January 2025 also means recent events are not covered unless you supply them in the prompt or through tools. If your workload is small and simple, a lighter model may be sufficient, but for long-context coding, document and agent tasks, the combination of a 1,000,000 token context window, 64,000 token output ceiling and tool support is the reason to pick this one.
How to call the Anthropic: Claude Sonnet 4.5 API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "anthropic/claude-sonnet-4.5".
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.chat.completions.create({
"model": "anthropic/claude-sonnet-4.5",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Supported parameters
include_reasoningmax_completion_tokensmax_tokensreasoningresponse_formatstopstructured_outputstemperaturetool_choicetoolstop_ktop_pSpecifications
- Context length
- 1,000,000
- Max output
- 64,000
- Input
- text, image, file
- Output
- text
- Knowledge cutoff
- 2025-01-31
Requests on api14 · last 7 days
Anthropic: Claude Sonnet 4.5: frequently asked questions
- How much does the Anthropic: Claude Sonnet 4.5 API cost?
- Anthropic: Claude Sonnet 4.5 costs Input $10.50 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
- What is the context window of Anthropic: Claude Sonnet 4.5?
- Anthropic: Claude Sonnet 4.5 reads up to 1,000,000 tokens per request: prompt, history and documents together. It writes up to 64,000 output tokens per response.
- What can Anthropic: Claude Sonnet 4.5 do?
- Anthropic: Claude Sonnet 4.5 accepts text, image, file and returns text. It supports tool calling, structured JSON output, reasoning effort control.
- How do I call Anthropic: Claude Sonnet 4.5 from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "anthropic/claude-sonnet-4.5". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to Anthropic: Claude Sonnet 4.5?
- Comparable Text models at a similar price: Fireworks: Ember-1, Anthropic: Claude Sonnet 4.6, Perplexity: Sonar Pro Search. Each runs through the same API key, so switching is one string.
Anthropic: Claude Sonnet 4.5 community
New topicThis community has no topics yet. Open the first one about Anthropic: Claude Sonnet 4.5.