Skip to content
Docs menu

LLM models

Claude Sonnet 4.6

On this page

Claude Sonnet 4.6 — frontier reasoning and generation through one API.

modelIdclaude-sonnet-4-6
Modalitytext
PricingSee this model on the Pricing page for the current per-call price (with your markup).

Operations

OperationEndpointDescription
Text to completionPOST /api/v1/generateBase generation from a text prompt.
Poll taskGET /api/v1/task/{id}?model=claude-sonnet-4-6Retrieve state and result URLs.

Input parameters

FieldTypeRequiredValues / example
prompttextarearequiredSend a message
MODELtextoptional
memoryselectoptionalfalse, true
function_callingselectoptionalfalse, true
thinkingselectoptionalfalse, true
max_tokensnumberoptional4096
streamselectoptionalfalse, 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-6","input":{"prompt":"Write a punchy, memorable product tagline for a solar-powered hiking backpack, then explain your reasoning in one crisp line.","MODEL":"claude-sonnet-4-6","memory":"false","function_calling":"false","thinking":"true","max_tokens":8,"stream":"true"}}'