Integrations / LangGraph
L

LangGraph

LangChain · Verified setup guide

LangChain's graph framework for agents. Models come from LangChain, so it is one base_url.

Setup steps

  1. 1
    Installpip install langgraph langchain-openai
  2. 2
    Build the modelChatOpenAI(model, base_url, api_key) below.
  3. 3
    Wire the graphPass the model to your nodes.

Configuration example

python
from langchain_openai import ChatOpenAI

model = ChatOpenAI(
    model="YOUR_MODEL_ID",                 # any model id from the /models page
    base_url="https://api.luxechain.si/v1",
    api_key="lxc_live_YOUR_KEY",
)

Replace YOUR_MODEL_ID with any model from the catalogue. Never paste a real API key into a shared document.

Troubleshooting

The keyword is base_url (alias openai_api_base). LangGraph itself has no model layer.

If the tool rejects the endpoint, confirm the base URL exactly matches the value on the right, and that the key is active in your account.