claude-sonnet-4-6
Anthropic logo

Claude Sonnet 4.6

claude-sonnet-4-6
Anthropic
Claude Sonnet 4.6 delivers frontier intelligence at scale—built for coding, agents, and enterprise workflows. Use cases include: Agents: Sonnet 4.6 excels at complex, multi-step tasks requiring sustained reasoning and adaptive decision-making—ideal for workflows where reliability and autonomy matter most. Coding: Sonnet 4.6 is built for iterative development work, handling complex codebases without losing quality as you guide it through building, refactoring, and debugging. It can compress multi-day projects into hours with the technical depth to deliver production-ready solutions. Enterprise workflows: Sonnet 4.6 powers agents that manage professional projects from start to finish, leveraging memory to maintain context across files with a step-change improvement in creating spreadsheets, slides, and docs. Financial analysis: Sonnet 4.6 connects the dots across regulatory filings, market reports, and internal data—enabling sophisticated modeling and proactive compliance. Cybersecurity: Sonnet 4.6 brings professional-grade analysis to security workflows, correlating logs, vulnerability databases, and threat intelligence for proactive threat detection and automated incident response. Computer use: Sonnet 4.6 delivers confident, consistent navigation with more human-like browsing—enabling better web QA, workflow automation, and advanced user experiences.

Pricing

PricingCache ReadWeb SearchCache WriteCache Write 5 MinutesCache Write 1 Hour
$3.000$15.000
$0.3/M tokens$0.01/request$3.75/M tokens$3.75/M tokens$6/M tokens

Input Modalities

  • Text
  • Vision
  • PDF

Output Modalities

  • Text

Context length

  • 1M tokens

Max output

  • 128K tokens

Capabilities

  • Thinking
  • Streaming
  • Tool calling
  • Web search
  • URL context
  • Code interpreter
  • Computer use
  • File search
  • Memory tool
  • Structured outputs
  • Citations
  • Prompt caching
  • Background mode
  • Server-side sessions

Try this model

Python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AIHUBMIX_API_KEY"],
    base_url="https://aihubmix.com/v1",
)

response = client.chat.completions.create(
    model="claude-sonnet-4-6",
    messages=[
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    max_tokens=1024,
    stream=False,
)

print(response.choices[0].message.content)

Frequently asked questions

What is claude-sonnet-4-6?

Claude Sonnet 4.6 delivers frontier intelligence at scale—built for coding, agents, and enterprise workflows. Use cases include: Agents: Sonnet 4.6 excels at complex, multi-step tasks requiring sustained reasoning and adaptive decision-making—ideal for workflows where reliability and autonomy matter most. Coding: Sonnet 4.6 is built for iterative development work, handling complex codebases without losing quality as you guide it through building, refactoring, and debugging. It can compress multi-day projects into hours with the technical depth to deliver production-ready solutions. Enterprise workflows: Sonnet 4.6 powers agents that manage professional projects from start to finish, leveraging memory to maintain context across files with a step-change improvement in creating spreadsheets, slides, and docs. Financial analysis: Sonnet 4.6 connects the dots across regulatory filings, market reports, and internal data—enabling sophisticated modeling and proactive compliance. Cybersecurity: Sonnet 4.6 brings professional-grade analysis to security workflows, correlating logs, vulnerability databases, and threat intelligence for proactive threat detection and automated incident response. Computer use: Sonnet 4.6 delivers confident, consistent navigation with more human-like browsing—enabling better web QA, workflow automation, and advanced user experiences.