Skip to main content
idapt
HomeAI ModelsExploreResourcesPricing
Sign inUse for Free
  • 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
Help Center
🔗

LlamaIndex with idapt

Found this helpful? Share it:

Set up LlamaIndex against idapt's compatible APIs with the steps below. This article and the AI Gateway quickstarts lander render the same shared steps, so they never drift.

LlamaIndex with idapt

OpenAILike against idapt's compatible API for indexes, query engines, and agents.

  1. 1

    Install

    bash
    pip install llama-index llama-index-llms-openai-like
  2. 2

    Point it at idapt

    python
    from llama_index.llms.openai_like import OpenAILike
    
    llm = OpenAILike(
        model="openai/gpt-5.6-luna",
        api_base="https://idapt.app/api/openai/v1",
        api_key=os.environ["IDAPT_API_KEY"],
        is_chat_model=True,
    )

    is_chat_model=True routes calls to /chat/completions instead of the legacy completions path.

GOOD TO KNOW

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

MORE QUICKSTARTS

LangChain (Python)

LangChain (Python)

OpenAI SDK (Python)

Related articles

🔑

API keys and scopes

Create a key, choose its scopes, pin it to an API version, rotate it, and cap what it can spend.

🚦

Rate limits and errors

Every error shape the API returns, what each rate limit is, and how to handle a wall in code.

🛡️

Cap what an API key spends

Give every Gateway API key a lifetime, monthly, or daily USD cap, and what a capped-out key returns.

🔗

OpenAI-compatible API

Use idapt's 200+ models from any app that speaks the OpenAI API format.

🔗

LangChain (Python) with idapt

Use LangChain Python with idapt's OpenAI-compatible API: base_url configuration for ChatOpenAI with any catalog model.

🔗

OpenAI SDK (Python) with idapt

Point the official OpenAI Python SDK at idapt's compatible API with base_url and run any catalog model unchanged.

Up next

OpenAI SDK (JS) with idapt

Point the official OpenAI Node SDK at idapt's compatible API: a three-line change routes 200+ models through your existing code.

Was this helpful?