Anthropic
Anthropic

Claude 3.5 Sonnet (new)

anthropic/claude-3-5-sonnet

Claude 3.5 Sonnet is an ideal balance of intelligence and speed for enterprise workloads. Maximum utility at a lower price, dependable, balanced for scaled deployments.

Claude 3.5 Sonnet raises the industry bar for intelligence, outperforming competitor models and Claude 3 Opus on a wide range of evaluations, with the speed and cost of our mid-tier model, Claude 3 Sonnet.

Capability

Vision Support

Tools

Function Calling

Context Window

200,000

Max Output Tokens

8,192

Using Claude 3.5 Sonnet (new) with Python API

Using Claude 3.5 Sonnet (new) 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-3-5-sonnet",
messages: [
  {
    role: 'user',
    content:
      'introduce your self',
    },
  ]
)
print(response)