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

LiteLLM with idapt

One provider block in LiteLLM routes every catalog model through idapt.

Last reviewed 2026-07-17

Install

bash
pip install litellm

Point it at idapt

python
from litellm import completion

reply = completion(
    model="openai/anthropic/claude-sonnet-5",
    api_base="https://idapt.app/api/openai/v1",
    api_key=os.environ["IDAPT_API_KEY"],
    messages=[{"role": "user", "content": "Three facts about ravens."}],
)

LiteLLM's openai/ prefix selects the OpenAI wire protocol; the rest is the catalog model id.

Going further

yaml
# litellm proxy config.yaml
model_list:
  - model_name: sonnet
    litellm_params:
      model: openai/anthropic/claude-sonnet-5
      api_base: https://idapt.app/api/openai/v1
      api_key: os.environ/IDAPT_API_KEY

Proxy mode: every model_list entry can point at a different catalog model behind one upstream key.

Pitfalls

Double prefix is intentional

openai/anthropic/claude-sonnet-5 reads as wire-protocol openai + catalog id anthropic/claude-sonnet-5. Dropping the first segment makes LiteLLM guess the provider.

References

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

More quickstarts

OpenAI SDK (Python)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)