Skip to main content
idapt
HomeAI ModelsExploreResourcesPricing
Sign inUse for Free
HomeDevelopersAI Gateway quickstartsAnthropic SDK

Anthropic SDK with idapt

The Anthropic-compatible surface: Messages API code unchanged, routed through idapt.

  1. 1

    Install

    bash
    npm i @anthropic-ai/sdk   # or: pip install anthropic
  2. 2

    Point it at idapt

    ts
    import Anthropic from "@anthropic-ai/sdk";
    
    const client = new Anthropic({
      baseURL: "https://idapt.app/api/anthropic/v1",
      apiKey: process.env.IDAPT_API_KEY,
    });
    
    const reply = await client.messages.create({
      model: "anthropic/claude-opus-5",
      max_tokens: 512,
      messages: [{ role: "user", content: "Three facts about ravens." }],
    });

    Python: Anthropic(base_url=..., api_key=...) takes the same two arguments.

GOOD TO KNOW

Anthropic-compatible API referenceAPI keys and scopesOpenRouter-compatible API referenceRate limits and errors

MORE QUICKSTARTS

Claude Code

OpenAI SDK (JS)

curl

curl

  • Home
  • Pricing
  • AI Models
  • Skills
  • Image models
  • Voice models
  • Video models
  • Rankings
  • Multi-Model Chat
  • Agents
  • Computers
  • Drive
  • Automations
  • AI Gateway
  • All features →
  • Blog
  • About
  • Comparisons
  • Benchmarks
  • Model Match
  • Demos
  • Help center
  • FAQ
  • Privacy
  • Support
  • Developers
  • Quickstarts
  • API reference
  • API pricing
  • CLI
  • MCP
  • Migrate
  • Downloads
  • Desktop
© idapt[email protected]TermsPrivacy PolicyLegal noticeReport content
X (Twitter)Discord