Claude Sonnet 5.5 API

anthropic/claude-sonnet-5.5
1M tokens · 320 input / 1600 output credits / 1M tokens

Claude Sonnet 5.5 turns text and image context into code, document analysis, and clear answers, with a 1M-token context window and adaptive thinking. Provide the relevant files and acceptance criteria to guide focused changes and reviewable results.

Claude Sonnet 5.5

Anthropic · messages

Chat with Claude Sonnet 5.5

Describe your coding or analysis task and provide relevant text. Choose a protocol and output limit, then start a conversation and review token usage.

Ctrl / ⌘ + Enter to send0 / 32,000

Continue with

Claude Sonnet 5.5

Claude Sonnet 5.5 is an Anthropic model for feature development, bug fixes, document analysis, and everyday agent workflows. Adaptive thinking adjusts reasoning to the task, while text and image understanding connect source material with written conclusions. Its long context helps compare related files and preserve requirements across a conversation, producing code and analysis that teams can review against their own acceptance criteria.

Why Choose Claude Sonnet 5.5?

  • Focused coding workUse related source files, expected behavior, and test evidence to develop features or trace a bug through a codebase.

  • Connected long-context analysisCompare repository files, reports, and conversation history within a 1M-token context window to connect conclusions with source evidence.

  • Adaptive reasoningAdaptive thinking adjusts reasoning to task complexity, from routine extraction to a detailed technical review.

  • Visual evidence in contextSubmit image blocks alongside text in Claude Messages to examine charts, interface screenshots, and diagrams.

  • Reusable prompt contextCache recurring instructions and reference material with a five-minute or one-hour lifetime for repeated requests.

Parameters

ParameterRequirementDescription
modelRequired

Use anthropic/claude-sonnet-5.5 with either protocol.

messagesRequired

A non-empty ordered array of role and content messages. Claude Messages accepts text and image blocks; Chat Completions places system instructions in a system message.

max_tokensRequired for Claude Messages; optional for Chat Completions

Output limit from 1 to 128,000 tokens. The playground defaults to 4,096.

systemOptional for Claude Messages

System instructions as a string or structured text blocks. The playground provides a text field.

thinkingOptional for Claude Messages

Defaults to adaptive thinking.

Defaultadaptivebetween_tools
output_config.formatOptional for Claude Messages

Use type json_schema and a schema object to define structured text output.

cache_controlOptional for Claude Messages

Use an ephemeral cache marker with ttl 5m or 1h. Cacheable prompt content starts at 512 tokens.

toolsOptional for Claude Messages

Define callable tools with name, description, and input_schema; the application executes returned tool calls.

tool_choiceOptional for Claude Messages

Choose type auto for automatic tool selection or type none for a text reply.

Defaultautonone
stop_sequencesOptional for Claude Messages

Strings that stop generation when encountered.

metadataOptional for Claude Messages

Additional request metadata such as user_id.

streamOptional

false returns complete JSON; true returns SSE events. The playground sends true.

Defaultfalsetrue

How to Use

  1. Define the deliverableDescribe the feature, bug, or analysis question, together with expected behavior and acceptance criteria.

  2. Add relevant contextInclude the source files, document excerpts, or conversation turns needed to answer the question.

  3. Choose protocol and settingsSelect Claude Messages or Chat Completions and set max_tokens.

  4. Review and iterateRead the reply, check code or claims against the supplied evidence, and add focused feedback for the next turn.

Pricing

Input, output, and cache usage are billed separately. All rates below apply per 1M tokens.

UsageRateDetails
Input$1.60 · 320 credits / 1M tokensFresh input tokens in the request.
Output$8.00 · 1600 credits / 1M tokensTokens generated in the response.
Cache Read$0.160 · 32 credits / 1M tokensPreviously cached prompt tokens read by the request.
Cache Write (5m)$2.00 · 400 credits / 1M tokensPrompt tokens written with a five-minute cache lifetime.
Cache Write (1h)$3.20 · 640 credits / 1M tokensPrompt tokens written with a one-hour cache lifetime.

Best Use Cases

  • Feature development and bug fixesWork from relevant source files and tests to propose a focused implementation, explain a defect, or review a change.

  • Document and report analysisCompare related documents, extract requirements, and produce summaries linked to the supplied material.

  • Tool-assisted workflowsLet an application execute tool calls, return results to the conversation, and guide the next analysis step.

  • Chart and interface reviewPair an image with a focused question to explain a chart or inspect details in an interface screenshot.

Pro Tips

  • Provide the expected behavior, relevant files, and acceptance criteria together for a coding task.
  • Ask long-document conclusions to cite the supplied section, table, or file.
  • Test representative tasks, then add context based on the results and acceptance criteria.
  • Keep recurring instructions and reference material at the start of the prompt when using caching.

Usage Notes

  • The model context window is 1,000,000 tokens; the output limit is 128,000 tokens.
  • The playground uses text conversations with either protocol and streams replies as SSE.
  • Claude Messages also accepts image content blocks and API fields for tools, structured output, and caching.

Related Models

Claude Sonnet 5.5 API FAQ

What is Claude Sonnet 5.5 API?

Claude Sonnet 5.5 is an Anthropic model for coding, document analysis, and everyday agent workflows. It combines text and image understanding to produce code, explanations, and written conclusions. Adaptive thinking and a 1M-token context window help connect requirements with source material. Use the API tab for request examples or try a text conversation in the Playground.

How does Claude Sonnet 5.5 help with coding and bug fixes?

Provide the expected behavior, related source files, and a failing example or test result. Claude Sonnet 5.5 can trace the relevant logic, propose changes, and explain how those changes address the evidence. Ask it to organize the result around your acceptance criteria so you can review and test the implementation.

How large is the Claude Sonnet 5.5 context window?

Claude Sonnet 5.5 has a 1,000,000-token context window for related files, documents, and conversation history. Its maximum output is 128,000 tokens. Set max_tokens for each response and prioritize the material that supports your current question.

Can Claude Sonnet 5.5 analyze images and charts?

Yes. In a Claude Messages API request, combine text with image content blocks and ask a focused question about a chart, diagram, or screenshot. The model returns a text response that connects visual details with the surrounding instructions and evidence.

What does Claude Sonnet 5.5 cost on Vidgo?

Input costs $1.60 (320 credits) and output costs $8.00 (1600 credits) per 1M tokens. Cache reads and cache writes are measured separately. The Pricing section lists all five rates so you can estimate a request from its input, output, and cache usage.

How does Claude Sonnet 5.5 prompt caching reduce repeated-input costs?

Reuse a stable prompt prefix with cache_control and choose a five-minute or one-hour lifetime. Cacheable prompt content starts at 512 tokens. Later cache reads cost $0.160 per 1M tokens; cache writes cost $2.00 for five minutes or $3.20 for one hour per 1M tokens.