Generate AI-powered music through AceDataCloud's Suno API.
export ACEDATACLOUD_API_TOKEN="your-token-here"
# Get your token at https://platform.acedata.cloud
curl -X POST https://api.acedata.cloud/suno/audios \
-H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"prompt": "a happy pop song about coding", "model": "chirp-v4-5", "wait": true}'
| Model | Best For |
|---|---|
| ------- | --------- |
chirp-v5 | Latest, highest quality |
chirp-v4-5-plus | Enhanced v4.5 |
chirp-v4-5 | Good balance of quality and speed |
chirp-v4 | Fast, reliable |
chirp-v3-5 | Legacy, stable |
Generate a song from a text description. Suno creates lyrics, style, and music automatically.
POST /suno/audios
{
"prompt": "an upbeat electronic track about the future of AI",
"model": "chirp-v4-5",
"instrumental": false
}
Provide your own lyrics, title, and style for precise control.
POST /suno/audios
{
"action": "custom",
"lyric": "[Verse]\nCode is poetry in motion\n[Chorus]\nWe build the future tonight",
"title": "Digital Dreams",
"style": "Synthwave, Electronic, Dreamy",
"model": "chirp-v4-5",
"vocal_gender": "f"
}
Continue an existing song from a specific timestamp with new lyrics.
POST /suno/audios
{
"action": "extend",
"audio_id": "existing-audio-id",
"lyric": "[Bridge]\nNew section lyrics here",
"continue_at": 120.0,
"style": "Same style as original"
}
Create a new version of an existing song in a different style.
POST /suno/audios
{
"action": "cover",
"audio_id": "existing-audio-id",
"style": "Jazz, Acoustic, Mellow"
}
For best results follow this multi-step workflow:
POST /suno/lyrics with a topic/promptPOST /suno/style to refine style descriptionPOST /suno/audios with custom action, lyrics + stylePOST /suno/tasks with task_id until status is complete/suno/wav), MIDI (/suno/midi), or MP4 (/suno/mp4)| Endpoint | Method | Purpose |
|---|---|---|
| ---------- | -------- | --------- |
/suno/lyrics | POST | Generate structured lyrics from a prompt |
/suno/style | POST | Optimize/refine a style description |
/suno/mashup-lyrics | POST | Combine two sets of lyrics |
/suno/mp4 | POST | Get MP4 video version of a song |
/suno/wav | POST | Convert to lossless WAV format |
/suno/midi | POST | Extract MIDI data for DAW editing |
/suno/vox | POST | Extract vocal track (stem separation) |
/suno/timing | POST | Get word-level timing/subtitles |
/suno/persona | POST | Save a vocal style as a reusable persona |
/suno/upload | POST | Upload external audio for extend/cover |
/suno/tasks | POST | Query task status and results |
All generation is async. Either use "wait": true for synchronous mode, or poll:
POST /suno/tasks
{"task_id": "your-task-id"}
Poll every 3–5 seconds until status is "complete".
Use section markers in square brackets:
[Verse 1]
Your verse lyrics here
[Chorus]
Catchy chorus lyrics
[Bridge]
Bridge section
[Outro]
Ending lyrics
For tool-use with Claude/Copilot, install the MCP server:
pip install mcp-suno
Or use the hosted endpoint: https://suno.mcp.acedata.cloud/mcp
Key tools: suno_generate_music, suno_generate_custom_music, suno_extend_music, suno_cover_music, suno_generate_lyrics, suno_optimize_style
/suno/tasks or use "wait": truevocal_gender ("f"/"m") is only supported on v4.5+ modelsconcat action merges extended song segments — requires audio_id of the extended trackpersona requires an existing audio_id to extract the vocal reference from/suno/upload before using it with extend/cover共 1 个版本