Introduction
Sonnet 5 reads up to 1,000,000 tokens here, but the application must resend the context needed for each new call. Sonnet 5 can propose calls to your functions, but tool execution, permission checks and interpretation of results stay in your application.
| Field | Value |
|---|---|
| Input | Text |
| Output | Text |
| Required | messages |
| Optional |
|
| Input context | 1,000,000 tokens |
| Maximum output | 64,000 tokens (default 4,096) |
| Response | Synchronous chat.completion / SSE |
| Settlement | Metered input / cached input / output |
Key features & highlights
Claude Sonnet 5 — Work profile
Claude Sonnet 5 API focuses on agent workflows: a request can carry a plan, tool definitions and the evidence collected so far.
Claude Sonnet 5 — Context and output
Sonnet 5 reads up to 1,000,000 tokens here, but the application must resend the context needed for each new call.
Claude Sonnet 5 — Tool integration
Sonnet 5 can propose calls to your functions, but tool execution, permission checks and interpretation of results stay in your application.
Request parameters
| Parameter | Required | Description |
|---|---|---|
messages | Yes | Give Claude Sonnet 5 the ordered conversation as text strings or text/image_url parts; system and developer carry instructions, and tool replies must reference their |
max_tokens | No | For Claude Sonnet 5, |
reasoning_effort | No | Select low, medium, high for Claude Sonnet 5; the default here is medium, and additional thinking can consume more output tokens without changing the per-token rate. |
stop | No | To end a Claude Sonnet 5 response at an application delimiter, supply one string or up to 4 sequences; none is preset, the matching sequence is omitted, and actual generated tok… at least 1 characters · at least 1 items · at most 4 items |
tools | No | Describe up to 128 functions for Claude Sonnet 5, using names, descriptions and JSON-schema parameters that your application can actually execute. at most 128 items |
parallel_tool_calls | No | When Claude Sonnet 5 requests independent lookups, true permits multiple calls in one turn; false limits the turn to one call, with true as the default and no change to token ra… Default: |
tool_choice | No | For Claude Sonnet 5, choose auto, none, required or a named-function object to control tool selection; validate the resulting call before execution. |
Pricing
Input $2 / Output $10 per 1 million tokens
Use cases
Claude Sonnet 5 — Source material
Give Sonnet 5 a concrete completion criterion, such as a reviewed patch or an extracted record, so a tool loop has a clear stopping point.
Claude Sonnet 5 — Workflow
The Sonnet 5 endpoint caps output at 64,000 tokens; this is a SpicyAPI limit rather than the original model's 128,000-token maximum.
Claude Sonnet 5 — Tool integration
Sonnet 5 can propose calls to your functions, but tool execution, permission checks and interpretation of results stay in your application.
Claude Sonnet 5 — Work profile
Claude Sonnet 5 API focuses on agent workflows: a request can carry a plan, tool definitions and the evidence collected so far.
Prompt guide & pro tips
Claude Sonnet 5 — Source material
Give Sonnet 5 a concrete completion criterion, such as a reviewed patch or an extracted record, so a tool loop has a clear stopping point.
Claude Sonnet 5 — Response budget
Budget Sonnet 5 output for both reasoning and the final result; its default
max_tokensof 4,096 may need raising for a multi-step report.Claude Sonnet 5 — Tool integration
Sonnet 5 can propose calls to your functions, but tool execution, permission checks and interpretation of results stay in your application.
Claude Sonnet 5 — Generation controls
Sonnet 5 supports low, medium and high effort on this endpoint, with medium as the starting point for ordinary agent steps.
Claude Sonnet 5 — Work profile
Claude Sonnet 5 API focuses on agent workflows: a request can carry a plan, tool definitions and the evidence collected so far.
Claude Sonnet 5 — Source material
Give Sonnet 5 a concrete completion criterion, such as a reviewed patch or an extracted record, so a tool loop has a clear stopping point.
Claude Sonnet 5 — Context and output
Sonnet 5 reads up to 1,000,000 tokens here, but the application must resend the context needed for each new call.
Claude Sonnet 5 — Workflow
The Sonnet 5 endpoint caps output at 64,000 tokens; this is a SpicyAPI limit rather than the original model's 128,000-token maximum.
Claude Sonnet 5 — Generation controls
Sonnet 5 supports low, medium and high effort on this endpoint, with medium as the starting point for ordinary agent steps.
Claude Sonnet 5 — Response budget
Budget Sonnet 5 output for both reasoning and the final result; its default max_tokens of 4,096 may need raising for a multi-step report.
Claude Sonnet 5 — Tool integration
Sonnet 5 can propose calls to your functions, but tool execution, permission checks and interpretation of results stay in your application.
Claude Sonnet 5 — Content policy
With Sonnet 5, Anthropic’s safeguards cover the prompt and the response, so an adult-content request can be rejected. A content rejection is not charged; SpicyAPI adds no review and has no switch to disable the model’s restrictions. For a separately tested content range, consult the Sonnet 5.5 page.
A Sonnet 5 agent can receive a screenshot through image_url and propose its next step in text, but cannot receive audio or video parts here.
Use Claude Sonnet 5 only for lawful, consensual adult material; content involving minors is prohibited.
/v1/chat/completions
For work produced with Claude Sonnet 5, check your rights to the source material and review the result before publishing or acting on it.
API quick start
curl --fail-with-body -sN https://api.spicyapi.ai/v1/chat/completions \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "anthropic/claude-sonnet-5/chat",
"messages": [
{
"role": "user",
"content": "Summarise the following release notes into three bullet points."
}
],
"stream": true
}' \
| jq --unbuffered -Rrj 'select(startswith("data: ")) | .[6:] | select(. != "[DONE]") | fromjson | if .error then "\n[error] \(.error.message)\n" else (.choices[0].delta.content? // empty) end'
See the API reference for authentication, the complete schema, polling, and error handling.

















