Back to tools
AvailableAPI·
Claude API
Programmatic access to Claude models (Opus, Sonnet, Haiku) via REST. Supports messages, vision, tool use, prompt caching and extended 128k-token output.
Compatible with
anthropicapiclaudellmsdk
Claude API
Anthropic's API gives you direct programmatic access to Claude models. Available in three capability tiers:
- Claude Opus 4.6 — Most capable model for complex reasoning and coding tasks.
- Claude Sonnet 4.6 — Optimal balance between intelligence and speed.
- Claude Haiku 4.5 — Fastest and most cost-effective, ideal for high-volume workloads.
Key features
- Up to 200,000 tokens of input context
- Prompt caching to reduce costs on repeated contexts
- Tool use (function calling) for agentic workflows
- Vision: image and document analysis
- Streaming responses in real time
- Official SDKs for Python and TypeScript/Node.js
Getting started
pip install anthropic
import anthropic
client = anthropic.Anthropic()
message = client.messages.create(
model="claude-sonnet-4-6",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello, Claude"}]
)
print(message.content[0].text)