Skip to main content
idapt
HomeAI ModelsExploreResourcesPricing
Sign inUse for Free
HomeDevelopersAI Gateway quickstartsLangChain (Python)
LangChain (Python)

LangChain (Python) with idapt

ChatOpenAI with base_url pointed at idapt: every catalog model behind one key.

  1. 1

    Install

    bash
    pip install langchain-openai
  2. 2

    Point it at idapt

    python
    from langchain_openai import ChatOpenAI
    
    model = ChatOpenAI(
        model="anthropic/claude-sonnet-5",
        api_key=os.environ["IDAPT_API_KEY"],
        base_url="https://idapt.app/api/openai/v1",
    )

GOOD TO KNOW

API keys and scopesOpenAI-compatible API referenceOpenRouter-compatible API referenceRate limits and errors

MORE QUICKSTARTS

LangChain (JS)

LangChain (JS)

OpenAI SDK (Python)

LiteLLM

  • 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