anthropic

Anthropic: Claude 3.5 Sonnet

models/Claude 3.5 Sonnet

New Claude 3.5 Sonnet delivers better than Opus capabilities, faster than Sonnet speeds, at the same Sonnet prices. Sonnet is particularly good at: Coding: Scores ~49% on SWE Bench Verified, higher than the last best score, and without any fancy prompt scaffolding 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) #multimodal
Currency$USD
Input$3.00
Output$15.00
Context window200K

Generate API Key Generate your API Key to securely access IndoxHub's AI models. Integrate with OpenAI-compatible tools, run queries, and build powerful AI applications — all with a single secure key.
Endpoint
POSThttps://api.indoxhub.com/api/v1/chat/completions
Configanthropic/claude-3.5-sonnet
from indoxhub import Client
 
# Initialize the client
with Client(api_key="[LOGIN TO GET API KEY]") as client:
    # Generate a chat completion
    response = client.chat(
        messages=[{"role":"system","content":"You are a helpful assistant."},{"role":"user","content":"What is machine learning and why is it important?"}],
        model="anthropic/claude-3.5-sonnet",
        temperature:"0.7"
    )
 
    # Print the response
    print(response["data"])