Skip to main content

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 in SUNO_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

Project details


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.4.0.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

suno_songs-0.4.0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file suno_songs-0.4.0.tar.gz.

File metadata

  • Download URL: suno_songs-0.4.0.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.17

File hashes

Hashes for suno_songs-0.4.0.tar.gz
Algorithm Hash digest
SHA256 adc04614405dd5d396afea19f27411985f4b5f97111c012272c9eb40cd74ae69
MD5 5aa91172065c99f3a9dfa2eb0ea9415a
BLAKE2b-256 bee32aa67a810a6ab8bfc110ac133a9e88a805c3993f7a29d8f2a454226acbce

See more details on using hashes here.

Provenance

File details

Details for the file suno_songs-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: suno_songs-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.17

File hashes

Hashes for suno_songs-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31e4238411d8f27ee941572caed92d765b0047c4a411dfd2c0b1ccee8b535a7c
MD5 0166848e782ab51932938d03289d5ce3
BLAKE2b-256 60d9c4aa7f05349d98926b6ece96dd89e7343b7af5eaf1d109b1c6fe840062c5

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page