Claude Sonnet 4
Ideal balance of intelligence and speed. Strong coding abilities, excellent instruction following, and reliable for production workloads.
Quick Overview
Pricing
Simple, transparent token-based pricing. Pay only for what you use.
Capabilities
Core strengths and supported features of Claude Sonnet 4.
Performance
Context window capacity and inference speed characteristics.
Context Window
Extended context window suitable for processing long documents, large codebases, and multi-turn conversations with extensive history.
Speed: Fast
Optimized for low-latency responses. Ideal for real-time applications, chatbots, and interactive experiences where response time is critical.
Quick Start
Get started with Claude Sonnet 4 in just a few lines of code.
import OriginalPoint from "originalpoint";
const client = new OriginalPoint({
apiKey: process.env.ORIGINALPOINT_API_KEY,
});
const response = await client.chat.completions.create({
model: "claude-sonnet-4",
messages: [
{
role: "user",
content: "Hello, how can you help me today?",
},
],
max_tokens: 1024,
});
console.log(response.choices[0].message.content);More from Anthropic
Explore other models available from Anthropic.
Claude Opus 4
FrontierAnthropic's most powerful model. Exceptional at extended analysis, nuanced writing, advanced coding, and agentic tasks. Known for safety, reliability, and instruction-following.
Claude Haiku 3.5
EconomyFast and affordable model optimized for lightweight tasks. Excellent for customer support, content moderation, and high-volume processing.