POST
/
api
/
v1
/
mp4
/
generate
Create Music Video
curl --request POST \
  --url https://api.kie.ai/api/v1/mp4/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "taskId": "taskId_774b9aa0422f",
  "audioId": "audioId_0295980ec02e",
  "callBackUrl": "https://api.example.com/callback",
  "author": "DJ Electronic",
  "domainName": "music.example.com"
}'
{
  "code": 0,
  "msg": "",
  "data": {
    "taskId": ""
  }
}

Usage Guide

  • Use this endpoint to turn your audio tracks into visually appealing videos
  • Add artist attribution and branding to your music videos
  • Videos can be shared on social media or embedded in websites

Parameter Details

  • taskId identifies the original music generation task
  • audioId specifies which audio track to visualize when multiple variations exist
  • Optional author and domainName add customized branding to the video

Developer Notes

  • Generated video files are retained for 14 days
  • Videos are optimized for social media sharing
  • Processing time varies based on audio length and server load

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

Success

The response is of type object.