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.6

anthropic/claude-sonnet-4.6
TextInput: text · image · fileToolsReasoning1MAdded Feb 17, 2026

Try Anthropic: Claude Sonnet 4.6 now

Runs on your balance at the prices above. New accounts start with free usage.

One API. Every model.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign in

Session cost $0.00

Anthropic: Claude Sonnet 4.6 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.6

Claude Sonnet 4.6 is a text model from Anthropic, listed on api14 as anthropic/claude-sonnet-4.6. Anthropic describes it as its most capable Sonnet-class model yet, with frontier performance across coding, agents, and professional work. It sits in the text category and is aimed at developers building applications that need strong reasoning and generation quality rather than a lightweight, low-latency model.

The model accepts text, images, and files as input, and it produces text as output. Its context window is 1,000,000 tokens, which is large enough to hold entire codebases, long document sets, or extended conversation histories in a single request. The maximum output is 128,000 tokens, so responses can be long form when the task requires it, such as full file rewrites or detailed reports. Because images and files are accepted alongside text, you can mix prompts with screenshots, diagrams, PDFs, or source files without a separate preprocessing step.

Those capabilities point to a few practical uses. Iterative development and complex codebase navigation are natural fits: you can feed in a repository or a large slice of one and ask for changes, reviews, or explanations across many files. Agent-style workflows benefit from the tool calling support and the long context, since an agent can carry state and intermediate results without constant truncation. Professional work such as document analysis, summarisation, and structured extraction from mixed text and image inputs also follows from the input modalities and the structured output options. The reasoning controls let you trade depth against speed depending on the task.

You call the model through api14's OpenAI-compatible API using the model id "anthropic/claude-sonnet-4.6". The supported request parameters are include_reasoning, max_completion_tokens, max_tokens, reasoning, reasoning_effort, response_format, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_p, and verbosity. In practice this means you can set sampling behaviour with temperature, top_p, and top_k, cap output length with max_tokens or max_completion_tokens, control reasoning depth with reasoning, reasoning_effort, and include_reasoning, and constrain the response shape with response_format and structured_outputs. Tool use is configured through tools and tool_choice, and verbosity adjusts how much the model says.

The main constraint to keep in mind is that output is text only, so tasks that need generated images or audio fall outside this model. The 128,000 token output cap also means very large single responses must be split or streamed in stages. If your workload is simple classification or short replies where latency and throughput matter more than reasoning depth, a smaller model may be a better fit. For long-context coding, agent loops, and mixed text, image, and file analysis, Claude Sonnet 4.6 is the stronger choice.

How to call the Anthropic: Claude Sonnet 4.6 API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "anthropic/claude-sonnet-4.6".
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.6",
  "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_outputstemperaturetool_choicetoolstop_ktop_pverbosity

Specifications

Context length
1,000,000
Max output
128,000
Input
text, image, file
Output
text

Requests on api14 · last 7 days

10-1610-1710-1810-1910-2010-2110-22

Anthropic: Claude Sonnet 4.6: frequently asked questions

How much does the Anthropic: Claude Sonnet 4.6 API cost?
Anthropic: Claude Sonnet 4.6 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.6?
Anthropic: Claude Sonnet 4.6 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 4.6 do?
Anthropic: Claude Sonnet 4.6 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.6 from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "anthropic/claude-sonnet-4.6". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to Anthropic: Claude Sonnet 4.6?
Comparable Text models at a similar price: Fireworks: Ember-1, Perplexity: Sonar Pro Search, Anthropic: Claude Sonnet 4.5. Each runs through the same API key, so switching is one string.

Anthropic: Claude Sonnet 4.6 community

New topic

This community has no topics yet. Open the first one about Anthropic: Claude Sonnet 4.6.