Integrations/LangChain
LangChain
Mainstream app framework — point ChatOpenAI at the platform.
Python
python
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
model="YOUR_MODEL_ID",
api_key="YOUR_API_KEY",
base_url="https://www.starunion.net/v1",
)
print(llm.invoke("Introduce yourself in one sentence").content)Notes
- Embeddings use
OpenAIEmbeddings— again, onlybase_urlandapi_keychange - Streaming, tool calling and structured output follow the OpenAI-compatible protocol
- Model IDs come from the Model Plaza and are case-sensitive
Updated: 2026-08-24