Anthropic
Anthropic

Claude 3 Sonnet(20240229)

anthropic/claude-3-sonnet-20240229

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(20240229) with Python API

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