1. Get API Key
- the website and register an account (if you have an account, log in directly).
- After completing the registration, go to the API Keys page and create a new API Key. Copy the key for later use.
2. Cloud Language Model Series in Dify
2.1 Invoke the APIs of the built-in SiliconCloud models in Dify
- Open the SiliconCloud website and register an account (if you have an account, log in directly). After completing the registration, go to the API Keys page and create a new API Key. Copy the key use.
- In the Dify homepage, click on the gear icon in the upper right corner and then select “Settings”. Click on the gear icon in the upper left corner and choose “Model Supplier”.
- Silicon paste the previously copied API Key from the SiliconCloud platform, and then click the “Save” button.
- After validation, you will see SiliconCloud-provided models at the top of the model supplier area, and you can use these models in your application.
2.2 Use SiliconCloud Models Not Included in Dify’s Source Code
- Go Dify “Settings”.
- Select “Model Provider” from the navigation bar and add a compatible OpenAI interface model service platform.
-
Set the corresponding SiliconCloud Model Name, API Key, and API endpoint.
- Model Name: Choose from the model-list documentation.
- API Key: Obtain from https://cloud.siliconflow.cn/account/ak.
- API Endpoint URL: https://api.siliconflow.cn/v1
- will see the newly added model in the model list.