Developers & integrations
Ecosystem & AI Tool Integrations
Connect OpenAI-compatible endpoints to Dify, Open WebUI, LangChain, Cursor, and CLI coding assistants.
Updated 2026-11-26 · 2 min read
How Ecosystem Tools Connect
Because the gateway exposes standard OpenAI-compatible endpoints, popular AI orchestration platforms, team chat UIs, and IDE coding assistants connect using just three configuration values:
| Setting | How to Configure | Example Value |
|---|---|---|
| Provider mode | Choose OpenAI-API-Compatible or Custom OpenAI | OpenAI Compatible |
| API Base URL | Enter the gateway /v1 root (verify whether the tool appends /v1 automatically) | https://your-gateway.example.com/v1 |
| Model Name / ID | Copy the exact identifier from Models | qwen4-max or qwen3-coder-plus |
Connecting Dify Workflows and Knowledge Bases
Dify supports chat, vision, embeddings, and reranking through its OpenAI-API-Compatible provider plugin:
- Navigate to Settings → Model Providers in Dify and select OpenAI-API-Compatible.
- Register Chat / Vision LLMs: Choose model type
LLM, enterdeepseek-v3.2orqwen3-vl-plus(enable Vision toggle for VL models), set API Endpoint URL to${API_BASE_URL}, and supply your API key. - Register RAG Embeddings & Rerank: Add entries with model type
Text Embedding(qwen3-embedding-8bfrom Qwen3 Embedding 8B) andRerank(qwen3-reranker-8bfrom Qwen3 Reranker 8B).
Connecting Open WebUI for Team Chat
When hosting an internal team chat portal, pass the gateway endpoint and key via environment variables:
OPENAI_API_BASE_URL="https://your-gateway.example.com/v1"
OPENAI_API_KEY="sk-your-team-gateway-key"Open WebUI automatically queries /v1/models to populate the model selector, and administrators can curate which models appear to end users.
Integrating with LangChain
Use the official langchain-openai package for both conversational chains and vector stores:
import os
from langchain_openai import ChatOpenAI, OpenAIEmbeddings
llm = ChatOpenAI(
model="deepseek-v3.2",
api_key=os.environ["API_KEY"],
base_url=os.environ["API_BASE_URL"],
temperature=0.2,
streaming=True,
)
embeddings = OpenAIEmbeddings(
model="qwen3-embedding-8b",
api_key=os.environ["API_KEY"],
base_url=os.environ["API_BASE_URL"],
check_embedding_ctx_length=False,
)Tip: Set
check_embedding_ctx_length=FalseinOpenAIEmbeddingsso LangChain sends raw strings rather than pre-tokenizedtiktokeninteger arrays.
Connecting Cursor and AI Coding Editors
To pair IDE coding assistants with models such as Qwen3 Coder Plus, Qwen3 Coder 480B-A35B, or GLM-4.7:
- Open the editor Models settings and add the exact model identifier (e.g.,
qwen3-coder-plus). - Enable Override OpenAI Base URL, enter
${API_BASE_URL}and a dedicated developer key, and run verification. - If verification returns
404, check whether the client already appends/v1internally—see Error Codes, Rate Limits & Troubleshooting.