claude-4-sonnet

Anthropic's mid-size model with superior intelligence for high-volume uses in coding, in-depth research, agents, & more.

Context
200K
Input price
$3.3/1M tokens
Output price
$16.5/1M tokens

Capabilities

Reasoning & Interaction
Tool Calling
Output Control
Structured Output
JSON Mode
Infrastructure
Streaming

Details

Provider DeepInfra
Creator Anthropic
License—
Statusactive
Typechat
Input modalitiestext, image
Output modalitiestext
Open weightNo
Parameters—
Architecture—
Context window200K tokens
Max input—
Max output—
Reasoning tokens—
Knowledge cutoff—
Release date—
Sourceofficial

Tools

Function Callingfunction_calling
Call external functions and APIs

Endpoints

Chat CompletionsPOST
Generate chat responses with messageshttps://api.deepinfra.com/v1/openai/v1/chat/completions

Pricing

Input
$3.3
Output
$16.5
Cache write
—
Cache read
—
Batch in
—
Batch out
—

Family Comparison: claude-sonnet

ModelContextMax outPricing
claude-sonnet-5-51M128K$2$10
claude-sonnet-4-61M128K$3$15
claude-sonnet-51M128K$3$15
claude-3-7-sonnet-latest200K—$3.3$16.5
claude-4-sonnet200K—$3.3$16.5

API

GET/v1/models/deepinfra/anthropic/claude-4-sonnet