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
- Open Dify → Profile → Settings → Model Providers.
- Find OpenAI-API-compatible and select Add Model.
- Enter:
| Setting | Value |
|---|---|
| Model name | For example gpt-5.2 |
| Model type | LLM |
| API key | sk-your-api-key |
| API Base URL | {baseUrl}/v1 |
| Context length | The model's actual supported length, for example 128000 if supported. |
- For embeddings, add a model such as
text-embedding-v4orqwen3-vl-embeddingwith type Text Embedding. - For reranking, add a model such as
qwen3-rerankwith type Rerank.
LangBot / AstrBot
Both tools have OpenAI-compatible adapters:
| Setting | Value |
|---|---|
| Provider type | OpenAI / OpenAI Compatible |
| API Base URL | {baseUrl}/v1 |
| API key | sk-your-api-key |
| Model | For 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.