Generate music
Music
Music Generation (Beta)
Generates music using the requested model and provider settings.
POST
Generate music
Creates an asynchronous music generation job.
Poll completion with
GET /music/generate/{music_id}.
Request Shape
Suno Options
suno.customMode(boolean, defaultfalse)suno.instrumental(boolean, defaultfalse)suno.prompt(optional override for top-levelprompt)suno.style,suno.title(required whencustomMode = true)suno.personaId,suno.personaModelsuno.negativeTags,suno.vocalGendersuno.styleWeight,suno.weirdnessConstraint,suno.audioWeight
Validation Rules
- When
customMode = false,promptis required. - When
customMode = true, bothstyleandtitleare required. - When
customMode = trueandinstrumental = false,promptis required.
400 with:
Response
usage can include output_audio_seconds when duration is provided and pricing is computed against seconds.Authorizations
Bearer token authentication
Body
application/json
Available options:
mp3, wav, ogg, aac Provider routing preferences for gateway selection.
Gateway debug controls. These flags are never forwarded upstream.
Response
200 - application/json
Music generation response
The response is of type object.
Last modified on May 19, 2026