High quality songs generation by suno.ai. Reverse engineered API.
Project description
SunoSongsCreator
About High quality songs generation by https://www.suno.ai/. Reverse engineered API.
How to
- Login to https://app.suno.ai/ and generate some songs.
- Use
Chrome
or other browsers to inspect the network requests (F12 -> XHR). - Clone this REPO ->
git clone https://github.com/yihong0618/SunoSongsCreator.git
- XHR find cookie in this url -> https://clerk.suno.ai/v1/client?_clerk_js_version=4.70.5
- Copy the cookie.
- You can import the cookie using
export SUNO_COOKIE='<your-suno-cookie>'
or rename.env.example
to.env
and fill inSUNO_COOKIE
.
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
- All my 爱发电 sponsors https://afdian.net/a/yihong0618?tab=sponsor
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
suno_songs-0.5.0.tar.gz
(18.6 kB
view details)
Built Distribution
File details
Details for the file suno_songs-0.5.0.tar.gz
.
File metadata
- Download URL: suno_songs-0.5.0.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9669c50f9f09b1dfb8f2f2ce7a8fd2a7b3e061d8a36d8e330810b7307c8687fd |
|
MD5 | 1a9f76148dee5d346910a277cace3eb9 |
|
BLAKE2b-256 | d8c8020436129b955fdf216c1606911c6318572db361ca31f30d2c75196f220d |
Provenance
File details
Details for the file suno_songs-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: suno_songs-0.5.0-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7832cee15beceb209332769e2d18a4e474b39c5e72e8f959fafdea90ab69952f |
|
MD5 | e865e5e15d8b479b8b47da68c0dfc3a4 |
|
BLAKE2b-256 | ff4674d1ca90632770b1b138add31b0b380c8f06e4a44e1d9d0647908ee2c2b2 |