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 5
anthropic/claude-sonnet-5Try Anthropic: Claude Sonnet 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 5 at a glance
- Input price is 344% 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.02.
About Anthropic: Claude Sonnet 5
Claude Sonnet 5 is a text model from Anthropic, listed on api14 as anthropic/claude-sonnet-5. Anthropic describes it as its most capable Sonnet-class model, with frontier performance across coding, agents, and professional work. It sits in the text category and was released by the provider on 2026-06-30.
The model accepts text, images, and files as input, and it returns text. Its context window is 1,000,000 tokens, and the maximum output is 128,000 tokens. That combination of a very large context and a large output budget means you can feed in long documents or whole repositories of material and still leave room for a substantial generated response. Anthropic also describes adaptive thinking with selectable reasoning effort levels, including low, medium, high, and max, which lets you trade speed against depth of reasoning per request.
Those capabilities point to a few practical uses. Coding work fits naturally: reading large files or whole projects, explaining code, drafting changes, and driving agent loops that call tools. Because images and files are accepted as input, document-heavy tasks such as summarising reports, extracting structured data from PDFs, or answering questions over a mixed set of attachments are also reasonable. The reasoning effort controls suit agentic and multi-step workflows where you want more deliberate thinking on hard steps and cheaper, faster responses on routine ones. Structured outputs and tool calling make it usable as the reasoning core behind an application rather than only as a chat endpoint.
You call it through api14's OpenAI-compatible API using the model id anthropic/claude-sonnet-5, so existing OpenAI-style clients and SDKs work with a change of base URL and model name. The supported request parameters are include_reasoning, max_completion_tokens, max_tokens, reasoning, reasoning_effort, response_format, stop, structured_outputs, tool_choice, tools, and verbosity. In practice, tools and tool_choice cover function calling, response_format and structured_outputs cover constrained output shapes, and reasoning, reasoning_effort, and include_reasoning control the thinking behaviour. Use max_tokens or max_completion_tokens to cap generation, and stop to end output on given sequences.
Two limits are worth noting when you plan an integration. Output is text only, so if you need generated images or audio, this model is not the right fit. Inputs are text, images, and files, so other modalities on the input side are also out of scope. If your workload is small and simple, the reasoning effort settings let you dial the model down rather than switching away, but for tasks outside text generation you will need a different model.
How to call the Anthropic: Claude Sonnet 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-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-5",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Supported parameters
include_reasoningmax_completion_tokensmax_tokensreasoningreasoning_effortresponse_formatstopstructured_outputstool_choicetoolsverbositySpecifications
- Context length
- 1,000,000
- Max output
- 128,000
- Input
- text, image, file
- Output
- text
Requests on api14 · last 7 days
Anthropic: Claude Sonnet 5: frequently asked questions
- How much does the Anthropic: Claude Sonnet 5 API cost?
- Anthropic: Claude Sonnet 5 costs Input $7.00 / 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 5?
- Anthropic: Claude Sonnet 5 reads up to 1,000,000 tokens per request: prompt, history and documents together. It writes up to 128,000 output tokens per response.
- What can Anthropic: Claude Sonnet 5 do?
- Anthropic: Claude Sonnet 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 5 from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "anthropic/claude-sonnet-5". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to Anthropic: Claude Sonnet 5?
- Comparable Text models at a similar price: Google: Gemini 4 Argon, OpenAI: GPT-6.1 Sol Pro, OpenAI: GPT-6.1 Sol. Each runs through the same API key, so switching is one string.
Anthropic: Claude Sonnet 5 community
New topicThis community has no topics yet. Open the first one about Anthropic: Claude Sonnet 5.