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

LlamaIndex with idapt

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

Last reviewed 2026-07-17

Install

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

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.

Pitfalls

Use OpenAILike, not the OpenAI class

LlamaIndex's OpenAI class validates model names against OpenAI's list and rejects catalog slugs. OpenAILike passes them through.

References

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

More quickstarts

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