Add 123API to Dify as an OpenAI-compatible or custom model provider.
Use Dify’s OpenAI provider with a custom base URL.
| Field | Value |
|---|---|
| API Key | Your 123API key |
| API Base URL | https://123api.co/v1 |
You can also add 123API as a custom model provider and register each model separately.
Recommended starter set:
gpt-4ogpt-4o-minigpt-5claude-sonnetgemini-2.0-flashEnable only models that are actually supported by your 123API account and current routing setup.
Confirm the Base URL includes /v1, your API key is valid and your Dify instance can reach https://123api.co.
Dify may show a larger model list than your current 123API routing actually supports. Always validate model IDs through GET /v1/models.
In most cases, OpenAI-compatible configuration is simpler. Use a custom provider only when you need separate management or more explicit per-model control.