Add Vocals to Music
curl --request POST \
--url https://api.kie.ai/api/v1/generate/add-vocals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "A calm and relaxing piano track.",
"title": "Relaxing Piano",
"negativeTags": "heavy metal, strong drum beats",
"style": "Jazz",
"uploadUrl": "https://example.com/music.mp3",
"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-vocals"
payload = {
"prompt": "A calm and relaxing piano track.",
"title": "Relaxing Piano",
"negativeTags": "heavy metal, strong drum beats",
"style": "Jazz",
"uploadUrl": "https://example.com/music.mp3",
"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({
prompt: 'A calm and relaxing piano track.',
title: 'Relaxing Piano',
negativeTags: 'heavy metal, strong drum beats',
style: 'Jazz',
uploadUrl: 'https://example.com/music.mp3',
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-vocals', 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-vocals",
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([
'prompt' => 'A calm and relaxing piano track.',
'title' => 'Relaxing Piano',
'negativeTags' => 'heavy metal, strong drum beats',
'style' => 'Jazz',
'uploadUrl' => 'https://example.com/music.mp3',
'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-vocals"
payload := strings.NewReader("{\n \"prompt\": \"A calm and relaxing piano track.\",\n \"title\": \"Relaxing Piano\",\n \"negativeTags\": \"heavy metal, strong drum beats\",\n \"style\": \"Jazz\",\n \"uploadUrl\": \"https://example.com/music.mp3\",\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-vocals")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"A calm and relaxing piano track.\",\n \"title\": \"Relaxing Piano\",\n \"negativeTags\": \"heavy metal, strong drum beats\",\n \"style\": \"Jazz\",\n \"uploadUrl\": \"https://example.com/music.mp3\",\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-vocals")
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 \"prompt\": \"A calm and relaxing piano track.\",\n \"title\": \"Relaxing Piano\",\n \"negativeTags\": \"heavy metal, strong drum beats\",\n \"style\": \"Jazz\",\n \"uploadUrl\": \"https://example.com/music.mp3\",\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 Vocals
This endpoint layers AI-generated vocals on top of an existing instrumental. Given a prompt (e.g., lyrical concept or musical mood) and optional audio, it produces vocal output harmonized with the provided track.
POST
/
api
/
v1
/
generate
/
add-vocals
Add Vocals to Music
curl --request POST \
--url https://api.kie.ai/api/v1/generate/add-vocals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "A calm and relaxing piano track.",
"title": "Relaxing Piano",
"negativeTags": "heavy metal, strong drum beats",
"style": "Jazz",
"uploadUrl": "https://example.com/music.mp3",
"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-vocals"
payload = {
"prompt": "A calm and relaxing piano track.",
"title": "Relaxing Piano",
"negativeTags": "heavy metal, strong drum beats",
"style": "Jazz",
"uploadUrl": "https://example.com/music.mp3",
"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({
prompt: 'A calm and relaxing piano track.',
title: 'Relaxing Piano',
negativeTags: 'heavy metal, strong drum beats',
style: 'Jazz',
uploadUrl: 'https://example.com/music.mp3',
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-vocals', 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-vocals",
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([
'prompt' => 'A calm and relaxing piano track.',
'title' => 'Relaxing Piano',
'negativeTags' => 'heavy metal, strong drum beats',
'style' => 'Jazz',
'uploadUrl' => 'https://example.com/music.mp3',
'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-vocals"
payload := strings.NewReader("{\n \"prompt\": \"A calm and relaxing piano track.\",\n \"title\": \"Relaxing Piano\",\n \"negativeTags\": \"heavy metal, strong drum beats\",\n \"style\": \"Jazz\",\n \"uploadUrl\": \"https://example.com/music.mp3\",\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-vocals")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"A calm and relaxing piano track.\",\n \"title\": \"Relaxing Piano\",\n \"negativeTags\": \"heavy metal, strong drum beats\",\n \"style\": \"Jazz\",\n \"uploadUrl\": \"https://example.com/music.mp3\",\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-vocals")
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 \"prompt\": \"A calm and relaxing piano track.\",\n \"title\": \"Relaxing Piano\",\n \"negativeTags\": \"heavy metal, strong drum beats\",\n \"style\": \"Jazz\",\n \"uploadUrl\": \"https://example.com/music.mp3\",\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 an existing instrumental via uploadUrl, with optional prompt-based stylistic input.
- Supports control parameters including:
- prompt, style, tags, model, negativeTags (define lyrical content and vocal style)
- vocalGender, styleWeight, weirdnessConstraint, audioWeight, callBackUrl .
- Returns a taskId, supports the same 14-day retention and three-stage callback model as the instrumental endpoint .
Typical Use Cases
- Music platforms or tools enabling topline creation and rapid prototyping of lyrical ideas.
- Collaborative songwriting or co-creation workflows, where lyrics or vocal styles are iteratively tested over instrumental drafts.
Parameter Details
uploadUrlspecifies the audio file URL to be processedpromptdefines lyric content and singing stylemodelspecifies the AI model version for generationstyleandnegativeTagsare used to control music and vocal stylenegativeTagsare used to exclude unwanted elements- 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 vocal generation task completion updates. This parameter is required for all vocal generation requests.
- The system will send a POST request to this URL when vocal 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 