Skip to main content
Claude Sonnet 4.6 is Anthropic’s latest and most powerful Sonnet model, available through Starrise AI via OpenAI-compatible interface. It achieves state-of-the-art results in coding, reasoning, and analysis while maintaining excellent speed and efficiency.

Key Capabilities

  • OpenAI-compatible — Drop-in replacement for the OpenAI SDK, no other code changes needed
  • Top-tier coding — Best-performing for code generation, debugging, and refactoring
  • Advanced reasoning — Significantly improved multi-step problem solving and analysis
  • Fast and efficient — Achieves maximum capability while maintaining Sonnet-level speed
  • Long context — Supports large document processing and multi-turn conversations
  • Streaming — Real-time token streaming via SSE

Quick Example

curl https://ai.alad.com/v1/messages \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-4-6",
    "messages": [
      { "role": "user", "content": "Write a Python function to merge two sorted arrays." }
    ]
  }'

Parameters

ParameterTypeRequiredDescription
modelstringYesFixed value: claude-sonnet-4-6
messagesarrayYesArray of { role, content } objects
max_tokensintegerNoMaximum number of tokens to generate
temperaturefloatNo02, controls randomness, default 1
streambooleanNoEnable SSE streaming, default false
top_pfloatNoNucleus sampling threshold, default 1
stopstring / arrayNoSequences where generation stops

API Reference

View the interactive API Playground for Claude Sonnet 4.6.