Anthropic
Claude 3.5 Sonnet(20240620)
anthropic/claude-3-5-sonnet-20240620
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,000
Using Claude 3.5 Sonnet(20240620) with Python API
Using Claude 3.5 Sonnet(20240620) 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-20240620",
messages: [
{
role: 'user',
content:
'introduce your self',
},
]
)
print(response)