POST request to https://api.qhaigc.net/v1/music/generations to create a music generation task. You can operate in two modes: standard mode, where you describe the music you want and the model writes its own lyrics, or custom mode, where you supply your own lyrics and style tags. The endpoint returns a task_id immediately — use GET /v1/music/query to check progress and retrieve the audio URL once generation is complete.
Music generation is asynchronous. The initial response only contains a
task_id and a PENDING status. Poll GET /v1/music/query every 5–10 seconds until status is "SUCCESS".Request
Parameters
In standard mode (
custom_mode: false): a description of the music style, mood, or theme. In custom mode (custom_mode: true): the song lyrics to use.The music generation model. Options are
"suno-v4.5-plus" (default, supports layered vocals and instruments) or "suno-v5" (latest, highest quality).Set to
true to enable custom mode, which lets you provide your own lyrics in prompt and specify style and title. Defaults to false.The musical style or genre (for example,
"pop upbeat electronic" or "jazz ballad"). Required when custom_mode is true.The song title. Required when
custom_mode is true.Set to
true to generate an instrumental track with no vocals. Defaults to false.The gender of the vocalist. Use
"m" for male or "f" for female. Only applies when instrumental is false.Response
"success" when the task was accepted.The task object.
Example response
Code examples
Models
| Model | Description |
|---|---|
suno-v4.5-plus | Default model. Supports layered vocals and instruments. |
suno-v5 | Latest model. Highest audio quality and creative range. |
Related endpoints
- GET /v1/music/query — Poll the task status and retrieve audio URLs when generation is complete