๐Ÿ“ฆ AICodeHunt / SunoApi

Suno API Unofficial Suno AI client, currently supports the generation of music, access to music information and other functions.

โ˜… 2 stars โ‘‚ 52 forks ๐Ÿ‘ 2 watching โš–๏ธ MIT License
๐Ÿ“ฅ Clone https://github.com/AICodeHunt/SunoApi.git
HTTPS git clone https://github.com/AICodeHunt/SunoApi.git
SSH git clone git@github.com:AICodeHunt/SunoApi.git
CLI gh repo clone AICodeHunt/SunoApi
SunoApi SunoApi Initial commit abefa5a 1 years ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .devcontainer
๐Ÿ“ i18n
๐Ÿ“ images
๐Ÿ“„ .dockerignore
๐Ÿ“„ .gitignore
๐Ÿ“„ cookie.py
๐Ÿ“„ docker-compose.yml
๐Ÿ“„ Dockerfile
๐Ÿ“„ LICENSE
๐Ÿ“„ main.py
๐Ÿ“„ README_KR.md
๐Ÿ“„ README_TC.md
๐Ÿ“„ README_ZH.md
๐Ÿ“„ README.md
๐Ÿ“„ requirements.txt
๐Ÿ“„ schemas.py
๐Ÿ“„ sqlite.py
๐Ÿ“„ sunoapi.db
๐Ÿ“„ utils.py
๐Ÿ“„ README.md

็ฎ€ไฝ“ไธญๆ–‡ | ็น้ซ”ไธญๆ–‡ | ํ•œ๊ตญ์–ด

Suno API is an unofficial Suno AI client

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.

Features

  • 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

Usage

Run

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

docker compose build && docker compose up

Configuration

First, retrieve your session and cookie from the browser page when logged in.

session

After filling in the setting information, it will automatically keep alive. You can fill in multiple account information.

session1

Enter and save the information. You can modify the account information if you enter identity.

session2

Done

Once the project is up and running, visit http://localhost:8501/ in your browser.

docs

Questions

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.

Contact

Reference

Statement

SunoApi is an unofficial open source project for learning and research purposes only.