通过 Suno 生成 AI 音乐和歌曲。使用场景:(1) 用户要求创作、制作或生成歌曲或音乐;(2) 用户想要写歌词;(3) 用户想要...
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:
bash
scripts/suno.sh generate --prompt "DESCRIPTION" --wait
For specific lyrics and style:
bash
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:
bash
scripts/suno.sh lyrics --prompt "THEME"
bash
scripts/suno.sh status --ids "ID1,ID2"
scripts/suno.sh credits
bash
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