Skip to main content

Application Frameworks and Bot Platforms

Replace {baseUrl} with your platform API root, without a trailing / or /v1, and sk-your-api-key with your model API key. Model availability and provider settings may vary.

Dify​

  1. Open Dify → Profile → Settings → Model Providers.
  2. Find OpenAI-API-compatible and select Add Model.
  3. Enter:
SettingValue
Model nameFor example gpt-5.2
Model typeLLM
API keysk-your-api-key
API Base URL{baseUrl}/v1
Context lengthThe model's actual supported length, for example 128000 if supported.
  1. For embeddings, add a model such as text-embedding-v4 or qwen3-vl-embedding with type Text Embedding.
  2. For reranking, add a model such as qwen3-rerank with type Rerank.

LangBot / AstrBot​

Both tools have OpenAI-compatible adapters:

SettingValue
Provider typeOpenAI / OpenAI Compatible
API Base URL{baseUrl}/v1
API keysk-your-api-key
ModelFor example gpt-5.2 or deepseek-v4-pro

AstrBot: open Configuration → Service Providers → Add, choose OpenAI, and enter these values.

LangBot: open Configuration → Models → Add Model, choose OpenAI, and enter these values.