Add Instrumental to Music
curl --request POST \
--url https://api.kie.ai/api/v1/generate/add-instrumental \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"uploadUrl": "https://example.com/music.mp3",
"title": "Relaxing Piano",
"negativeTags": "heavy metal, fast drums",
"tags": "relaxing, piano, soothing",
"callBackUrl": "https://example.com/callback",
"model": "V4_5PLUS",
"vocalGender": "m",
"styleWeight": 0.61,
"weirdnessConstraint": 0.72,
"audioWeight": 0.65
}
'import requests
url = "https://api.kie.ai/api/v1/generate/add-instrumental"
payload = {
"uploadUrl": "https://example.com/music.mp3",
"title": "Relaxing Piano",
"negativeTags": "heavy metal, fast drums",
"tags": "relaxing, piano, soothing",
"callBackUrl": "https://example.com/callback",
"model": "V4_5PLUS",
"vocalGender": "m",
"styleWeight": 0.61,
"weirdnessConstraint": 0.72,
"audioWeight": 0.65
}
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({
uploadUrl: 'https://example.com/music.mp3',
title: 'Relaxing Piano',
negativeTags: 'heavy metal, fast drums',
tags: 'relaxing, piano, soothing',
callBackUrl: 'https://example.com/callback',
model: 'V4_5PLUS',
vocalGender: 'm',
styleWeight: 0.61,
weirdnessConstraint: 0.72,
audioWeight: 0.65
})
};
fetch('https://api.kie.ai/api/v1/generate/add-instrumental', 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/generate/add-instrumental",
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([
'uploadUrl' => 'https://example.com/music.mp3',
'title' => 'Relaxing Piano',
'negativeTags' => 'heavy metal, fast drums',
'tags' => 'relaxing, piano, soothing',
'callBackUrl' => 'https://example.com/callback',
'model' => 'V4_5PLUS',
'vocalGender' => 'm',
'styleWeight' => 0.61,
'weirdnessConstraint' => 0.72,
'audioWeight' => 0.65
]),
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://api.kie.ai/api/v1/generate/add-instrumental"
payload := strings.NewReader("{\n \"uploadUrl\": \"https://example.com/music.mp3\",\n \"title\": \"Relaxing Piano\",\n \"negativeTags\": \"heavy metal, fast drums\",\n \"tags\": \"relaxing, piano, soothing\",\n \"callBackUrl\": \"https://example.com/callback\",\n \"model\": \"V4_5PLUS\",\n \"vocalGender\": \"m\",\n \"styleWeight\": 0.61,\n \"weirdnessConstraint\": 0.72,\n \"audioWeight\": 0.65\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://api.kie.ai/api/v1/generate/add-instrumental")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"uploadUrl\": \"https://example.com/music.mp3\",\n \"title\": \"Relaxing Piano\",\n \"negativeTags\": \"heavy metal, fast drums\",\n \"tags\": \"relaxing, piano, soothing\",\n \"callBackUrl\": \"https://example.com/callback\",\n \"model\": \"V4_5PLUS\",\n \"vocalGender\": \"m\",\n \"styleWeight\": 0.61,\n \"weirdnessConstraint\": 0.72,\n \"audioWeight\": 0.65\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kie.ai/api/v1/generate/add-instrumental")
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 \"uploadUrl\": \"https://example.com/music.mp3\",\n \"title\": \"Relaxing Piano\",\n \"negativeTags\": \"heavy metal, fast drums\",\n \"tags\": \"relaxing, piano, soothing\",\n \"callBackUrl\": \"https://example.com/callback\",\n \"model\": \"V4_5PLUS\",\n \"vocalGender\": \"m\",\n \"styleWeight\": 0.61,\n \"weirdnessConstraint\": 0.72,\n \"audioWeight\": 0.65\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"msg": "success",
"data": {
"taskId": "5c79****be8e"
}
}Suno API
Add Instrumental
This endpoint generates a musical accompaniment tailored to an uploaded audio file — typically a vocal stem or melody track. It helps users instantly flesh out their vocal ideas with high-quality backing music, all without needing a producer.
POST
/
api
/
v1
/
generate
/
add-instrumental
Add Instrumental to Music
curl --request POST \
--url https://api.kie.ai/api/v1/generate/add-instrumental \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"uploadUrl": "https://example.com/music.mp3",
"title": "Relaxing Piano",
"negativeTags": "heavy metal, fast drums",
"tags": "relaxing, piano, soothing",
"callBackUrl": "https://example.com/callback",
"model": "V4_5PLUS",
"vocalGender": "m",
"styleWeight": 0.61,
"weirdnessConstraint": 0.72,
"audioWeight": 0.65
}
'import requests
url = "https://api.kie.ai/api/v1/generate/add-instrumental"
payload = {
"uploadUrl": "https://example.com/music.mp3",
"title": "Relaxing Piano",
"negativeTags": "heavy metal, fast drums",
"tags": "relaxing, piano, soothing",
"callBackUrl": "https://example.com/callback",
"model": "V4_5PLUS",
"vocalGender": "m",
"styleWeight": 0.61,
"weirdnessConstraint": 0.72,
"audioWeight": 0.65
}
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({
uploadUrl: 'https://example.com/music.mp3',
title: 'Relaxing Piano',
negativeTags: 'heavy metal, fast drums',
tags: 'relaxing, piano, soothing',
callBackUrl: 'https://example.com/callback',
model: 'V4_5PLUS',
vocalGender: 'm',
styleWeight: 0.61,
weirdnessConstraint: 0.72,
audioWeight: 0.65
})
};
fetch('https://api.kie.ai/api/v1/generate/add-instrumental', 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/generate/add-instrumental",
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([
'uploadUrl' => 'https://example.com/music.mp3',
'title' => 'Relaxing Piano',
'negativeTags' => 'heavy metal, fast drums',
'tags' => 'relaxing, piano, soothing',
'callBackUrl' => 'https://example.com/callback',
'model' => 'V4_5PLUS',
'vocalGender' => 'm',
'styleWeight' => 0.61,
'weirdnessConstraint' => 0.72,
'audioWeight' => 0.65
]),
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://api.kie.ai/api/v1/generate/add-instrumental"
payload := strings.NewReader("{\n \"uploadUrl\": \"https://example.com/music.mp3\",\n \"title\": \"Relaxing Piano\",\n \"negativeTags\": \"heavy metal, fast drums\",\n \"tags\": \"relaxing, piano, soothing\",\n \"callBackUrl\": \"https://example.com/callback\",\n \"model\": \"V4_5PLUS\",\n \"vocalGender\": \"m\",\n \"styleWeight\": 0.61,\n \"weirdnessConstraint\": 0.72,\n \"audioWeight\": 0.65\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://api.kie.ai/api/v1/generate/add-instrumental")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"uploadUrl\": \"https://example.com/music.mp3\",\n \"title\": \"Relaxing Piano\",\n \"negativeTags\": \"heavy metal, fast drums\",\n \"tags\": \"relaxing, piano, soothing\",\n \"callBackUrl\": \"https://example.com/callback\",\n \"model\": \"V4_5PLUS\",\n \"vocalGender\": \"m\",\n \"styleWeight\": 0.61,\n \"weirdnessConstraint\": 0.72,\n \"audioWeight\": 0.65\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kie.ai/api/v1/generate/add-instrumental")
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 \"uploadUrl\": \"https://example.com/music.mp3\",\n \"title\": \"Relaxing Piano\",\n \"negativeTags\": \"heavy metal, fast drums\",\n \"tags\": \"relaxing, piano, soothing\",\n \"callBackUrl\": \"https://example.com/callback\",\n \"model\": \"V4_5PLUS\",\n \"vocalGender\": \"m\",\n \"styleWeight\": 0.61,\n \"weirdnessConstraint\": 0.72,\n \"audioWeight\": 0.65\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"msg": "success",
"data": {
"taskId": "5c79****be8e"
}
}Key Capabilities
- Accepts uploadUrl of an existing audio file (usually vocals or stems).
- Supports fine-grained customization via parameters such as:
- tags and negativeTags (musical style controls)
- styleWeight, audioWeight, weirdnessConstraint (stylistic & creative blending)
- vocalGender, title, callBackUrl for metadata & workflow control .
- Returns a taskId for tracking, and results are retained for 14 days. Callback workflow includes three stages: text, first, and complete .
Typical Use Cases
- Singers or melody writers who want instant fuller arrangements around their vocal inputs.
- Applications like karaoke platforms, demo-generation tools, or co-creation interfaces that allow users to experiment with accompaniment styles easily.
Parameter Details
uploadUrlspecifies the audio file URL to be processedtitlespecifies the title for the generated musicmodelspecifies the AI model version for generationtagsandnegativeTagsare used to control music style- Supports various optional parameters for fine-tuning generation effects
Developer Notes
- Generated files will be retained for 14 days
- Callback process has three stages:
text(text generation),first(first track completed),complete(all completed)
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
Body
application/json
URL address for receiving instrumental generation task completion updates. This parameter is required for all instrumental generation requests.
- The system will send a POST request to this URL when instrumental generation is completed, including task status and results
- Callback process has three stages:
text(text generation),first(first track completed),complete(all completed) - Your callback endpoint should be able to accept POST requests containing JSON payloads with music generation results
- Alternatively, you can use the get music details interface to poll task status
- To ensure callback security, see Webhook Verification Guide for signature verification implementation
Example:
"https://example.com/callback"
Response
Request successful
Response status code
- 200: Success - Request processed successfully
- 401: Unauthorized - Authentication credentials missing or invalid
- 402: Insufficient credits - Account does not have enough credits to perform this operation
- 404: Not found - Requested resource or endpoint does not exist
- 409: Conflict - WAV record already exists
- 422: Validation error - Request parameters failed validation checks
- 429: Rate limit exceeded - Request limit for this resource has been exceeded
- 451: Unauthorized - Failed to retrieve image. Please verify any access restrictions set by you or your service provider.
- 455: Service unavailable - System currently undergoing maintenance
- 500: Server error - Unexpected error occurred while processing request
Available options:
200, 401, 402, 404, 409, 422, 429, 451, 455, 500 