Anthropic

Claude 3.7 Sonnet (thinking) API

US Anthropic
Essayer dans le bac à sable → Obtenir une clé API

Claude 3.7 Sonnet (thinking) est un modèle de raisonnement d'Anthropic. Il propose un raisonnement étape par étape. Disponible via l'API unifiée MeshTok.

ImageRaisonnementOutilsJSON

Tarifs (officiel, par 1M tokens)

Entrée
$3.00/M
Sortie
$15.00/M

Spécifications

Fenêtre de contexte200K tokens Modalités d'entréeImage StreamingOui APICompatible OpenAI

Comment utiliser Claude 3.7 Sonnet (thinking)

Remplacement direct d'OpenAI. Changez base_url et modèle.

# Python - pip install openai
from openai import OpenAI

client = OpenAI(
    base_url="https://meshtok.com/v1",
    api_key="sk-your-MeshTok-key",
)

resp = client.chat.completions.create(
    model="anthropic/claude-3.7-sonnet:thinking",
    messages=[{"role":"user","content":"Hello!"}],
)
print(resp.choices[0].message.content)
# cURL
curl https://meshtok.com/v1/chat/completions \
  -H "Authorization: Bearer sk-your-MeshTok-key" \
  -H "Content-Type: application/json" \
  -d '{"model":"anthropic/claude-3.7-sonnet:thinking","messages":[{"role":"user","content":"Hello!"}]}'

Modèles similaires

D'autres modèles à considérer.