LLM models
Claude Sonnet 4.5
On this page
Claude Sonnet 4.5 — frontier reasoning and generation through one API.
| modelId | claude-sonnet-4-5 |
| Modality | text |
| Pricing | See this model on the Pricing page for the current per-call price (with your markup). |
Operations
| Operation | Endpoint | Description |
|---|---|---|
| Text to completion | POST /api/v1/generate | Base generation from a text prompt. |
| Poll task | GET /api/v1/task/{id}?model=claude-sonnet-4-5 | Retrieve state and result URLs. |
Input parameters
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | textarea | required | Send a message |
| MODEL | text | optional | — |
| memory | select | optional | false, true |
| structured_outputs | select | optional | false, true |
| function_calling | select | optional | false, true |
| web_search | select | optional | false, true |
| thinking | select | optional | false, true |
| reasoning_effort | select | optional | Low, High |
| max_tokens | number | optional | 4096 |
| stream | select | optional | false, true |
Example request
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"claude-sonnet-4-5","input":{"prompt":"Explain the difference between weather and climate to a curious ten-year-old, in three clear and memorable sentences.","MODEL":"claude-sonnet-4-5","memory":"false","structured_outputs":"false","function_calling":"false","web_search":"true","thinking":"true","reasoning_effort":"High","max_tokens":8,"stream":"true"}}'