Generate music and lyrics using AI. This is an asynchronous API - you’ll receive a task ID to poll for completion.
Request Body
model
string
default:"suno_music"
Model to use (e.g., suno_music, suno-v4).
Description of the music to generate. Can include style, mood, instruments, etc.
Title for the generated song.
Style tags (e.g., “pop, upbeat, electronic”).
Generation type: MUSIC (default) or LYRICS.
ID of a previous clip to continue from.
Timestamp (in seconds) to continue from.
Response
Task ID for polling status.
Task status: pending, processing, completed, or failed.
Unix timestamp of task creation.
curl -X POST "https://api.lemondata.cc/v1/music/generations" \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "suno_music",
"prompt": "An upbeat electronic dance track with heavy bass",
"title": "Night Drive",
"tags": "electronic, EDM, energetic"
}'
{
"id": "music_abc123",
"status": "pending",
"created": 1706000000,
"model": "suno_music"
}