claude-3.5-sonnet-20240620
Claude 3.5 Sonnet delivers better-than-Opus capabilities, faster-than-Sonnet speeds, at the same Sonnet prices. Sonnet is particularly good at: - Coding: Autonomously writes, edits, and runs code with reasoning and troubleshooting - Data science: Augments human data science expertise; navigates unstructured data while using multiple tools for insights - Visual processing: excelling at interpreting charts, graphs, and images, accurately transcribing text to derive insights beyond just the text alone - Agentic tasks: exceptional tool use, making it great at agentic tasks (i.e. complex, multi-step problem solving tasks that require engaging with other systems) For the latest version (2024-10-23), check out [Claude 3.5 Sonnet](/anthropic/claude-3.5-sonnet). #multimodal
Access claude-3.5-sonnet-20240620 through LangDB AI Gateway
Integrate with anthropic's claude-3.5-sonnet-20240620 and 250+ other models through a unified API. Monitor usage, control costs, and enhance security.
Free tier available • No credit card required
1from openai import OpenAI
2client = OpenAI(
3 base_url = "https://api.us-east-1.langdb.ai/your_project_id/v1", # LangDB API base URL,
4 api_key = "<replace_with_your_api_key>"
5)
6response = client.chat.completions.create(
7 model = "openrouter/claude-3.5-sonnet-20240620",
8 messages = [{
9 "role": "system",
10 "content": "You are a helpful assistant."
11 },
12 {
13 "role": "user",
14 "content": "What are the earnings of Apple in 2022?"
15 }
16 ]
17)
18print("Assistant:", response.choices[0].message)
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!