AnthropicFrontier

Claude Sonnet 4

Ideal balance of intelligence and speed. Strong coding abilities, excellent instruction following, and reliable for production workloads.

4.7(28,400 ratings)

Quick Overview

CategoryGeneral Purpose
Context Window200K tokens
SpeedFast
Input$3 / 1M tokens
Output$15 / 1M tokens

Pricing

Simple, transparent token-based pricing. Pay only for what you use.

Input Tokens
$3
per 1M tokens
Output Tokens
$15
per 1M tokens

Capabilities

Core strengths and supported features of Claude Sonnet 4.

Text Generation
Code
Analysis
Vision

Performance

Context window capacity and inference speed characteristics.

Context Window

200K

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);