Claude Sonnet 5.5 Text generation API

anthropic / claude-sonnet-5-5

An Anthropic model for responsive coding, long-document analysis, and text-and-image understanding with adaptive thinking.

Use anthropic/claude-sonnet-5-5 through the sjolt LLM API.

Model IDanthropic/claude-sonnet-5-5
Input
TextImage
Output
Text
Pricing

Token rates

Input
$0.8 / 1M tokens
Cache read
$0.08 / 1M tokens
Cache write (5 min)
$1 / 1M tokens
Cache write (1 hour)
$1.6 / 1M tokens
Output
$4 / 1M tokens
Claude Sonnet 5.5anthropic/claude-sonnet-5-5

Start a conversation

Write a message below to begin.

Model overview

Claude Sonnet 5.5 for responsive coding and analysis

Build coding assistants, connect long documents, and interpret images with adaptive thinking through native Anthropic Messages.

Claude Sonnet 5.5 text generation model cover
01 · Text generation

Move through focused coding tasks

Provide the implementation, expected behavior, and acceptance criteria. Ask for a focused diagnosis or change, then return client-side tool results with the original conversation blocks intact.

  • Send one required user prompt with optional system instructions.
  • Review the exact non-streaming API request before running it.
  • Inspect assistant text, finish reason, response ID, and token usage together.
Claude Sonnet 5.5 long-context text generation model cover
02 · Input and output

Connect source material in one context

Use up to 1,000,000 context tokens for source files, specifications, documents, and conversation history. Label sources and ask for evidence supporting each conclusion.

Input
TextImage
Output
Text
Claude Sonnet 5.5: Interpret images with precise questions
03 · API integration

Interpret images with precise questions

Attach screenshots or diagrams and describe what you want to understand. Responses are text. Page illustrations are conceptual artwork, not images generated by this language model.

  • Compare enabled language models in one place.
  • Copy the request preview to keep application requests aligned with the Playground.
  • Handle assistant responses and provider availability states in the same workflow.

Model characteristics

Thinking modes, limits, and native API workflow

01

Context and output

Up to 1,000,000 context tokens and 128,000 output tokens. max_tokens includes thinking and the final response.

02

Adaptive thinking

Adaptive thinking is enabled by default. Select low, medium, high, xhigh, max through output_config.effort; the default is high.

03

Thinking between tools

Set thinking.type to between_tools to skip up-front thinking while retaining thinking between tool calls. This mode accepts low, medium, high effort.

04

Native Messages workflow

Send model, messages, and max_tokens to /v1/messages, with system instructions in the top-level system field. Read text blocks from content and preserve signed thinking blocks in API tool conversations.

05

Prompt guidance

State the goal, constraints, relevant evidence, and expected output format. Keep source material separate from instructions and maintain append-only history when reusing native thinking blocks.

FAQ

These are the first questions to answer when evaluating this model.

Which model ID and endpoint should I use?

Send model anthropic/claude-sonnet-5-5 to /v1/messages with messages and max_tokens. Public API requests can use native streaming.

How do I control thinking?

Omit thinking or set thinking.type to adaptive, and select low, medium, high, xhigh, max effort. The default is high. To skip up-front thinking, use between_tools with low, medium, high effort.

How much output can I request?

Set max_tokens to a positive integer up to 128,000. Thinking and final output share this allowance within the 1,000,000-token context window.

What can I send in the Playground?

Send text and image attachments, choose the thinking effort, and continue the visible conversation with follow-up questions. The Playground uses adaptive thinking and the model returns text.

How should I continue a tool conversation?

Preserve the original signed thinking and tool blocks with their conversation history, then append tool results and the next turn. Use automatic tool selection and clear tool schemas.