Docs / Frameworks & integrations

LangChain

Use ChatOpenAI with the gateway base URL to route LangChain chains and agents through any catalog model.

Install

Add the package to your project:

bash
pip install langchain-openai

Configure

Point the client at the gateway base URL with your key:

Python
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(
    base_url="https://api.jackz.ai/v1",
    api_key="JACKZ_API_KEY",
    model="deepseek/deepseek-v4-pro",
)
print(llm.invoke("Hello").content)

Notes

Any model slug from the catalog works. Refer to the tool's own documentation for advanced configuration.

Official docs: langchain.com ↗