生成 Suno Voice ID
curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "suno-voice-generate",
"input": {
"task_id": "voice_validate_task_id",
"verify_url": "https://example.com/verification.wav",
"voice_name": "My Voice",
"style": "pop",
"singer_skill_level": "advanced"
}
}
'import requests
url = "https://api.poyo.ai/api/generate/submit"
payload = {
"model": "suno-voice-generate",
"input": {
"task_id": "voice_validate_task_id",
"verify_url": "https://example.com/verification.wav",
"voice_name": "My Voice",
"style": "pop",
"singer_skill_level": "advanced"
}
}
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({
model: 'suno-voice-generate',
input: {
task_id: 'voice_validate_task_id',
verify_url: 'https://example.com/verification.wav',
voice_name: 'My Voice',
style: 'pop',
singer_skill_level: 'advanced'
}
})
};
fetch('https://api.poyo.ai/api/generate/submit', 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.poyo.ai/api/generate/submit",
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([
'model' => 'suno-voice-generate',
'input' => [
'task_id' => 'voice_validate_task_id',
'verify_url' => 'https://example.com/verification.wav',
'voice_name' => 'My Voice',
'style' => 'pop',
'singer_skill_level' => 'advanced'
]
]),
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.poyo.ai/api/generate/submit"
payload := strings.NewReader("{\n \"model\": \"suno-voice-generate\",\n \"input\": {\n \"task_id\": \"voice_validate_task_id\",\n \"verify_url\": \"https://example.com/verification.wav\",\n \"voice_name\": \"My Voice\",\n \"style\": \"pop\",\n \"singer_skill_level\": \"advanced\"\n }\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.poyo.ai/api/generate/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"suno-voice-generate\",\n \"input\": {\n \"task_id\": \"voice_validate_task_id\",\n \"verify_url\": \"https://example.com/verification.wav\",\n \"voice_name\": \"My Voice\",\n \"style\": \"pop\",\n \"singer_skill_level\": \"advanced\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.poyo.ai/api/generate/submit")
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 \"model\": \"suno-voice-generate\",\n \"input\": {\n \"task_id\": \"voice_validate_task_id\",\n \"verify_url\": \"https://example.com/verification.wav\",\n \"voice_name\": \"My Voice\",\n \"style\": \"pop\",\n \"singer_skill_level\": \"advanced\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "voice_generate_task_id",
"status": "not_started",
"created_time": "2026-08-27T10:00:00"
}
}Suno 声音
生成 Suno 声音
根据验证录音创建可复用的 Voice ID
POST
/
api
/
generate
/
submit
生成 Suno Voice ID
curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "suno-voice-generate",
"input": {
"task_id": "voice_validate_task_id",
"verify_url": "https://example.com/verification.wav",
"voice_name": "My Voice",
"style": "pop",
"singer_skill_level": "advanced"
}
}
'import requests
url = "https://api.poyo.ai/api/generate/submit"
payload = {
"model": "suno-voice-generate",
"input": {
"task_id": "voice_validate_task_id",
"verify_url": "https://example.com/verification.wav",
"voice_name": "My Voice",
"style": "pop",
"singer_skill_level": "advanced"
}
}
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({
model: 'suno-voice-generate',
input: {
task_id: 'voice_validate_task_id',
verify_url: 'https://example.com/verification.wav',
voice_name: 'My Voice',
style: 'pop',
singer_skill_level: 'advanced'
}
})
};
fetch('https://api.poyo.ai/api/generate/submit', 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.poyo.ai/api/generate/submit",
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([
'model' => 'suno-voice-generate',
'input' => [
'task_id' => 'voice_validate_task_id',
'verify_url' => 'https://example.com/verification.wav',
'voice_name' => 'My Voice',
'style' => 'pop',
'singer_skill_level' => 'advanced'
]
]),
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.poyo.ai/api/generate/submit"
payload := strings.NewReader("{\n \"model\": \"suno-voice-generate\",\n \"input\": {\n \"task_id\": \"voice_validate_task_id\",\n \"verify_url\": \"https://example.com/verification.wav\",\n \"voice_name\": \"My Voice\",\n \"style\": \"pop\",\n \"singer_skill_level\": \"advanced\"\n }\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.poyo.ai/api/generate/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"suno-voice-generate\",\n \"input\": {\n \"task_id\": \"voice_validate_task_id\",\n \"verify_url\": \"https://example.com/verification.wav\",\n \"voice_name\": \"My Voice\",\n \"style\": \"pop\",\n \"singer_skill_level\": \"advanced\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.poyo.ai/api/generate/submit")
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 \"model\": \"suno-voice-generate\",\n \"input\": {\n \"task_id\": \"voice_validate_task_id\",\n \"verify_url\": \"https://example.com/verification.wav\",\n \"voice_name\": \"My Voice\",\n \"style\": \"pop\",\n \"singer_skill_level\": \"advanced\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "voice_generate_task_id",
"status": "not_started",
"created_time": "2026-08-27T10:00:00"
}
}使用验证声音返回的
task_id,或重新生成短语返回的新 task_id。verify_url 必须是所生成短语的干净录音。完成后的结果包含 voice_id 和 voice_status。可选的元数据包括 voice_name、description、style 和 singer_skill_level。授权
所有 API 接口都需要 Bearer Token 认证。
创建 API Key:登录 PoYo,进入 仪表盘 → API 密钥(poyo.ai/zh/dashboard/api-key),点击创建 Key。
在请求头中添加:
Authorization: Bearer YOUR_API_KEY
请求体
application/json
响应
200 - application/json
已提交
Show child attributes
Show child attributes