Anthropic
Anthropic

Claude 3 Sonnet

anthropic/claude-3-sonnet

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

See the launch announcement and benchmark results here

#multimodal

Capability

Vision Support

Tools

Function Calling

Context Window

200,000

Max Output Tokens

4,096

Using Claude 3 Sonnet with Python API

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