Anthropic Claude API
LLM / agentsMidClaude Opus, Sonnet and Haiku for coding, long-context reasoning and agents.
What it is
Anthropic's Claude API serves the Claude family — Opus (most capable), Sonnet (balanced), Haiku (fast/cheap) — via the Messages API. It targets coding, agentic workflows, tool use and long documents, with a 1M-token context window. Cost levers include prompt caching, a 50% Batch discount and server-side tools (web search, code execution).
What it can do
- Opus / Sonnet / Haiku via Messages API
- 1M-token context window
- Prompt caching (cache reads ~0.1× input price)
- Batch API at 50% discount
- Tool use / function calling, structured outputs
- Server-side tools: web search, web fetch, code execution
- Computer use and text-editor/bash agent tools
- Also on Amazon Bedrock and Google Vertex AI
Pricing
Free tier
No standing free tier; small trial credits for new users
Paid from
pay-as-you-go, Haiku ~$1 / 1M tokens
Similar services
| Service | How it differs |
|---|---|
| Anthropic Claude APIpay-as-you-go, Haiku ~$1 / 1M tokens | Claude Opus, Sonnet and Haiku for coding, long-context reasoning and agents. |
| OpenAI API | Broader multimodal stack (image, realtime voice, video). |
| Google Gemini | Cheaper at the low end with a real free tier and native gen-media. |
| Amazon Bedrock | Run the same Claude models inside AWS with enterprise controls. |