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

LangChain (JS) with idapt

ChatOpenAI against idapt's compatible API: one configuration block, 200+ models.

Last reviewed 2026-07-17

Install

bash
npm i @langchain/openai

Point it at idapt

ts
import { ChatOpenAI } from "@langchain/openai";

const model = new ChatOpenAI({
  model: "openai/gpt-5.6-sol",
  apiKey: process.env.IDAPT_API_KEY,
  configuration: { baseURL: "https://idapt.app/api/openai/v1" },
});

Going further

ts
const withTools = model.bindTools([myTool]);
const reply = await withTools.invoke("What is 23 * 17? Use the calculator.");

Tool calling passes through for every tool-capable catalog model.

Pitfalls

baseURL goes inside configuration

ChatOpenAI nests the base URL under the configuration object; a top-level baseURL field is silently ignored.

References

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

More quickstarts

LangChain (Python)Vercel AI SDKLlamaIndex
  • 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)