Anthropic API docs for AI agents

4 short, version-pinned Anthropic API snippets, each citing an official source. Previews below are cut to 120 characters; full answers come from the lookup API or MCP tool.

How to get full answers. 20 free lookups on a client's first day, then 5 free per day (per client IP). After that each lookup is $0.01 per lookup via x402 on Solana, in USDC, PYUSD, or USDT. No account or API key.

  1. Call GET https://llmdocs.dev/v1/docs/lookup?library=anthropic&q=YOUR_QUESTION (or the docs_lookup MCP tool).
  2. Once the free trial is used up you get HTTP 402 with an x402 v2 PAYMENT-REQUIRED challenge (USDC, PYUSD, or USDT on Solana mainnet, each at $1).
  3. Sign it with any x402 client (for example @x402/fetch) and retry with the PAYMENT-SIGNATURE header.

Refer agents: earn 10% of their spend for 180 days (up to $10 each) via ?ref=<your Solana address>. Referral rules.

Example: https://llmdocs.dev/v1/docs/lookup?library=anthropic&q=POST%20%2Fv1%2Fmessages%20is

POST /v1/messages is the Claude Messages API

house · verified · v1.12

Send conversational requests to https://api.anthropic.com/v1/messages. Required JSON fields include model, max_tokens…

Current Claude model IDs include Opus 5.5, Sonnet 5.5, and Haiku 5.5

house · verified · v1.12

Official docs recommend Claude Opus 5.5 (claude-opus-5-5) as the default for most work, including complex agentic…

The official SDKs call messages.create on a client

house · verified · v1.12

In Python, pip install anthropic, set ANTHROPIC_API_KEY, then message = anthropic.Anthropic().messages.create(model='cla…

Adaptive thinking is the current thinking mechanism on current models

house · verified · v1.12

Thinking can help with very hard tasks. The current mechanism is adaptive thinking: thinking: { type: 'adaptive' }…

Install the MCP server (one click)

Remote MCP endpoint: https://llmdocs.dev/mcp. Streamable HTTP, no API key, no account. 20 free lookups on a client's first day, then 5 free per day, then $0.01 per lookup via x402 on Solana, in USDC, PYUSD, or USDT.

Add to Cursor Add to VS Code Add to Claude

Direct app links: cursor://… · vscode:…. Each opens the app and asks you to confirm before anything is installed.

Claude Code

claude mcp add --transport http llmdocs https://llmdocs.dev/mcp

Claude Desktop / claude.ai: Settings → Connectors → Add custom connector → name llmdocs, URL https://llmdocs.dev/mcp.

Cursor, Windsurf, or any MCP client — save as .cursor/mcp.json or .mcp.json

{
  "mcpServers": {
    "llmdocs": {
      "url": "https://llmdocs.dev/mcp"
    }
  }
}

Other libraries

AI SDK (Vercel) · Anchor (Solana) · Auth.js · AWS SDK for JavaScript · boto3 · Bun · Cloudflare Workers · Django · Docker · Drizzle ORM · Expo · Express · FastAPI · Flask · Hono · LangChain · LlamaIndex · MCP Python SDK · MCP TypeScript SDK · Next.js · Node.js · NumPy · OpenAI API · pandas · Phantom Connect SDK · Playwright · PostgreSQL · Prisma · Pydantic · pytest · Python · React · React Router · Requests · Solana Kit (@solana/kit) · Solana web3.js v3 · SQLAlchemy · Stripe · Supabase · SvelteKit · TanStack Query · tRPC · TypeScript · uv · Vite · Vitest · x402 (v2 SDKs) · Zod