Skip to main content
idapt
HomeCodeAI ModelsPricing
Sign inStart free trial
  • Home
  • Pricing
  • AI Models
  • Image models
  • Voice models
  • Video models
  • Rankings
  • New models
  • Model status
  • Multi-Model Chat
  • Agents
  • Computers
  • Drive
  • Automations
  • AI Gateway
  • All features →
  • LLM cost calculator
  • Token counter
  • All free tools →
  • Blog
  • Use cases
  • Comparisons
  • Best of
  • Benchmarks
  • Changelog
  • Help center
  • FAQ
  • Privacy
  • Compare all models
  • Support
  • idapt Code
  • Developers
  • Quickstarts
  • API reference
  • API pricing
  • CLI
  • MCP
  • Downloads
  • Desktop
  • Badges and embeds
© idapt[email protected]TermsPrivacy PolicyLegal noticeReport content
X (Twitter)
Help Center
🔁

Switch from the Anthropic API

Found this helpful? Share it:

Built on the Anthropic API, or living in Claude Code? Point them at idapt's base URL and keep working, with 200+ models behind the same Messages API 🔁

Switch your base URL

Change the base URL to https://idapt.app/api/anthropic/v1 and authenticate with an idapt API key. Two endpoints cover the switch:

  • v1/messages, with streaming, tools, and system prompts, translated in full

  • models, listing the catalog

Step-by-step client snippets live in the Anthropic API migration guide.

Use Claude Code through idapt

Claude Code works with two environment variables:

export ANTHROPIC_BASE_URL=https://idapt.app/api/anthropic/v1
export ANTHROPIC_API_KEY=uk_your_key_here

You keep the same models, streaming, and tools, and gain idapt usage tracking plus per-key spend caps on top.

What's not proxied

The Batches, Files, and Admin APIs are not proxied. The switch covers the Messages API, which is what SDK chat apps and Claude Code use.

Related articles

🤖

Anthropic-compatible API

Use idapt's 200+ models from Claude Code or any app that speaks the Anthropic Messages API.

📖

REST API

Authentication, versioning, response shapes, pagination, and errors for the idapt REST API, plus the full endpoint list.

Up next

Switch from OpenRouter

Swap the OpenRouter base URL for idapt's. Provider routing, model fallbacks, and key management work the same way.

Was this helpful?