Quickstart
Last updated
Last updated
Add an access token on the token page.
You can then use your token to access the Whirlagi API in the same way as the OpenAI API.
You need to set the API Base to the deployment address of your Whirlagi API in various places where the OpenAI API is used, for example: https://api.whirlagi.com, and the API Key to the token you generated in the Whirlagi API.
Note that the specific format of the API Base depends on the client you are using.
For example, for the official OpenAI library:
1、The request parameters are consistent with the OpenAI official website API document
2、Set the token quota to $1 for every 500,000. After adding successfully, you can click to copy the APIKEY. If it is set to unlimited, the token used quota will not be updated.
OpenAI modification reference:
https://api.whirlagi.com/v1/chat/completions
Request failed, try in order:
https://api.whirlagi.com
https://api.whirlagi.com/v1
https://api.whirlagi.com/v1/chat/completions
Claude modification reference:
https://api.whirlagi.com/v1/messages