Generate full songs from a prompt.
job_id, poll GET /v1/music/generations/:job_id for progress.
When complete you get a URL to the MP3 and separate stems if the model exposes them (Suno supports vocals + instrumentals).
lyria-3-clip-preview (Google Lyria).
prompt — natural-language descriptionstyle — optional style tag (lofi, synthwave, indie, etc.)lyrics — optional explicit lyricsvocal_gender — male, female, noneduration_seconds — 30–180 (model-dependent)API key in format: Bearer inf_***
Model ID to use for music generation
Text prompt describing the music. For Lyria 3 Clip, always produces 30s. For Lyria 3 Pro, control duration via prompt or timestamps. For Suno, max 500 chars in non-custom mode, up to 5000 in custom mode.
Suno operation type. Default = generate. Other operations require additional fields (audio_id, upload_url, etc).
generate, extend, upload_cover, upload_extend, add_instrumental, add_vocals, sounds, vocal_removal, lyrics Up to 10 base64-encoded images to inspire the music (Lyria 3 only)
Output format. WAV only supported by Lyria 3 Pro and Suno.
mp3, wav Suno: Enable custom mode (full control over style/title/lyrics)
Suno: Generate instrumental track only (no vocals)
Suno: Track title (custom mode, max 100 chars)
Suno: Music genre/style (custom mode, max 1000 chars)
Suno: Lyrics text (custom mode, when not instrumental)
Suno: Styles to exclude (e.g. "Heavy Metal, Upbeat Drums")
Suno: Preferred vocal gender
m, f Suno: Style adherence weight (0.0-1.0)
0 <= x <= 1Suno: Creativity/novelty constraint (0.0-1.0)
0 <= x <= 1Suno: Input audio influence weight (0.0-1.0)
0 <= x <= 1Suno: Persona ID to apply (custom mode)
Suno: Persona model type
style_persona, voice_persona Suno: Source audio ID (for extend, vocal_removal)
Suno: Task ID (vocal_removal — references original generation task)
Suno: Audio file URL (for upload_cover, upload_extend, add_instrumental, add_vocals)
Suno: Continue from this second mark (extend operations)
Suno: Use default params (extend operations)
Suno: Vocal removal type (2 stems vs up to 12 stems)
separate_vocal, split_stem Suno: Tags for add_instrumental operation
Suno sounds: Loop the generated sound
Suno sounds: BPM (1-300)
1 <= x <= 300Suno sounds: Musical key
Music generation result. Audio is uploaded to private storage and returned as a signed url (7-day expiry). If the storage upload fails, the response falls back to inline b64_audio.