Get started
Anthropic
Anthropic

Claude Sonnet 4 20250514

Going away: May 14, 2026
Claude Sonnet 4 20250514 is a reasoning model by Anthropic with vision, function calling, prompt caching, structured output — designed for complex, multi-step problem solving where accuracy matters more than speed. It supports a 1M token context window with up to 64K tokens of output. Priced at $3 per million input tokens and $15 per million output tokens. Access Claude Sonnet 4 20250514 through Inworld Router with OpenAI SDK compatibility, built-in failover, and intelligent routing across providers.
Function CallingReasoningPrompt CachingResponse SchemaVisionreasoningCapability

Step 1 — Create Router

curl --location 'https://api.inworld.ai/router/v1/routers' \ --header 'Authorization: Basic <your-api-key>' \ --header 'Content-Type: application/json' \ --data '{ "name": "compare-frontier-models", "defaultRoute": { "route_id": "default", "variants": [ { "variant": { "variant_id": "anthropic/claude-sonnet-4-20250514-a", "model_id": "anthropic/claude-sonnet-4-20250514" }, "weight": 33 }, { "variant": { "variant_id": "anthropic/claude-3-haiku-20240307-b", "model_id": "anthropic/claude-3-haiku-20240307" }, "weight": 33 }, { "variant": { "variant_id": "anthropic/claude-haiku-4-5-20251001-c", "model_id": "anthropic/claude-haiku-4-5-20251001" }, "weight": 34 } ] } }'

Step 2 — Chat Completion

curl --location 'https://api.inworld.ai/v1/chat/completions' \ --header 'Authorization: Basic <your-api-key>' \ --header 'Content-Type: application/json' \ --data '{ "model": "inworld/compare-frontier-models", "messages": [{"role": "user", "content": "Hello!"}] }'

Claude Sonnet 4 20250514 pricing and providers

Access Claude Sonnet 4 20250514 through Anthropic via Inworld Router or Realtime API. By using the AI provider(s) below you acknowledge you reviewed and agree to their terms listed in the Legal section under the AI provider's name.
CapabilitiesInput modalitiesOutput modalities
AnthropicAnthropic1M64K$3.00$15.00+3
Going away: May 14, 2026

Other Anthropic models available through Inworld

Compare Claude Sonnet 4 20250514 with other Anthropic models available through Inworld Router or Realtime API.
CapabilitiesInput modalitiesOutput modalitiesInference provider
AnthropicClaude 3 Haiku 20240307200K4.1K$0.25$1.25+1
AnthropicClaude Haiku 4.5 20251001200K64K$1.00$5.00+3
AnthropicClaude Opus 4 20250514200K32K$15.00$75.00+3
AnthropicClaude Opus 4.1 20250805200K32K$15.00$75.00+3
AnthropicClaude Opus 4.5 20251101200K64K$5.00$25.00+3
AnthropicClaude Opus 4.61M128K$5.00$25.00+3
AnthropicClaude Opus 4.71M128K$5.00$25.00+3
AnthropicClaude Sonnet 4.5 20250929200K64K$3.00$15.00+4
AnthropicClaude Sonnet 4.61M64K$3.00$15.00+3

Start building with Claude Sonnet 4 20250514

Access Claude Sonnet 4 20250514 and every other model through Inworld Router or Realtime API. Create your free account and start routing in minutes.
Copyright © 2021-2026 Inworld AI
Claude Sonnet 4 20250514 by Anthropic — Pricing, Specs & API Access | Inworld