Claude Sonnet 4.5
anthropic/claude-sonnet-4.5Claude Sonnet 4.5 is Anthropic’s most advanced Sonnet model to date, optimized for real-world agents and coding workflows. It delivers state-of-the-art performance on coding benchmarks such as SWE-bench Verified, with improvements across system design, code security, and specification adherence. The model is designed for extended autonomous operation, maintaining task continuity across sessions and providing fact-based progress tracking.
Leggi di più- Prezzo input
- $2.55
$3.00USD / 1M token - Prezzo output
- $12.75
$15.00USD / 1M token - Lettura da cache
- $0.26
$0.30USD / 1M token - Scrittura in cache
- $3.19
$3.75USD / 1M token - Finestra di contesto
- 200K
- Output massimo
- 64K
Specifiche
- Input
- Testo, immagine
- Output
- Testo
Informazioni su questo modello
Claude Sonnet 4.5 is Anthropic’s most advanced Sonnet model to date, optimized for real-world agents and coding workflows. It delivers state-of-the-art performance on coding benchmarks such as SWE-bench Verified, with improvements across system design, code security, and specification adherence. The model is designed for extended autonomous operation, maintaining task continuity across sessions and providing fact-based progress tracking.
Sonnet 4.5 also introduces stronger agentic capabilities, including improved tool orchestration, speculative parallel execution, and more efficient context and memory management. With enhanced context tracking and awareness of token usage across tool calls, it is particularly well-suited for multi-context and long-running workflows. Use cases span software engineering, cybersecurity, financial analysis, research agents, and other domains requiring sustained reasoning and tool use.
Prova il modello
Playground
Scrivi un prompt per provare questo modello. L'utilizzo viene fatturato secondo i prezzi indicati.
Prova un prompt
Aggiungi un'immagine (opzionale)
La tua risposta apparirà qui
Scegli un esempio oppure scrivi un prompt, poi fai clic su Esegui.
Inizia a costruire
Invia la tua prima richiesta
Scegli una delle API supportate con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/chat/completions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-sonnet-4.5",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2048
}'I campi qui sotto descrivono la Chat Completions API. Messages API usa il formato nativo di richiesta e risposta del vendor, come mostrato nell'esempio sopra.
Schema di input
10 parametri · 1 obbligatori · 9 facoltativi
| Parametro | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
messages | object[] | Obbligatorio | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
stop | string[] | Facoltativo | Sequences where the model stops generating. The stop sequence is not included in the output. |
tools | array | Facoltativo | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
top_k | integer | Facoltativo | Only sample from the k most likely next tokens. · Min: 0 |
top_p | number | Facoltativo | Nucleus sampling: only tokens within this cumulative probability are considered. · Min: 0 · Max: 1 |
stream | boolean | Facoltativo | Stream the response as server-sent events instead of returning it in one piece. · Predefinito: false |
max_tokens | integer | Facoltativo | Maximum number of tokens to generate in the response. · Max: 64000 |
temperature | number | Facoltativo | Sampling temperature. Higher values make output more random; lower values make it more focused. · Min: 0 · Max: 2 · Predefinito: 1 |
tool_choice | string | Facoltativo | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | Facoltativo | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
Schema di output
| Campo | Tipo | Descrizione |
|---|---|---|
id | string | Identificatore univoco del completamento |
object | string | Tipo di oggetto, ad esempio "chat.completion" |
model | string | Modello usato per il completamento |
choices | array | Elenco delle alternative di completamento |
choices[].message.content | string | Contenuto di testo generato |
choices[].finish_reason | string | Motivo per cui la generazione si è interrotta |
usage.prompt_tokens | integer | Numero di token nel prompt |
usage.completion_tokens | integer | Numero di token nel completamento |
usage.total_tokens | integer | Token totali utilizzati |
Domande
FAQ
Come chiamo Anthropic Claude Sonnet 4.5 tramite SandBase?
Crea una chiave API SandBase, poi invia richieste con l'ID modello "anthropic/claude-sonnet-4.5" a Chat Completions API (/v1/chat/completions) o Messages API (/v1/messages) su https://api.sandbase.ai. Gli esempi di richiesta in questa pagina mostrano il payload esatto.
Quanto costa Anthropic Claude Sonnet 4.5?
$2.55 per 1M token di input e $12.75 per 1M token di output con l'attuale sconto del 15% (prezzo di listino $3 / $15), addebitato per richiesta dal tuo saldo SandBase.
Qual è la finestra di contesto di Anthropic Claude Sonnet 4.5?
200K token di contesto, con fino a 64K token di output per risposta.
Quali funzionalità supporta Anthropic Claude Sonnet 4.5?
Anthropic Claude Sonnet 4.5 supporta visione (input immagini), ragionamento, function calling, output strutturato. Consulta le Specifiche sopra per l'elenco completo.
Mi serve un account Anthropic separato?
No. Una sola chiave API e un solo saldo SandBase ti danno accesso a Anthropic Claude Sonnet 4.5 e agli altri modelli del catalogo; non è necessario registrarsi separatamente su Anthropic.
