Introduction
Keep a Sonnet 4.5 conversation within the endpoint budget by selecting relevant exchanges rather than assuming permanent memory. A Sonnet 4.5 tool loop needs your application to execute calls and return results with the matching tool_call_id.
| Field | Value |
|---|---|
| Input | Text |
| Output | Text |
| Required | messages |
| Optional |
|
| Input context | 198,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 4.5 — Work profile
Claude Sonnet 4.5 API is a coding and agent model offered here with a 198,000-token input limit and 64,000-token reply limit.
Claude Sonnet 4.5 — Context and output
Keep a Sonnet 4.5 conversation within the endpoint budget by selecting relevant exchanges rather than assuming permanent memory.
Claude Sonnet 4.5 — Tool integration
A Sonnet 4.5 tool loop needs your application to execute calls and return results with the matching tool_call_id.
Request parameters
| Parameter | Required | Description |
|---|---|---|
messages | Yes | Give Claude Sonnet 4.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 4.5, |
stop | No | To end a Claude Sonnet 4.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 t… at least 1 characters · at least 1 items · at most 4 items |
temperature | No | For Claude Sonnet 4.5 drafts or classifications, temperature accepts 0 to 1 and defaults to 1; compare changes on the same material, without assuming identical replies at low se… |
top_k | No | For Claude Sonnet 4.5, |
top_p | No | For Claude Sonnet 4.5, |
tools | No | Describe up to 128 functions for Claude Sonnet 4.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 4.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… Default: |
tool_choice | No | For Claude Sonnet 4.5, choose auto, none, required or a named-function object to control tool selection; validate the resulting call before execution. |
Pricing
Input $2.70 / Output $13.50 per 1 million tokens
Use cases
Claude Sonnet 4.5 — Source material
Use Sonnet 4.5 for a bounded analysis: provide the source material and specify exactly which decision the answer should support.
Claude Sonnet 4.5 — Workflow
Sonnet 4.5 exposes temperature, top_p and top_k here, making sampling an explicit choice for drafting or classification.
Claude Sonnet 4.5 — Tool integration
A Sonnet 4.5 tool loop needs your application to execute calls and return results with the matching tool_call_id.
Claude Sonnet 4.5 — Work profile
Claude Sonnet 4.5 API is a coding and agent model offered here with a 198,000-token input limit and 64,000-token reply limit.
Prompt guide & pro tips
Claude Sonnet 4.5 — Source material
Use Sonnet 4.5 for a bounded analysis: provide the source material and specify exactly which decision the answer should support.
Claude Sonnet 4.5 — Response budget
For Sonnet 4.5 extraction, describe the output fields and validate the answer; this endpoint does not expose
response_format.Claude Sonnet 4.5 — Tool integration
A Sonnet 4.5 tool loop needs your application to execute calls and return results with the matching
tool_call_id.Claude Sonnet 4.5 — Generation controls
This Sonnet 4.5 endpoint has no
reasoning_effortfield; do not copy that setting from a later Sonnet integration.
Claude Sonnet 4.5 — Work profile
Claude Sonnet 4.5 API is a coding and agent model offered here with a 198,000-token input limit and 64,000-token reply limit.
Claude Sonnet 4.5 — Source material
Use Sonnet 4.5 for a bounded analysis: provide the source material and specify exactly which decision the answer should support.
Claude Sonnet 4.5 — Context and output
Keep a Sonnet 4.5 conversation within the endpoint budget by selecting relevant exchanges rather than assuming permanent memory.
Claude Sonnet 4.5 — Workflow
Sonnet 4.5 exposes temperature, top_p and top_k here, making sampling an explicit choice for drafting or classification.
Claude Sonnet 4.5 — Generation controls
This Sonnet 4.5 endpoint has no reasoning_effort field; do not copy that setting from a later Sonnet integration.
Claude Sonnet 4.5 — Response budget
For Sonnet 4.5 extraction, describe the output fields and validate the answer; this endpoint does not expose response_format.
Claude Sonnet 4.5 — Tool integration
A Sonnet 4.5 tool loop needs your application to execute calls and return results with the matching tool_call_id.
Claude Sonnet 4.5 — Content policy
Sonnet 4.5 applies Anthropic’s content rules to requests and generated replies, and adult material may be refused. SpicyAPI performs no additional review, cannot lift these restrictions and does not charge for content-rejected requests. The Sonnet 5.5 page records separate SpicyAPI content tests.
For Sonnet 4.5 classification, attach an image_url with the category definitions and request a textual label; image generation, audio parts and video parts are outside this endpoint.
Use Claude Sonnet 4.5 only for lawful, consensual adult material; content involving minors is prohibited.
/v1/chat/completions
Sonnet 4.5 applies Anthropic’s content rules to requests and generated replies, and adult material may be refused. SpicyAPI performs no additional review, cannot lift these restrictions and does not charge for content-rejected requests. The Sonnet 5.5 page records separate SpicyAPI content tests. Use Claude Sonnet 4.5 only for lawful, consensual adult material; content involving minors is prohibited.
For work produced with Claude Sonnet 4.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-4.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.

















