1. Obtain API Key

  1. Open the SiliconFlow official website and register an account (if you already have one, simply log in).
  2. After registration, go to API Key, create a new API Key, and copy the key for later use.

2. Using SiliconFlow Language Models in Dify

2.1 Using the Built-in SiliconFlow Model API in Dify

  1. Open the SiliconFlow official website and register an account (if you already have one, simply log in). After registration, go to API Key, create a new API Key, and copy the key for later use.
  2. On the Dify homepage, click “Settings” in the top-right corner and select “Model Provider” from the top-left menu.
  3. Find “SiliconFlow,” paste the previously copied API Key from the SiliconFlow platform, and click the “Save” button.
  4. Once successfully validated, you will see the models provided by SiliconFlow in the top section of the model provider list and can use SiliconFlow models in your applications.

2.2 Using SiliconFlow Models Not Currently Available in Dify’s Source Code

  1. Open Dify’s “Settings” for configuration.
  2. Select “Model Provider” from the navigation bar and add a model service platform compatible with the OpenAI API.
  3. Configure the corresponding SiliconFlow settings, including Model Name, API Key, and API Endpoint:
  4. After completing the setup, you will see the newly added models in the model list.

3. Using SiliconFlow Image Generation Models in Dify

Refer to Using SiliconFlow Image Generation Models in Dify.