claude-sonnet-4-5
Anthropic logo

Claude Sonnet 4.5

claude-sonnet-4-5
Anthropic
Sonnet 4.5 is the best model in the world for agents, coding, and computer usage. It is also our most accurate and detailed model for long-running tasks, with enhanced knowledge in coding, finance, and cybersecurity. This model supports a thinking parameter to enable thinking requests in Claude mode.

Pricing

TierPricingCache ReadWeb SearchCache WriteCache Write 5 MinutesCache Write 1 Hour
Input<=200K
$3.300$16.500
$0.33/M tokens$0.01/request$4.125/M tokens$4.125/M tokens$6.6/M tokens
200K<Input
$6.600$24.750
$0.66/M tokens$0.01/request$8.25/M tokens$8.25/M tokens$13.2/M tokens

Input Modalities

  • Text
  • Vision

Output Modalities

  • Text

Capabilities

  • Thinking
  • Tools
  • Tool calling
  • Structured outputs

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-5",
    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-5?

Sonnet 4.5 is the best model in the world for agents, coding, and computer usage. It is also our most accurate and detailed model for long-running tasks, with enhanced knowledge in coding, finance, and cybersecurity. This model supports a thinking parameter to enable thinking requests in Claude mode.