Staxly
ai-api

Anthropic API

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.

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
gcp-vertexGoogle Vertex AIrest
sdk-goGo SDKsdk0.x
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

Compare Anthropic API with

Staxly is an independent catalog of developer platforms. Outbound links to Anthropic API are plain references to their official pages. Pricing is verified at publication time — reconfirm on the vendor site before buying.