anthropic

Anthropic: Claude 3.7 Sonnet (thinking)

models/Claude 3.7 Sonnet (thinking)

Claude 3.7 Sonnet is an advanced large language model with improved reasoning, coding, and problem solving capabilities. It introduces a hybrid reasoning approach, allowing users to choose between rapid responses and extended, step by step processing for complex tasks. The model demonstrates notable improvements in coding, particularly in front end development and full stack updates, and excels in agentic workflows, where it can autonomously navigate multi step processes. This thinking variant automatically enables extended reasoning mode for enhanced accuracy in math, coding, and instruction following tasks.
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.7-sonnet:thinking
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.7-sonnet:thinking",
        temperature:"0.7"
    )
 
    # Print the response
    print(response["data"])