Skip to main content
Claude Sonnet 4.5 is Anthropic’s best coding model, available through Starrise AI via OpenAI-compatible interface. It strikes an excellent balance between speed and capability, excelling at code generation, analysis, writing, and complex reasoning tasks.

Key Capabilities

  • OpenAI-compatible — Drop-in replacement for the OpenAI SDK, no other code changes needed
  • Best coding model — Top-performing for code generation, refactoring, and debugging
  • Fast and powerful — Perfect balance of speed and performance
  • Long context — Supports large document processing and multi-turn conversations
  • Streaming — Real-time token streaming via SSE
  • Strong reasoning — Ideal for complex multi-step tasks

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-5-20250929",
    "messages": [
      { "role": "user", "content": "Explain quantum entanglement in simple terms." }
    ]
  }'

Parameters

ParameterTypeRequiredDescription
modelstringYesFixed value: claude-sonnet-4-5-20250929
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.5.