Skip to main content
idapt
AccueilModèles IATarifs
Sign inStart free

Anthropic SDK with idapt

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

Last reviewed 2026-07-17

Install

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

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-4.8",
  max_tokens: 512,
  messages: [{ role: "user", content: "Three facts about ravens." }],
});

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

Pitfalls

Messages API shape, Anthropic auth header

The compat surface speaks the Messages API and accepts the SDK's x-api-key header with your idapt key. Non-Anthropic catalog models work here too.

References

  • Anthropic-compatible API reference
  • API keys and scopes
  • Rate limits and errors

More quickstarts

Claude CodeOpenAI SDK (JS)curl
  • Accueil
  • Tarifs
  • Modèles IA
  • Modèles d'image
  • Modèles de voix
  • Modèles vidéo
  • Classements
  • New models
  • Model status
  • Multi-Model Chat
  • Voice Mode
  • Voice HUD
  • Web Search
  • Image Generation
  • Video Generation
  • Audio Generation
  • Transcription
  • Drive
  • Secrets
  • Sharing
  • Workspaces
  • Tasks
  • Memory
  • Agents
  • Subagents
  • Automations
  • Skills
  • Code Execution
  • Computers
  • Computer Use
  • Cloud Computers
  • Local AI
  • AI Gateway
  • API & SDK
  • CLI
  • MCP
  • Tunnels
  • All features →
  • Blog
  • Cas d'usage
  • Comparisons
  • Best of
  • Learn
  • Free tools
  • Prompts
  • Templates
  • Changelog
  • Centre d'aide
  • FAQ
  • Confidentialité
  • Comparer tous les modèles
  • Support
  • Développeurs
  • Quickstarts
  • Référence API
  • Tarifs API
  • CLI
  • MCP
  • Downloads
  • Desktop
  • Badges and embeds
© idapt[email protected]ConditionsPolitique de confidentialitéMentions légalesSignaler un contenu
X (Twitter)