Back to all APIs

Anthropic

inference

“Get API key” opens Anthropic’s console where you can sign in, claim free credits, and generate your key. “Documentation” shows how to set it up and call the API.

Claude model family. Best-in-class reasoning and 200k token context window.

$3/M input tokens (Sonnet)

Models

claude-opus-4-7claude-sonnet-4-6claude-haiku-4-5-20251001

Details

Auth: api_key
Uptime: 100% uptime · 7d
Avg latency: 44ms
Checked: 2h ago
Pricing: $3 / 1M input, $15 / 1M output (Sonnet)
Rate limit: Tier-based, scales with usage
Free credits: $5 free credit on signup
SDKs: pythonjavascripttypescript
Regions: useu
Tags: claude, reasoning, long-ctx

Code snippets

33ms avg
import anthropic

client = anthropic.Anthropic(api_key="YOUR_KEY")
msg = client.messages.create(
    model="claude-sonnet-4-6",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello"}]
)
print(msg.content[0].text)

Status history (7 days)

06-10
06-11
06-12
06-13
06-14
06-15
06-21