Key Capabilities
- OpenAI-compatible — Drop-in replacement for the OpenAI SDK, no other code changes needed
- Extended Thinking — Step-by-step internal reasoning enabled by default
- Best coding model — Top-performing for code generation, refactoring, and debugging
- Enhanced reasoning — Significantly improved accuracy on complex multi-step tasks
- Long context — Supports large document processing and multi-turn conversations
- Streaming — Real-time token streaming via SSE
Quick Example
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Fixed value: claude-sonnet-4-5-20250929-thinking |
messages | array | Yes | Array of { role, content } objects |
max_tokens | integer | No | Maximum number of tokens to generate |
temperature | float | No | 0–2, controls randomness, default 1 |
stream | boolean | No | Enable SSE streaming, default false |
top_p | float | No | Nucleus sampling threshold, default 1 |
stop | string / array | No | Sequences where generation stops |
API Reference
View the interactive API Playground for Claude Sonnet 4.5 Thinking.

