Light Mode
Generate Lyrics
POST
/api/suno/v1/lyricsThis endpoint from PiAPI's Suno API uses Suno to synthesize lyrics.
Request
Header Params
X-API-Key
string
required
Insert your API Key here
Example:
{{x-api-key}}
Body Params application/json
prompt
string
required
The prompt serve as a guidance to assist suno in writing the lyrics.
Example
{
"prompt": "Wind blowing"
}
Request samples
Responses
OK(200)
Bad Request(400)
Unauthorized(401)
Server Error(500)
HTTP Code: 200
Content Type : JSONapplication/json
OK - Successful response
Data Schema
code
integer
optional
data
object
optional
task_id
string
optional
message
string
optional
ExampleExample 1
{
"code": 200,
"data": {
"task_id": "9b016ff2**************e128eb9bb624"
},
"message": "success"
}
Modified at 15 days ago