POST
/
api
/
v1
/
lyrics
Generate Lyrics
curl --request POST \
  --url https://api.kie.ai/api/v1/lyrics \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "prompt": "A nostalgic song about childhood memories and growing up in a small town",
  "callBackUrl": "https://api.example.com/callback"
}'
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "5c79****be8e"
  }
}

Usage Guide

  • Use this endpoint to create lyrics for music composition
  • Multiple variations of lyrics will be generated for each request
  • Each generated lyric set includes title and structured verse/chorus sections

Parameter Details

  • prompt should describe the theme, style, or subject of the desired lyrics
  • A detailed prompt yields more targeted and relevant lyrics

Developer Notes

  • Generated lyrics are retained for 14 days
  • Callback occurs once with all generated variations when complete
  • Typically returns 2-3 different lyric variations per request
  • Each lyric set is formatted with standard section markers ([Verse], [Chorus], etc.)

Authorizations

Authorization
string
header
required

All APIs require authentication via Bearer Token.

Get API Key:

  1. Visit API Key Management Page to get your API Key

Usage: Add to request header: Authorization: Bearer YOUR_API_KEY

Note:

  • Keep your API Key secure and do not share it with others
  • If you suspect your API Key has been compromised, reset it immediately in the management page

Body

application/json

Response

200
application/json

Request successful

The response is of type object.