Public beta. Coverage is source-backed and intentionally scoped. Rankings are metadata views, not universal quality claims. Read the data policy

Anthropic — quickstart

Best-in-class for agentic coding loops and reasoning over long contexts. The 1M-context tier on Opus 4.7 collapses an entire class of context-windowing plumbing for production agent systems. Pick Anthropic when you need both depth and document-scale.

Recommended starting model Claude Opus 4.7 claude-opus-4-7

Get a key

  1. Create an API key at console.anthropic.com
  2. Set it as `ANTHROPIC_API_KEY` env var (or pass to the SDK explicitly)

Make a request

Three equivalent ways to call the recommended model. Pick the one that matches your stack.

curl
curl https://api.anthropic.com/v1/messages \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-opus-4-7",
    "max_tokens": 1024,
    "messages": [
      {"role": "user", "content": "Summarize the last week of AI model releases."}
    ]
  }'
python pip install anthropic
from anthropic import Anthropic

client = Anthropic()
msg = client.messages.create(
    model="claude-opus-4-7",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Summarize the last week of AI model releases."}],
)
print(msg.content[0].text)
node npm install @anthropic-ai/sdk
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic();
const msg = await client.messages.create({
  model: "claude-opus-4-7",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Summarize the last week of AI model releases." }],
});
console.log(msg.content[0].type === "text" ? msg.content[0].text : "");

Pricing

Opus 4.7: $5/M input, $25/M output. Prompt caching cuts repeat-context cost ~90%; turn it on for any multi-turn agent loop.

Alternatives in this lineup

Gotchas