Back to Models

Anthropic: Claude Sonnet 4

anthropic/claude-sonnet-4
May 22, 2025200K context64K max output$3.00/M in · $15.00/M outReasoningDeprecates 2026-06-15

Upcoming deprecation

This model will be deprecated on 2026-06-15. Please plan to migrate to an alternative model before this date.

Description

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%), Sonnet 4 balances capability and computational efficiency, making it suitable for a broad range of applications from routine coding tasks to complex software development projects. Key enhancements include improved autonomous codebase navigation, reduced error rates in agent-driven workflows, and increased reliability in following intricate instructions. Sonnet 4 is optimized for practical everyday use, providing advanced reasoning capabilities while maintaining efficiency and responsiveness in diverse internal and external scenarios.

Read more at the blog post here

Specifications

Provider
anthropic
Context Length
200K
Max Output
64K
Modality
Inimagetextfile
Outtext

Pricing

Type200K>200K
Input$3.00$6.00
Output$15.00$22.50
Cache Read$0.30$0.60
Cache Write$3.75$7.50
Web Search$0.01 / call

Quick Start

curl https://api.ominigate.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-omg-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anthropic/claude-sonnet-4",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
Anthropic: Claude Sonnet 4 — Pricing & API on OminiGate