Skip to main content
LangChain is the most widely used LLM application framework. Its langchain-openai integration accepts a custom base_url, so ChatOpenAI can run on the ScitiX Model Inference API. Default model here is glm-5.2; see the Models page for the full list and pricing.

Configure

Create an API key on the ScitiX API Keys page and export it:
Point ChatOpenAI from langchain-openai at the ScitiX endpoint:
Use ChatOpenAI from langchain-openai, not the legacy OpenAI completion class. Choose a model with native tool calling for LangChain tool/agent features, such as bind_tools.

Verify

Invoke the model — a normal reply confirms the connection (verified on langchain-openai 1.4.3):