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 Latest

~anthropic/claude-sonnet-latest
TextInput: text · image · fileToolsReasoning1MAdded Apr 27, 2026

Try Anthropic: Claude Sonnet Latest 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 Latest 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 Latest

Claude Sonnet Latest is a text model from Anthropic, exposed on api14 under the model id ~anthropic/claude-sonnet-latest. As the name and provider description indicate, this entry always redirects to the latest model in the Claude Sonnet family, so a request made today and a request made after a future Sonnet release will resolve to different underlying versions. That behaviour is useful if you want to track Anthropic's newest Sonnet work without editing your integration each time, but it also means the exact model behind the id can change without notice.

The model accepts text, images and files as input and returns text only. It has a context window of 1,000,000 tokens and can produce up to 128,000 output tokens in a single response. The large context is the headline capability here: you can supply very long documents, whole codebases or extended conversation histories in one request rather than chunking them. Image and file inputs make it suitable for tasks where the source material is not plain text, such as reading scanned pages or screenshots alongside written instructions.

Those capabilities point to a fairly clear set of use cases. Long document analysis, contract and report review, and question answering over large knowledge bases all benefit from the million token window. Because the model accepts images and files, it also fits workflows that mix formats, for example extracting structured data from a PDF plus a diagram, or summarising a support thread that includes screenshots. The 128,000 token output ceiling supports long form generation, such as drafting lengthy technical documentation or producing extended code in one pass, rather than stitching together many short completions.

You call it through api14's OpenAI-compatible API using the model id ~anthropic/claude-sonnet-latest, so existing OpenAI SDK clients work with a changed base URL and model string. 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 that means you can cap output length, control how much reasoning effort the model applies, request structured or JSON-shaped responses, define tools and force or guide tool selection, and tune verbosity. Tool calling and structured outputs are the two that matter most for agent and pipeline work, since they let you get machine-readable results instead of parsing free text.

One thing to keep in mind is the redirect behaviour. If your application depends on a fixed model version for reproducibility, evaluation or compliance, this id is a poor fit because the underlying model can change; a pinned Sonnet version would be the safer choice. The same applies if you need output modalities other than text, since this model returns text only. For straightforward text tasks within a smaller context, a lighter model may also be sufficient, though the facts here do not specify which alternatives exist.

How to call the Anthropic: Claude Sonnet Latest 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-latest".
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-latest",
  "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_choicetoolsverbosity

Specifications

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

Requests on api14 · last 7 days

10-1710-1810-1910-2010-2110-2210-23

Anthropic: Claude Sonnet Latest: frequently asked questions

How much does the Anthropic: Claude Sonnet Latest API cost?
Anthropic: Claude Sonnet Latest 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 Latest?
Anthropic: Claude Sonnet Latest 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 Latest do?
Anthropic: Claude Sonnet Latest accepts text, image, file and returns text. It supports tool calling, structured JSON output, reasoning effort control.
How do I call Anthropic: Claude Sonnet Latest from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "~anthropic/claude-sonnet-latest". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to Anthropic: Claude Sonnet Latest?
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 Latest community

New topic

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