Claude Sonnet 4.6 Chat API

anthropic/claude-sonnet-4.6
1M tokens · 288 input / 1440 output credits / 1M tokens

Claude Sonnet 4.6 Chat turns ordered text and image messages into code, explanations, and grounded analysis for coding assistants and tool workflows. Its 1M-token context keeps related files and instructions together, while system guidance and tool definitions shape each step.

Claude Sonnet 4.6

Anthropic · chat-completions

Chat with Claude Sonnet 4.6

Each model has its own conversation. Switching never sends another model's history, and switching back resumes where you left off. Requests are billed from actual token usage.

Ctrl / ⌘ + Enter to send0 / 32,000

Continue with

Claude Sonnet 4.6 Chat

Anthropic's Claude Sonnet 4.6 Chat produces code, explanations, and analysis from ordered conversation messages and image blocks. Its 1M-token context helps connect source files, instructions, and earlier turns during iterative development. Claude Messages accepts system instructions and tool definitions, and returns complete JSON or streamed SSE responses. Use it for coding assistants, tool workflows, and long-document analysis where the answer must stay tied to the supplied material.

Why Choose Claude Sonnet 4.6?

  • Connected coding contextKeep related files, requirements, and review feedback together while working through a multi-step code change.

  • Tool-guided progressDefine application tools, inspect requested actions, and continue the conversation with their results.

  • Text and image evidencePair screenshots or diagrams with written context to investigate implementation and design questions.

  • Long-document analysisCompare distant passages and related technical material in a 1M-token context window.

Parameters

ParameterRequirementDescription
modelRequired

Use anthropic/claude-sonnet-4.6.

messagesRequired

A non-empty ordered message array; each item has role and content.

max_tokensRequired for Claude Messages

A positive integer controlling response length; the published model maximum is 128,000 tokens.

systemOptional for Claude Messages

System instructions as a string or structured text blocks.

temperatureOptional

Sampling temperature from 0 to 1; the Playground uses the same range.

top_pOptional

Nucleus sampling probability from 0 to 1.

toolsOptional

Tool definitions available to the model.

streamOptional

Set true to receive an SSE event stream.

Defaultfalsetrue

How to Use

  1. Choose the modelSet model to anthropic/claude-sonnet-4.6 in a Claude Messages request.

  2. Provide task contextAdd ordered messages, relevant source material, and optional system instructions.

  3. Set the response lengthSet max_tokens to a positive integer, then send the request to /v1/messages and review content and token usage.

Pricing

Vidgo AI bills input and output tokens separately. Each rate applies per 1M tokens.

UsageRateDetails
Input$1.44 · 288 credits / 1M tokensTokens in the request.
Output$7.20 · 1440 credits / 1M tokensTokens generated in the response.

Best Use Cases

  • Coding assistantsUse project context and review criteria to draft, explain, or inspect code changes.

  • Tool-using agentsConnect model tool requests to application functions and return results in later turns.

  • Technical researchCompare long specifications, repository context, and image evidence in one conversation.

Pro Tips

  • Provide the desired behavior, relevant files, constraints, and review criteria in the same conversation.
  • Give each tool a clear input schema and pass its result back in a later message.
  • Pair image blocks with a focused question about the detail to inspect.

Usage Notes

  • Claude Sonnet 4.6 has a published 1M-token context window and a 128,000-token maximum output.
  • The on-page Playground offers a 256–8,192-token output control.
  • Use anthropic/claude-sonnet-4.6 with /v1/messages or /v1/chat/completions.

Related Models

Claude Sonnet 4.6 Chat API frequently asked questions

What is the Claude Sonnet 4.6 Chat API?

Claude Sonnet 4.6 is an Anthropic model that turns text and image messages into code, explanations, and analysis. Its 1M-token context helps connect related materials, while system instructions and tools guide multi-step work. Use the Playground above or call Claude Messages and Chat Completions.

How does Claude Sonnet 4.6 help with coding workflows?

Provide requirements, relevant source files, and review feedback as ordered messages. Claude Sonnet 4.6 can draft code, explain changes, and use later turns to work through test findings.

How can Claude Sonnet 4.6 use application tools?

Include tool definitions with names and input schemas. Execute a requested tool in your application, then add its result to the conversation for the next step.

What context and output sizes does Claude Sonnet 4.6 have?

The published model specification is a 1M-token context window and a 128K-token maximum output. This page's Playground offers a 256–8,192-token output control.

How do I include an image in a Claude Sonnet 4.6 request?

Put an image block and the related text question in messages.content. The model uses both inputs to produce a text response.

What does Claude Sonnet 4.6 cost on Vidgo AI?

Input is $1.44 and 288 credits per 1M tokens; output is $7.20 and 1440 credits per 1M tokens. The Pricing section lists both rates.