yihong0618 / SunoSongsCreator

About High quality songs generation by https://www.suno.ai/. Reverse engineered API.
GNU General Public License v3.0
284 stars 46 forks source link

SunoSongsCreator

About High quality songs generation by https://www.suno.ai/. Reverse engineered API.

How to

Usage

python -m suno --prompt 'a big red dream song'

or

pip install -U suno_songs
from suno import SongsGen
i = SongsGen('cookie') # Replace 'cookie'
print(i.get_limit_left())
i.save_songs("a blue cyber dream song", './output')

Custom mode

#you can use custom mode
from suno import SongsGen
i = SongsGen('cookie') # Replace 'cookie'
print(i.get_limit_left())
i.save_songs("大江东去,浪淘尽,千古风流人物。故垒西边,人道是、三国周郎赤壁。乱石穿空,惊涛拍岸,卷起千堆雪。江山如画,一时多少豪杰。遥想公瑾当年,小乔初嫁了,雄姿英发。", is_custom=True, title="custom", tags="轻松的R&B, BPM60, 小调, 电吉他、贝斯、键盘和轻鼓, 男性歌手") 

Get song library

from suno import SongsGen
i = SongsGen('cookie') # Replace 'cookie'
print(i.get_song_library())

Thanks