anthropic/claude-sonnet-5
Tanggal rilis: 2026-07-01
1,000,000 context · $2.00/M input tokens · $10.00/M output tokens
Claude Sonnet 5 is Anthropic’s most capable Sonnet-class model, designed for frontier-level performance across coding, agent workflows, and professional tasks. It supports adaptive reasoning with selectable effort levels (low, medium, high, max, x-high), long-context processing up to large-scale documents, and multimodal inputs including text, images, and files. The model also includes updated tokenization and built-in safeguards for handling sensitive or high-risk dual-use scenarios.
Bayar sesuai pemakaian
Tanpa biaya di muka, bayar hanya sesuai penggunaan
Gunakan contoh kode berikut untuk integrasi dengan API kami:
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["WAVESPEED_API_KEY"],
base_url="https://llm.wavespeed.ai/v1",
timeout=120.0,
max_retries=2,
)
try:
response = client.chat.completions.create(
model="anthropic/claude-sonnet-5",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content or "")
except Exception as exc:
raise SystemExit(f"LLM request failed: {exc}") from excSonnet 5 is Anthropic's most capable Sonnet-class model, with frontier performance across coding, agents, and professional work. It supports adaptive thinking with selectable reasoning effort levels (low, medium, high, max,...
This model is imported from OpenRouter metadata and exposed through the WaveSpeed AI OpenAI-compatible API for chat completions and compatible application workflows.
| Specification | Value |
|---|---|
| Provider | anthropic |
| Model Type | Chat Completions model |
| Architecture | text+image+file->text |
| Context Window | 1000000 tokens |
| Max Input | 872000 tokens |
| Max Output | 128000 tokens |
| Input | Text, Image, file |
| Output | Text |
| Vision | Supported |
| Function Calling | Supported |
| Structured Outputs | Supported |
| OpenRouter Created | July 1, 2026 |
Base URL: https://llm.wavespeed.ai/v1
API Endpoint: chat/completions
Model ID: anthropic/claude-sonnet-5
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://llm.wavespeed.ai/v1"
)
response = client.chat.completions.create(
model="anthropic/claude-sonnet-5",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)
anthropic/claude-sonnet-5
Claude Sonnet 5 is Anthropic’s most capable Sonnet-class model, designed for frontier-level performance across coding, agent workflows, and professional tasks. It supports adaptive reasoning with selectable effort levels (low, medium, high, max, x-high), long-context processing up to large-scale documents, and multimodal inputs including text, images, and files. The model also includes updated tokenization and built-in safeguards for handling sensitive or high-risk dual-use scenarios.
Input
$2 /M
Output
$10 /M
Konteks
1000K
Output Maks.
128K
Vision
Didukung
Penggunaan Tool
Didukung
Akses Claude Sonnet 5 melalui API terpadu kami — kompatibel dengan OpenAI, tanpa cold start, harga transparan.
Harga di WaveSpeedAI: $2.00 per juta token input dan $10.00 per juta token output. Prompt caching dan batch processing ditagih terpisah dan mengurangi biaya efektif pada beban kerja yang panjang dan berulang.
Claude Sonnet 5 mendukung hingga 1000K token konteks dengan hingga 128K token output per permintaan.
WaveSpeedAI menyediakan Claude Sonnet 5 di https://llm.wavespeed.ai/v1 melalui antarmuka Chat Completions yang kompatibel dengan OpenAI. Sebagian besar klien OpenAI SDK cukup mengganti base URL dan API key; field opsional bergantung pada model.
Masuk ke WaveSpeedAI, buat API key di Access Keys, lalu kirim permintaan ke https://llm.wavespeed.ai/v1/chat/completions dengan model id yang ditampilkan di atas. Lihat katalog model terbaru untuk ketersediaan, kemampuan, dan harga.