Staxly
Anthropic API logo
ai-api

Anthropic API pricing & features

API for Claude — frontier models for chat, tool use, agents, and long-context reasoning

REST API to Anthropic's Claude models. Supports streaming, prompt caching, extended thinking, tool use, vision, PDFs, batch processing, and citations. Distributed through Anthropic directly and via Amazon Bedrock, Google Vertex, and Azure AI.

Data sourced from vendor documentation · Last updated May 2026

Anthropic websiteDocs ↗

Pricing

TierPriceNotes
Opus 4.7 — usageCustomInput $5 / output $25 / cache-write $6.25 / cache-read $0.50 per 1M tokens. Batch = 50% off.
Sonnet 4.6 — usageCustomInput $3 / output $15 / cache-write $3.75 / cache-read $0.30 per 1M tokens. Batch = 50% off.
Haiku 4.5 — usageCustomInput $1 / output $5 / cache-write $1.25 / cache-read $0.10 per 1M tokens. Batch = 50% off.

Limits

TierMetricValueNotes
batch sla hours24 hoursBatch API completion SLA
cache ttl 1h1 hours1-hour cache TTL (beta)
cache ttl default5 minutesDefault prompt-caching TTL (ephemeral)
context window200000 tokensDefault context window across 4.x models
context window beta1000000 tokensOpus 4.7 1M-token beta window (header gated)
max request batch mb256 MBMax Batch API request size
max request files mb500 MBMax Files API upload size
max request messages mb32 MBMax Messages / Token Counting request size
haiku-4-5discount batch50 % offBatch API discount vs real-time
opus-4-7discount batch50 % offBatch API discount vs real-time
sonnet-4-6discount batch50 % offBatch API discount vs real-time

Features

Developer interfaces

SlugNameKindVersion
aws-bedrockAWS Bedrockrest
claude-codeClaude Code CLIcli
consoleClaude Console (Workbench)ui
sdk-goGo SDKsdk0.x
gcp-vertexGoogle Vertex AIrest
sdk-javaJava SDKsdk0.x
azure-aiMicrosoft Azure AIrest
sdk-pythonPython SDKsdk0.x
restREST API (Messages + Agents)restv1
sdk-rubyRuby SDKsdk0.x
sdk-typescriptTypeScript SDK (@anthropic-ai/sdk)sdk0.x
See all Anthropic API alternatives →

Related ai-api platforms

Compare Anthropic API with

Staxly is an independent catalog of developer platforms. The link to Anthropic API above may be an affiliate link — Staxly may earn a commission if you sign up through it, at no extra cost to you. Pricing is verified at publication time — reconfirm on the vendor site before buying.