Seedance 2.0 | Special Offer ✦ 10% OFF NOW
anthropic
anthropic/claude-sonnet-4

anthropic/claude-sonnet-4

200,000 context · $3.00/M input tokens · $15.00/M output tokens

Claude Sonnet 4 significantly enhances the capabilities of its predecessor, Sonnet 3.7, excelling in both coding and reasoning tasks with improved precision and controllability. Achieving state-of-the-art performance on SWE-bench (72.7%),...

Fiyatlandırma

Kullandıkça öde

Ön ödeme yok, yalnızca kullandığınız kadar ödeyin

Giriş$3.00 / M Tokens
Çıkış$15.00 / M Tokens

API Kullanımı

API'mizle entegre etmek için aşağıdaki kod örneklerini kullanın:

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-4",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)

Model Tanıtımı

Anthropic claude-sonnet-4

anthropic claude-sonnet-4


Why It Looks Great

  • Large Language Model architecture for efficient processing
  • 1000000 context window for long document handling
  • Competitive pricing at $3.3/$16.5 per million tokens

Key Features

  • Context Window: 1000000 tokens
  • Max Output: 64000 tokens
  • Vision: Supported
  • Function Calling: Supported

Specifications

SpecificationValue
ProviderAnthropic
Model TypeLarge Language Model (LLM)
ArchitectureN/A
Context Window1000000 tokens
Max Output64000 tokens
InputText
OutputText
VisionSupported
Function CallingSupported

Pricing

Token TypeCost per Million Tokens
Input$3.3
Output$16.5

How to Use

  1. Write your prompt — describe the task, provide context, and specify desired output format.
  2. Submit — the model processes your request and returns the response.

API Integration

Base URL: https://llm.wavespeed.ai/v1 API Endpoint: chat/completions Model ID: anthropic/claude-sonnet-4


API Usage

Python SDK

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-4",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)

cURL

curl https://llm.wavespeed.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "anthropic/claude-sonnet-4",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Notes

  • Model: anthropic/claude-sonnet-4
  • Provider: Anthropic

Bilgi

Sağlayıcıanthropic
Türllm

Desteklenen İşlevsellik

Giriş
MetinGörsel
Çıkış
Metin
Bağlam200,000
Maks. Çıkış64,000
Vision✓ Destekleniyor
Function Calling✓ Destekleniyor

API Erişim Kılavuzu

Base URLhttps://llm.wavespeed.ai/v1
API Endpointchat/completions
Model IDanthropic/claude-sonnet-4

Claude Sonnet 4 API

anthropic/claude-sonnet-4

Claude Sonnet 4 significantly enhances the capabilities of its predecessor, Sonnet 3.7, excelling in both coding and reasoning tasks with improved precision and controllability. Achieving state-of-the-art performance on SWE-bench (72.7%),...

Giriş

$3 /M

Çıkış

$15 /M

Bağlam

200K

Maks. Çıkış

64K

Vision

Destekleniyor

Araç Kullanımı

Destekleniyor

Claude Sonnet 4'i WaveSpeedAI'da deneyin

Birleşik API'miz aracılığıyla Claude Sonnet 4'e erişin — OpenAI uyumlu, soğuk başlatma yok, şeffaf fiyatlandırma.

Playground'u Aç

Claude Sonnet 4 hakkında sık sorulan sorular

Claude Sonnet 4 API ücreti ne kadar?+

WaveSpeedAI fiyatlandırması: milyon giriş tokenı başına $3.00 ve milyon çıkış tokenı başına $15.00. Prompt caching ve toplu işleme ayrı faturalanır ve uzun, tekrar eden yüklerde etkin maliyeti düşürür.

Claude Sonnet 4'in bağlam penceresi nedir?+

Claude Sonnet 4 istek başına 200K bağlam tokenını ve 64K çıkış tokenını destekler.

Claude Sonnet 4 OpenAI uyumlu mu?+

Evet. WaveSpeedAI, Claude Sonnet 4 modelini https://llm.wavespeed.ai/v1 adresindeki OpenAI uyumlu endpoint üzerinden sunar. Resmi OpenAI SDK'sını WaveSpeedAI API anahtarınızla bu base URL'ye yöneltin — başka kod değişikliği gerekmez.

Claude Sonnet 4'e nasıl başlarım?+

WaveSpeedAI'a giriş yapın, Access Keys'te bir API anahtarı oluşturun, ardından yukarıda gösterilen model id ile https://llm.wavespeed.ai/v1/chat/completions adresine bir istek gönderin. Yeni hesaplar Claude Sonnet 4'i değerlendirmek için ücretsiz krediler alır.

İlgili LLM API'leri