Anthropic
Anthropic

Claude 4.5 Sonnet

anthropic/claude-4-5-sonnet

Claude Sonnet 4.5 is Anthropic’s latest AI model in the Claude 4 family, designed to balance speed and intelligence. Compared to the flagship Claude 4.5, Sonnet is lighter and faster, making it ideal for real-time applications such as chatbots, customer support, and enterprise knowledge assistants. It delivers strong performance in text generation, comprehension, and creative writing while keeping latency low. Sonnet 4.5 also inherits Anthropic’s focus on safety and alignment, producing reliable and contextually appropriate outputs. This makes it a practical choice for organizations seeking efficiency without compromising quality or trustworthiness.

Capability

Vision Support

Tools

Function Calling

Context Window

200,000

Max Output Tokens

8,192

Using Claude 4.5 Sonnet with Python API

Using Claude 4.5 Sonnet with OpenAI compatible API

import openai

client = openai.Client(
  api_key= '{your_api_key}',
  base_url="https://api.model.box/v1",
)
response = client.chat.completions.create(
model="anthropic/claude-4-5-sonnet",
messages: [
  {
    role: 'user',
    content:
      'introduce your self',
    },
  ]
)
print(response)