Get Music Video Details
curl --request GET \
--url https://api.kie.ai/api/v1/mp4/record-info \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.kie.ai/api/v1/mp4/record-info"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.kie.ai/api/v1/mp4/record-info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.kie.ai/api/v1/mp4/record-info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.kie.ai/api/v1/mp4/record-info"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.kie.ai/api/v1/mp4/record-info")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kie.ai/api/v1/mp4/record-info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"code": 200,
"msg": "success",
"data": {
"taskId": "988e****c8d3",
"musicId": "e231****-****-****-****-****8cadc7dc",
"callbackUrl": "https://api.example.com/callback",
"musicIndex": 0,
"completeTime": "2025-01-01 00:10:00",
"response": {
"videoUrl": "https://example.com/s/04e6****e727.mp4"
},
"successFlag": "SUCCESS",
"createTime": "2025-01-01 00:00:00",
"errorCode": null,
"errorMessage": null
}
}Music Video Generation
Get Music Video Details
Retrieve detailed information about a music video generation task.
GET
/
api
/
v1
/
mp4
/
record-info
Get Music Video Details
curl --request GET \
--url https://api.kie.ai/api/v1/mp4/record-info \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.kie.ai/api/v1/mp4/record-info"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.kie.ai/api/v1/mp4/record-info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.kie.ai/api/v1/mp4/record-info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.kie.ai/api/v1/mp4/record-info"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.kie.ai/api/v1/mp4/record-info")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kie.ai/api/v1/mp4/record-info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"code": 200,
"msg": "success",
"data": {
"taskId": "988e****c8d3",
"musicId": "e231****-****-****-****-****8cadc7dc",
"callbackUrl": "https://api.example.com/callback",
"musicIndex": 0,
"completeTime": "2025-01-01 00:10:00",
"response": {
"videoUrl": "https://example.com/s/04e6****e727.mp4"
},
"successFlag": "SUCCESS",
"createTime": "2025-01-01 00:00:00",
"errorCode": null,
"errorMessage": null
}
}Usage Guide
- Use this endpoint to check the status of a video generation task
- Access the video URL once generation is complete
- Track processing progress and any errors that may have occurred
Status Descriptions
PENDING: Task is waiting to be processedSUCCESS: Video generation completed successfullyCREATE_TASK_FAILED: Failed to create the video generation taskGENERATE_MP4_FAILED: Failed during video file creation
Developer Notes
- The video URL is only available in the response when status is
SUCCESS - Error codes and messages are provided for failed tasks
- Videos are retained for 14 days after successful generation
Authorizations
All APIs require authentication via Bearer Token.
Get API Key:
- 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
