Introduction
SONGS API is a wrapper project for AI music generation workflows. It is built on top of the upstream engine and makes it easier to integrate music generation into internal tools and agents.
This project is used as the wrapper layer behind the SongsAI service.
Features
- Wraps the music generation flow behind a simple HTTP API
- Supports custom generation mode
- Supports lyrics generation and status lookup
- Can be integrated into agent workflows and internal tools
- Keeps the integration layer separate from the main web app
Getting Started
1. Obtain the cookie of your music account
- Head over to the create page in your browser.
- Open the browser developer tools with
F12. - Navigate to the
Networktab. - Refresh the page.
- Identify the request that includes the session bootstrap keyword.
- Open the request headers.
- Copy the full
Cookieheader value.
2. Clone and deploy this project
Run locally
git clone https://github.com/gcui-art/suno-api.git
cd suno-api
npm install
3. Configure SONGS API
Add the cookie to your local .env file.
SUNO_COOKIE=<your-cookie>
4. Run SONGS API
- Run
npm run dev. - Visit
http://localhost:3000/api/get_limitfor testing.
5. Use the API
Check the API docs page for endpoint details and interactive testing.
API Reference
Main endpoints:
- /api/generate
- /api/custom_generate
- /api/generate_lyrics
- /api/get
- /api/get_limit
- /api/extend_audio
- /api/generate_stems
- /api/get_aligned_lyrics
- /api/concat
- /api/persona