Claude 3.7 Sonnet
Anthropic logo

Claude 3.7 Sonnet

claude-3-7-sonnet
Anthropic
Hot
Support for the thinking parameter through the original Claude SDK.

Pricing

  • Input Tokens: $3.300 /M tokens
  • Output Tokens: $16.500 /M tokens

Input Modalities

  • Text
  • Vision

Output Modalities

  • Text

Capabilities

  • Thinking
  • Tools
  • Tool calling
  • Structured outputs

Try this model

Python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AIHUBMIX_API_KEY"],
    base_url="https://aihubmix.com/v1",
)

response = client.chat.completions.create(
    model="claude-3-7-sonnet",
    messages=[
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    max_tokens=1024,
    stream=False,
)

print(response.choices[0].message.content)

Frequently asked questions

What is Claude 3.7 Sonnet?

Support for the thinking parameter through the original Claude SDK.