获取封面生成详情
curl --request GET \
--url https://api.sunoapi.org/api/v1/suno/cover/record-info \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sunoapi.org/api/v1/suno/cover/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.sunoapi.org/api/v1/suno/cover/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.sunoapi.org/api/v1/suno/cover/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.sunoapi.org/api/v1/suno/cover/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.sunoapi.org/api/v1/suno/cover/record-info")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sunoapi.org/api/v1/suno/cover/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": "21aee3c3c2a01fa5e030b3799fa4dd56",
"parentTaskId": "73d6128b3523a0079df10da9471017c8",
"callbackUrl": "https://api.example.com/callback",
"completeTime": "2025-01-15T10:35:27.000Z",
"response": {
"images": [
"https://tempfile.aiquickdraw.com/s/1753958521_6c1b3015141849d1a9bf17b738ce9347.png",
"https://tempfile.aiquickdraw.com/s/1753958524_c153143acc6340908431cf0e90cbce9e.png"
]
},
"successFlag": 1,
"createTime": "2025-01-15T10:33:01.000Z",
"errorCode": 200,
"errorMessage": ""
}
}Generate Music
获取音乐封面详情
获取音乐封面生成任务的详细信息。
GET
/
api
/
v1
/
suno
/
cover
/
record-info
获取封面生成详情
curl --request GET \
--url https://api.sunoapi.org/api/v1/suno/cover/record-info \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sunoapi.org/api/v1/suno/cover/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.sunoapi.org/api/v1/suno/cover/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.sunoapi.org/api/v1/suno/cover/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.sunoapi.org/api/v1/suno/cover/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.sunoapi.org/api/v1/suno/cover/record-info")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sunoapi.org/api/v1/suno/cover/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": "21aee3c3c2a01fa5e030b3799fa4dd56",
"parentTaskId": "73d6128b3523a0079df10da9471017c8",
"callbackUrl": "https://api.example.com/callback",
"completeTime": "2025-01-15T10:35:27.000Z",
"response": {
"images": [
"https://tempfile.aiquickdraw.com/s/1753958521_6c1b3015141849d1a9bf17b738ce9347.png",
"https://tempfile.aiquickdraw.com/s/1753958524_c153143acc6340908431cf0e90cbce9e.png"
]
},
"successFlag": 1,
"createTime": "2025-01-15T10:33:01.000Z",
"errorCode": 200,
"errorMessage": ""
}
}使用指南
- 使用此接口检查封面生成任务状态
- 完成后访问生成的封面图像URL
- 跟踪处理进度和可能发生的任何错误
- 支持轮询获取任务结果,建议每30秒查询一次
开发者说明
- 封面图像URL仅在成功完成后可用
- 为失败的任务提供错误代码和消息
- 成功处理后,封面图像将保留14天
- 通常生成2种不同风格的封面图像
授权
🔑 API 认证说明
所有接口都需要通过 Bearer Token 方式进行认证。
获取 API Key
- 访问 API Key 管理页面 获取您的 API Key
使用方式
在请求头中添加:
Authorization: Bearer YOUR_API_KEY
⚠️ 注意:
- 请妥善保管您的 API Key,不要泄露给他人
- 如果怀疑 API Key 泄露,请立即在管理页面重置
查询参数
要检索的封面生成任务的唯一标识符。这是创建封面生成任务时返回的taskId。
⌘I
