Seedream 5.0 Pro is LIVE | Try in Image Generator →
anthropic
anthropic/claude-sonnet-4.5

anthropic/claude-sonnet-4.5

Release date: 2025-09-30

1,000,000 context · $3.00/M input$2.85/M input · $15.00/M output$14.25/M output5% off

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...

Pricing

Pay-per-use

No upfront costs, pay only for what you use

Input
$3.00 / M Tokens$2.85 / M Tokens
Output
$15.00 / M Tokens$14.25 / M Tokens
Cache Read
$0.30 / M Tokens$0.28 / M Tokens
Cache Write
$3.75 / M Tokens$3.56 / M Tokens

Try the model

anthropic/claude-sonnet-4.5
Online
anthropic
Hi! I am a helpful AI assistant. What can I do for you?
Ready to use this model in a local coding agent?Agent setup

API Usage

Use the following code examples to integrate with our API:

import OpenAI from 'openai';

if (!process.env.WAVESPEED_API_KEY) throw new Error('Set WAVESPEED_API_KEY');
const client = new OpenAI({
  apiKey: process.env.WAVESPEED_API_KEY,
  baseURL: 'https://llm.wavespeed.ai/v1',
  timeout: 120_000,
  maxRetries: 2,
});

try {
  const response = await client.chat.completions.create({
    model: 'anthropic/claude-sonnet-4.5',
    messages: [{ role: 'user', content: 'Hello!' }],
  });
  console.log(response.choices[0]?.message?.content ?? '');
} catch (error) {
  console.error('LLM request failed:', error);
  process.exitCode = 1;
}

Model Introduction

Anthropic claude-sonnet-4.5

anthropic claude-sonnet-4.5


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.5


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.5",
    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.5",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Notes

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

Info

Provideranthropic
Typellm

Supported Functionality

Input
TextImage
Output
Text
Context1,000,000
Max Output64,000
Vision✓ Supported
Function Calling✓ Supported

API Access Guide

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

Claude Sonnet 4.5 API

anthropic/claude-sonnet-4.5

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...

Input

$3$2.85 /M

Output

$15$14.25 /M

Discount

5% off

Context

1000K

Max Output

64K

Vision

Supported

Tool Use

Supported

Try Claude Sonnet 4.5 on WaveSpeedAI

Access Claude Sonnet 4.5 through our unified API — OpenAI-compatible, no cold starts, transparent pricing.

Frequently Asked Questions about Claude Sonnet 4.5

How much does Claude Sonnet 4.5 cost via the API?+

Pricing on WaveSpeedAI: $2.85 per million input tokens and $14.25 per million output tokens. Prompt caching and batch processing are billed separately and reduce effective cost on long, repetitive workloads.

What is the context window of Claude Sonnet 4.5?+

Claude Sonnet 4.5 supports up to 1000K tokens of context with up to 64K tokens of output per request.

Is Claude Sonnet 4.5 OpenAI-compatible?+

WaveSpeedAI exposes Claude Sonnet 4.5 at https://llm.wavespeed.ai/v1 through the OpenAI-compatible Chat Completions interface. Most OpenAI SDK clients work by changing the base URL and API key; optional fields depend on the selected model.

How do I get started with Claude Sonnet 4.5?+

Sign in to WaveSpeedAI, create an API key in Access Keys, then send a request to https://llm.wavespeed.ai/v1/chat/completions with the model id shown above. Check the current model catalog for availability, capabilities, and pricing.

Related LLM APIs

Claude Sonnet 4.5 | Anthropic LLM API Pricing & Performance | WaveSpeedAI