SCENARIO EXAMPLE
Using in Dify
Leverage the advantages of multiple SiliconCloud models and fast speed to quickly implement workflows/Agents in Dify.
1. Obtain API Key
- Open the SiliconCloud 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. Using SiliconCloud Language Models in Dify
2.1 Using the Built-in SiliconCloud Model API in Dify
- Open the SiliconCloud 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.
- On the Dify homepage, click “Settings” in the top-right corner and select “Model Provider” from the top-left menu.
- Find “SiliconCloud,” paste the previously copied API Key from the SiliconCloud platform, and click the “Save” button.
- Once successfully validated, you will see the models provided by SiliconCloud in the top section of the model provider list and can use SiliconCloud models in your applications.
2.2 Using SiliconCloud Models Not Currently Available in Dify’s Source Code
- Open Dify’s “Settings” for configuration.
- Select “Model Provider” from the navigation bar and add a model service platform compatible with the OpenAI API.
- Configure the corresponding SiliconCloud settings, including Model Name, API Key, and API Endpoint:
- Model Name: Select from the model-list documentation.
- API Key: Obtain it from https://cloud.siliconflow.com/account/ak. Note: If you need to use overseas models, complete identity verification first.
- API Endpoint URL: https://api.ap.siliconflow.com/v1
- After completing the setup, you will see the newly added models in the model list.
3. Using SiliconCloud Image Generation Models in Dify
Refer to Using SiliconCloud Image Generation Models in Dify.