This is an unofficial Suno API client based on Python and Streamlit currently supports functions such as generating music and obtaining music information. It comes with built-in maintenance and activation functions for tokens, so there is no need to worry about token expiration. You can set up multiple account information to be saved for use.
- Automatic maintenance and preservation of tokens
- Multiple account information can be set to be saved and used
- The code is simple, easy to maintain, and convenient for secondary development
Installation dependencies
pip3 install -r requirements.txt
Start the project, please refer to the Streamlit documentation for details on Streamlit
streamlit run main.py
docker compose build && docker compose up
First, retrieve your session and cookie from the browser page when logged in.
After filling in the setting information, it will automatically keep alive. You can fill in multiple account information.
Enter and save the information. You can modify the account information if you enter identity.
Once the project is up and running, visit http://localhost:8501/ in your browser.
If the page keeps prompting: Please save the information first, and then refresh the page to use it normally! Please first add your own account information and save it, then delete other invalid account information in the sunoapi.db database, including the account information I tested, and then you can use it normally.
- Suno.com official website: https://suno.com
- Suno-API: https://github.com/SunoAI-API/Suno-API
SunoApi is an unofficial open source project for learning and research purposes only.