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

OpenAI SDK (Python) with idapt

base_url plus your idapt key: existing code, 200+ models.

  1. 1

    Install

    bash
    pip install openai
  2. 2

    Point it at idapt

    python
    from openai import OpenAI
    
    client = OpenAI(
        base_url="https://idapt.app/api/openai/v1",
        api_key=os.environ["IDAPT_API_KEY"],
    )
    
    reply = client.chat.completions.create(
        model="qwen/qwen3.7-max",
        messages=[{"role": "user", "content": "Three facts about ravens."}],
    )

GOOD TO KNOW

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

MORE QUICKSTARTS

OpenAI SDK (JS)

LangChain (Python)

LangChain (Python)

LlamaIndex

  • 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