Make Lyrics
POST
https://api.sunoapi.com/api/v1/suno/make-lyrics
The core API to generate your music lyrics.
POST /api/v1/suno/make-lyrics
Sample Request
{
"prompt": "run away"
}
Request Body
Name | Type | Required | Default |
---|---|---|---|
prompt | string | true | "" |
prompt
The title of the song or the description of the lyrics, you can include less than 200 characters in the prompt
field.
Sample Response
{
"code": 200,
"data": {
"task_id": "3d51f2fb-2a52-4207-9808-a3aa7c9f64ce"
},
"message": "success"
}
Response Body
Name | Type | Description |
---|---|---|
code | number | the HTTP status code of the response |
data | object | the data of the response |
message | string | the message of the response |
data
Name | Type | Description |
---|---|---|
task_id | string | the task ID of the lyrics generation job |
task_id
The task ID of the lyrics generation job, which can be used to query the progress of the job and retrieve the generated lyrics. You can use this ID to retrieve the lyrics from the API get-lyrics.
Examples
const axios = require("axios")
const config = {
method: "post",
url: "https://api.sunoapi.com/api/v1/suno/make-lyrics",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer <your-token>",
},
data: {
prompt: "run away",
},
}
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data))
})
.catch(function (error) {
console.log(error)
})