Skip to main content
Claude 3.7 Sonnet is Anthropic’s latest high-performance chat model, available through AnyFast via an OpenAI-compatible interface. It features enhanced reasoning capabilities with extended thinking support, excelling at complex coding, analysis, and multi-step tasks.

Key capabilities

  • OpenAI-compatible — Works as a drop-in replacement with the OpenAI SDK
  • Extended thinking — Supports step-by-step reasoning for complex problems
  • Long context — Handles large documents and multi-turn conversations
  • Streaming — Supports real-time token streaming via SSE
  • Advanced reasoning — Designed for complex, multi-step tasks with improved accuracy

Quick example

curl https://www.anyfast.ai/v1/messages \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-3-7-sonnet",
    "messages": [
      { "role": "user", "content": "Explain quantum entanglement in simple terms." }
    ]
  }'

Parameters

ParameterTypeRequiredDescription
modelstringYesMust be claude-3-7-sonnet
messagesarrayYesList of { role, content } objects
max_tokensintegerNoMaximum tokens to generate
temperaturefloatNo02. Controls randomness. Default: 1
streambooleanNoEnable SSE streaming. Default: false
top_pfloatNoNucleus sampling threshold. Default: 1
stopstring / arrayNoSequences that stop generation

API Reference

View the interactive API playground for Claude 3.7 Sonnet.