Skip to content

Dify Integration Guide

Dify is an open-source large language model (LLM) application development platform. It combines Backend as a Service (BaaS) and LLMOps concepts, enabling developers to quickly build production-grade generative AI applications. By configuring ZenMux, you can access a wider selection of models beyond the base models provided by Dify.

Configuration Steps

1. Obtain a ZenMux API Key

Go to the ZenMux Console to create and retrieve your API Key.

2. Open the Dify Website

  1. Open the Dify website
  2. Click the Get Started button and sign in
  3. Click your avatar in the upper-right corner and select Settings -> Model Provider

3. Configure the OpenAI-API-compatible Service

Configuration Notes

You only need to configure OpenAI-API-compatible to unlock all ZenMux models.

In Dify settings:

  1. Select OpenAI-API-compatible: Search for and select OpenAI-API-compatible
  1. Add Models: Click Add Model, add the models you need, and enter the required details
  1. Create a New Chatbot: Create a new Chatbot, then select your desired model from the model list in the upper-right corner

4. Supported Models

ZenMux provides a rich selection of models for Dify. View all available models in the ZenMux Model List

Troubleshooting

Common Issues

API Key Error

Issue: The system indicates the API Key is invalid or unauthorized

Solution:

  • Check that the ZenMux API Key you entered is correct
  • Confirm the API Key is active and has sufficient balance
  • Verify that the API Key format starts with sk-ai-v1-

Contact Us

If you encounter any issues during use, or have suggestions and feedback, feel free to contact us via the following channels:

Get Help

For more contact options and details, please visit our Contact Us page.