Generate songs via a local gcui-art/suno-api server.
git clone https://github.com/gcui-art/suno-api && cd suno-api && npm install && npm run build.env with your Suno cookie and optional 2Captcha key (see repo README)PORT=3100 npm start (or create a LaunchAgent/systemd service)curl http://localhost:3100/api/get_limitSet SUNO_API_URL env var if not running on http://localhost:3100.
For casual requests ("make a song about X") — Suno writes the lyrics:
scripts/suno.sh generate --prompt "DESCRIPTION" --wait
For specific lyrics and style:
scripts/suno.sh custom --prompt "LYRICS" --style "GENRE TAGS" --title "TITLE" --wait
Add --instrumental for no vocals. Add --negative-tags "TAGS" to exclude styles.
When user provides a theme but not lyrics — generate, review, then create:
scripts/suno.sh lyrics --prompt "THEME"
scripts/suno.sh status --ids "ID1,ID2"
scripts/suno.sh credits
scripts/suno.sh download --url "AUDIO_URL" --out "/path/to/file.mp3"
generate (Suno writes lyrics from description)custom with style tags and titlelyrics to generate, show user, edit, then custom--wait — blocks until audio URLs are ready (~60-120s)pop, upbeat, happy, female vocalscountry, acoustic guitar, male vocals, storytellinghip hop, trap beats, autotuned vocalsclassical, orchestral, cinematicrock, electric guitar, energetic, anthemthrash metal, aggressive riffs, double bass drums, distorted guitarjazz, smooth, saxophone, loungelullaby, soft, gentle, music boxfolk, banjo, americana, warmedm, electronic, dance, synthr&b, soulful, smooth, groovyIf auth errors occur, refresh the Suno cookie:
?__clerk_api_version.env → restart serverchirp-crow); override via --model flag共 1 个版本