Create a SiliconFlow account.
Visit the Models page to check the details of currently available models, including model pricing, maximum usage limits for users, and more. You can also test the models directly through the “Online Experience” feature on the model details page.
Go to the “Playground” page. On the left sidebar, you can choose language models, text-to-image models, or image-to-image models. Select the corresponding model to start real-time testing. Enter the relevant parameters and prompt, then click the “Run” button to see the results generated by the model.
Go to the API Keys page, click “Create API Key,” and generate your API key.
You can directly use your API key for online calls on the platform’s “Documentation” page, where you can generate code snippets in the corresponding programming language.
Some large language models currently support being called via the OpenAI library.
After installing Python 3.7.1 or a higher version and setting up a virtual environment, you can install the OpenAI Python library. Run the following command from your terminal/command line:
Once completed, running pip list
will display the Python libraries installed in your current environment. Confirm that the OpenAI Python library has been successfully installed.
You can then call the API using OpenAI’s related interfaces. The platform currently supports most OpenAI-related parameters.
Create a SiliconFlow account.
Visit the Models page to check the details of currently available models, including model pricing, maximum usage limits for users, and more. You can also test the models directly through the “Online Experience” feature on the model details page.
Go to the “Playground” page. On the left sidebar, you can choose language models, text-to-image models, or image-to-image models. Select the corresponding model to start real-time testing. Enter the relevant parameters and prompt, then click the “Run” button to see the results generated by the model.
Go to the API Keys page, click “Create API Key,” and generate your API key.
You can directly use your API key for online calls on the platform’s “Documentation” page, where you can generate code snippets in the corresponding programming language.
Some large language models currently support being called via the OpenAI library.
After installing Python 3.7.1 or a higher version and setting up a virtual environment, you can install the OpenAI Python library. Run the following command from your terminal/command line:
Once completed, running pip list
will display the Python libraries installed in your current environment. Confirm that the OpenAI Python library has been successfully installed.
You can then call the API using OpenAI’s related interfaces. The platform currently supports most OpenAI-related parameters.