Query a music task by ID
curl --request GET \
--url https://api.aiid.edu.kg/suno/fetch/{task_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aiid.edu.kg/suno/fetch/{task_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aiid.edu.kg/suno/fetch/{task_id}', 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.aiid.edu.kg/suno/fetch/{task_id}",
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.aiid.edu.kg/suno/fetch/{task_id}"
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.aiid.edu.kg/suno/fetch/{task_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aiid.edu.kg/suno/fetch/{task_id}")
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": "success",
"message": "",
"data": {
"task_id": "task_xxx",
"platform": "suno",
"action": "MUSIC",
"status": "SUCCESS",
"progress": "100%",
"result_url": "https://example.com/audio.mp3",
"properties": {
"upstream_model_name": "suno_music",
"origin_model_name": "suno-v5.5"
},
"data": [
{
"id": "clip_xxx",
"title": "夏日海风",
"audio_url": "https://example.com/audio.mp3",
"image_url": "https://example.com/cover.jpg",
"model_name": "suno-v5.5",
"metadata": {
"duration": 180,
"prompt": "轻快电子流行,夏日海边,女声 旋律"
}
}
]
}
}Music generation task format
Query a music task by ID
Query the music generation task through path task_id.
Music generation task query API. The data returned by the create API is the task ID; use GET /suno/fetch/{task_id} to query a single task.
Query methods
GET /suno/fetch/task_xxx
Query output
Keep the outer new-api task structure:
code:successon success.message: Error or message information.data.task_id: Task ID.data.status: Task status, common values areNOT_START,SUBMITTED,QUEUED,IN_PROGRESS,SUCCESS, andFAILURE.data.progress: Task progress.data.result_url: Result URL available after success. If the upstream returns multiple songs, the fragment indata.dataprevails.data.data: Raw upstream music result data, usually containing an array or object of song fragments.
Success example:
{
"code": "success",
"message": "",
"data": {
"task_id": "task_xxx",
"platform": "suno",
"action": "MUSIC",
"status": "SUCCESS",
"progress": "100%",
"result_url": "https://example.com/audio.mp3",
"properties": {
"upstream_model_name": "suno_music",
"origin_model_name": "suno-v5.5"
},
"data": [
{
"id": "clip_xxx",
"title": "夏日海风",
"audio_url": "https://example.com/audio.mp3",
"image_url": "https://example.com/cover.jpg",
"model_name": "suno-v5.5",
"metadata": {
"duration": 180,
"prompt": "轻快电子流行,夏日海边,女声 旋律"
}
}
]
}
}
GET
/
suno
/
fetch
/
{task_id}
Query a music task by ID
curl --request GET \
--url https://api.aiid.edu.kg/suno/fetch/{task_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aiid.edu.kg/suno/fetch/{task_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aiid.edu.kg/suno/fetch/{task_id}', 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.aiid.edu.kg/suno/fetch/{task_id}",
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.aiid.edu.kg/suno/fetch/{task_id}"
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.aiid.edu.kg/suno/fetch/{task_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aiid.edu.kg/suno/fetch/{task_id}")
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": "success",
"message": "",
"data": {
"task_id": "task_xxx",
"platform": "suno",
"action": "MUSIC",
"status": "SUCCESS",
"progress": "100%",
"result_url": "https://example.com/audio.mp3",
"properties": {
"upstream_model_name": "suno_music",
"origin_model_name": "suno-v5.5"
},
"data": [
{
"id": "clip_xxx",
"title": "夏日海风",
"audio_url": "https://example.com/audio.mp3",
"image_url": "https://example.com/cover.jpg",
"model_name": "suno-v5.5",
"metadata": {
"duration": 180,
"prompt": "轻快电子流行,夏日海边,女声 旋律"
}
}
]
}
}Authorizations
Use Bearer Token authentication.
Format: Authorization: Bearer sk-xxxxxx
Path Parameters
The task ID returned when submitting a music task.
Example:
"task_xxx"
Response
200 - application/json
OK
On success, success.
Example:
"success"
Error or warning message.
