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.
Daha fazla oku- Girdi fiyatı
- $2.55
$3.00USD / 1M token - Çıktı fiyatı
- $12.75
$15.00USD / 1M token - Önbellek okuma
- $0.26
$0.30USD / 1M token - Önbellek yazma
- $3.19
$3.75USD / 1M token - Bağlam penceresi
- 200K
- Maks. çıktı
- 64K
Teknik özellikler
- Girdi
- Metin, görsel
- Çıktı
- Metin
Bu model hakkında
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.
Modeli deneyin
Oynatma Alanı
Bu modeli denemek için bir istem yazın. Kullanım, gösterilen fiyatlar üzerinden ücretlendirilir.
Bir istem deneyin
Bir görsel ekleyin (isteğe bağlı)
Yanıtınız burada görünecek
Bir örnek seçin veya bir istem yazın, ardından Çalıştır'a tıklayın.
Geliştirmeye başlayın
İlk isteğinizi gönderin
Birleşik kimlik doğrulama ve kullanım takibi sunan desteklenen API'lerden birini seçin.
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
}'Aşağıdaki alanlar Chat Completions API'sini açıklar. Yukarıdaki örnekte gösterildiği gibi, Messages API sağlayıcının yerel istek ve yanıt biçimini kullanır.
Giriş Şeması
10 parametre · 1 zorunlu · 9 isteğe bağlı
| Parametre | Tür | Zorunlu | Açıklama |
|---|---|---|---|
messages | object[] | Zorunlu | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
stop | string[] | İsteğe bağlı | Sequences where the model stops generating. The stop sequence is not included in the output. |
tools | array | İsteğe bağlı | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
top_k | integer | İsteğe bağlı | Only sample from the k most likely next tokens. · Min: 0 |
top_p | number | İsteğe bağlı | Nucleus sampling: only tokens within this cumulative probability are considered. · Min: 0 · Maks: 1 |
stream | boolean | İsteğe bağlı | Stream the response as server-sent events instead of returning it in one piece. · Varsayılan: false |
max_tokens | integer | İsteğe bağlı | Maximum number of tokens to generate in the response. · Maks: 64000 |
temperature | number | İsteğe bağlı | Sampling temperature. Higher values make output more random; lower values make it more focused. · Min: 0 · Maks: 2 · Varsayılan: 1 |
tool_choice | string | İsteğe bağlı | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | İsteğe bağlı | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
Çıkış Şeması
| Alan | Tür | Açıklama |
|---|---|---|
id | string | Tamamlamanın benzersiz tanımlayıcısı |
object | string | Nesne türü, örn. "chat.completion" |
model | string | Tamamlamada kullanılan model |
choices | array | Tamamlama seçeneklerinin listesi |
choices[].message.content | string | Oluşturulan metin içeriği |
choices[].finish_reason | string | Oluşturmanın durmasının nedeni |
usage.prompt_tokens | integer | İstemdeki token sayısı |
usage.completion_tokens | integer | Tamamlamadaki token sayısı |
usage.total_tokens | integer | Kullanılan toplam token sayısı |
Sorular
SSS
Anthropic Claude Sonnet 4.5'i SandBase üzerinden nasıl çağırırım?
Bir SandBase API anahtarı oluşturun, ardından model kimliği "anthropic/claude-sonnet-4.5" ile https://api.sandbase.ai adresindeki Chat Completions API (/v1/chat/completions) veya Messages API (/v1/messages) uç noktalarına istek gönderin. Bu sayfadaki istek örnekleri tam yükü gösterir.
Anthropic Claude Sonnet 4.5'in fiyatı nedir?
Mevcut %15 indirimle 1M giriş tokenı başına $2.55 ve 1M çıkış tokenı başına $12.75 (liste fiyatı $3 / $15), istek başına SandBase bakiyenizden tahsil edilir.
Anthropic Claude Sonnet 4.5'in bağlam penceresi nedir?
200K token bağlam, yanıt başına en fazla 64K çıkış tokenı ile.
Anthropic Claude Sonnet 4.5 hangi özellikleri destekliyor?
Anthropic Claude Sonnet 4.5, görsel algılama (görüntü girişi), akıl yürütme, fonksiyon çağrısı, yapılandırılmış çıktı destekler. Tam liste için yukarıdaki Teknik Özellikler bölümüne bakın.
Ayrı bir Anthropic hesabına ihtiyacım var mı?
Hayır. Tek bir SandBase API anahtarı ve bakiyesi size Anthropic Claude Sonnet 4.5 ve katalogdaki diğer modellere erişim sağlar; Anthropic için ayrıca kayıt olmanız gerekmez.
