Create Suno Cover Task
curl --request POST \
--url https://apibox.erweima.ai/api/v1/suno/cover/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"taskId": "73d6128b3523a0079df10da9471017c8",
"callBackUrl": "https://api.example.com/callback"
}
'import requests
url = "https://apibox.erweima.ai/api/v1/suno/cover/generate"
payload = {
"taskId": "73d6128b3523a0079df10da9471017c8",
"callBackUrl": "https://api.example.com/callback"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
taskId: '73d6128b3523a0079df10da9471017c8',
callBackUrl: 'https://api.example.com/callback'
})
};
fetch('https://apibox.erweima.ai/api/v1/suno/cover/generate', 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://apibox.erweima.ai/api/v1/suno/cover/generate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'taskId' => '73d6128b3523a0079df10da9471017c8',
'callBackUrl' => 'https://api.example.com/callback'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apibox.erweima.ai/api/v1/suno/cover/generate"
payload := strings.NewReader("{\n \"taskId\": \"73d6128b3523a0079df10da9471017c8\",\n \"callBackUrl\": \"https://api.example.com/callback\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://apibox.erweima.ai/api/v1/suno/cover/generate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"taskId\": \"73d6128b3523a0079df10da9471017c8\",\n \"callBackUrl\": \"https://api.example.com/callback\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apibox.erweima.ai/api/v1/suno/cover/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"taskId\": \"73d6128b3523a0079df10da9471017c8\",\n \"callBackUrl\": \"https://api.example.com/callback\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"msg": "success",
"data": {
"taskId": "21aee3c3c2a01fa5e030b3799fa4dd56"
}
}Generate Music
Generate Music Cover
Create personalized cover images for generated music.
POST
/
api
/
v1
/
suno
/
cover
/
generate
Create Suno Cover Task
curl --request POST \
--url https://apibox.erweima.ai/api/v1/suno/cover/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"taskId": "73d6128b3523a0079df10da9471017c8",
"callBackUrl": "https://api.example.com/callback"
}
'import requests
url = "https://apibox.erweima.ai/api/v1/suno/cover/generate"
payload = {
"taskId": "73d6128b3523a0079df10da9471017c8",
"callBackUrl": "https://api.example.com/callback"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
taskId: '73d6128b3523a0079df10da9471017c8',
callBackUrl: 'https://api.example.com/callback'
})
};
fetch('https://apibox.erweima.ai/api/v1/suno/cover/generate', 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://apibox.erweima.ai/api/v1/suno/cover/generate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'taskId' => '73d6128b3523a0079df10da9471017c8',
'callBackUrl' => 'https://api.example.com/callback'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apibox.erweima.ai/api/v1/suno/cover/generate"
payload := strings.NewReader("{\n \"taskId\": \"73d6128b3523a0079df10da9471017c8\",\n \"callBackUrl\": \"https://api.example.com/callback\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://apibox.erweima.ai/api/v1/suno/cover/generate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"taskId\": \"73d6128b3523a0079df10da9471017c8\",\n \"callBackUrl\": \"https://api.example.com/callback\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apibox.erweima.ai/api/v1/suno/cover/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"taskId\": \"73d6128b3523a0079df10da9471017c8\",\n \"callBackUrl\": \"https://api.example.com/callback\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"msg": "success",
"data": {
"taskId": "21aee3c3c2a01fa5e030b3799fa4dd56"
}
}Usage Guide
- Use this interface to create personalized cover images for generated music
- Requires the taskId of the original music task
- Each music task can only generate a Cover once; duplicate requests will return the existing taskId
- Results will be notified through the callback URL upon completion
Parameter Details
taskIdidentifies the unique identifier of the original music generation taskcallBackUrlreceives callback address for completion notifications
Developer Notes
- Cover image file URLs will be retained for 14 days
- If a Cover has already been generated for this music task, a 400 status code and existing taskId will be returned
- Itβs recommended to call this interface after music generation is complete
- Usually generates 2 different style images for selection
Authorizations
π API Authentication
All endpoints require authentication using Bearer Token.
Get API Key
- Visit the API Key Management Page to obtain your API Key
Usage
Add to request headers:
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 from the management page
Body
application/json
Original music task ID, should be the taskId returned by the music generation interface.
Example:
"73d6128b3523a0079df10da9471017c8"
URL address for receiving Cover generation task completion updates. This parameter is required for all Cover generation requests.
- The system will send POST requests to this URL when Cover generation is complete, including task status and results
- Your callback endpoint should be able to accept JSON payloads containing cover image URLs
- For detailed callback format and implementation guide, see Cover Generation Callbacks
- Alternatively, you can use the Get Cover Details interface to poll task status
Example:
"https://api.example.com/callback"
