/api/custom_generate to turn the lyrics into a song.
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
A description or theme for the lyrics. Suno uses this to write verses, choruses, and structure. For example:
"A melancholic song about missing someone in winter".Response
A single lyrics generation result object returned directly from Suno’s internal lyrics API.The server returns Suno’s raw lyrics object without normalization. Field names reflect Suno’s internal API schema.
The generation ID assigned by Suno.
A title Suno generated for the lyrics.
The full generated lyrics text, including section markers such as
[Verse], [Chorus], and [Outro].Generation status. The server polls until this is
"complete" before returning, so the response always has status: "complete".Error responses
| Status | Meaning |
|---|---|
402 | Out of Suno credits — payment required |
500 | Internal server error |
503 | Network error connecting to Suno |
