The server reads your Suno session from the
SUNO_COOKIE environment variable. Pass a Cookie header containing a valid __client value to use a different Suno account on a per-request basis.Request body
The song’s lyrics. You can use Suno section markers such as
[Verse], [Chorus], [Bridge], and [Outro] to control song structure.Comma-separated music style and genre tags that guide the sonic character of the output (e.g.
"folk, acoustic guitar, female vocalist").The title of the song.
When
true, generates music without vocals. The prompt lyrics are ignored.The Suno model version to use for generation.
When
true, blocks until both clips reach streaming or complete status (up to 100 seconds). When false, clips are returned immediately in submitted / queued state.Comma-separated style tags to avoid in the generated output (e.g.
"heavy metal, distortion").Response
An array of twoAudioInfo objects. See Generate for the full field reference.
Unique identifier for the audio clip.
Title of the clip (matches the
title you provided).URL of the cover art image.
The lyrics used in the generated audio.
URL of the generated audio file. May be empty until
status is streaming or complete.URL of the generated video file.
ISO 8601 timestamp of clip creation.
The model used to generate this clip.
GPT description prompt field (empty for custom generation).
The lyrics prompt as stored in the clip’s metadata.
Generation status:
submitted, queued, streaming, complete, or error.Internal clip type as reported by Suno.
The style tags used for generation.
The negative style tags used for generation.
Duration of the audio clip in seconds.
Error description when
status is error.Error responses
| Status | Meaning |
|---|---|
400 | Bad request (e.g. missing required field) |
402 | Out of Suno credits — payment required |
500 | Internal server error |
