Documentation
v1
Make Random Lyrics

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

NameTypeRequiredDefault
promptstringtrue""

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

NameTypeDescription
codenumberthe HTTP status code of the response
dataobjectthe data of the response
messagestringthe message of the response

data

NameTypeDescription
task_idstringthe 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)
  })