Get Voice
curl --request POST \
--url https://api.minimaxi.com/v1/get_voice \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--data '
{
"voice_type": "all"
}
'import requests
url = "https://api.minimaxi.com/v1/get_voice"
payload = { "voice_type": "all" }
headers = {
"Content-Type": "<content-type>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Authorization: 'Bearer <token>'},
body: JSON.stringify({voice_type: 'all'})
};
fetch('https://api.minimaxi.com/v1/get_voice', 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.minimaxi.com/v1/get_voice",
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([
'voice_type' => 'all'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: <content-type>"
],
]);
$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.minimaxi.com/v1/get_voice"
payload := strings.NewReader("{\n \"voice_type\": \"all\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
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.post("https://api.minimaxi.com/v1/get_voice")
.header("Content-Type", "<content-type>")
.header("Authorization", "Bearer <token>")
.body("{\n \"voice_type\": \"all\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.minimaxi.com/v1/get_voice")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = 'Bearer <token>'
request.body = "{\n \"voice_type\": \"all\"\n}"
response = http.request(request)
puts response.read_body{
"system_voice": [
{
"voice_id": "Chinese (Mandarin)_Reliable_Executive",
"description": [
"一位沉稳可靠的中年男性高管声音,标准普通话,传递出值得信赖的感觉。"
],
"voice_name": "沉稳高管",
"created_time": "1970-01-01"
},
{
"voice_id": "Chinese (Mandarin)_News_Anchor",
"description": [
"一位专业、播音腔的中年女性新闻主播,标准普通话。"
],
"voice_name": "新闻女声",
"created_time": "1970-01-01"
}
],
"voice_cloning": [
{
"voice_id": "test12345",
"description": [],
"created_time": "2025-08-20"
},
{
"voice_id": "test12346",
"description": [],
"created_time": "2025-08-21"
}
],
"voice_generation": [
{
"voice_id": "ttv-voice-2025082011321125-2uEN0X1S",
"description": [],
"created_time": "2025-08-20"
},
{
"voice_id": "ttv-voice-2025082014225025-ZCQt0U0k",
"description": [],
"created_time": "2025-08-20"
}
],
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}声音管理
查询可用音色ID
使用本接口支持查询不同分类下的音色信息。
POST
/
v1
/
get_voice
Get Voice
curl --request POST \
--url https://api.minimaxi.com/v1/get_voice \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--data '
{
"voice_type": "all"
}
'import requests
url = "https://api.minimaxi.com/v1/get_voice"
payload = { "voice_type": "all" }
headers = {
"Content-Type": "<content-type>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Authorization: 'Bearer <token>'},
body: JSON.stringify({voice_type: 'all'})
};
fetch('https://api.minimaxi.com/v1/get_voice', 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.minimaxi.com/v1/get_voice",
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([
'voice_type' => 'all'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: <content-type>"
],
]);
$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.minimaxi.com/v1/get_voice"
payload := strings.NewReader("{\n \"voice_type\": \"all\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
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.post("https://api.minimaxi.com/v1/get_voice")
.header("Content-Type", "<content-type>")
.header("Authorization", "Bearer <token>")
.body("{\n \"voice_type\": \"all\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.minimaxi.com/v1/get_voice")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = 'Bearer <token>'
request.body = "{\n \"voice_type\": \"all\"\n}"
response = http.request(request)
puts response.read_body{
"system_voice": [
{
"voice_id": "Chinese (Mandarin)_Reliable_Executive",
"description": [
"一位沉稳可靠的中年男性高管声音,标准普通话,传递出值得信赖的感觉。"
],
"voice_name": "沉稳高管",
"created_time": "1970-01-01"
},
{
"voice_id": "Chinese (Mandarin)_News_Anchor",
"description": [
"一位专业、播音腔的中年女性新闻主播,标准普通话。"
],
"voice_name": "新闻女声",
"created_time": "1970-01-01"
}
],
"voice_cloning": [
{
"voice_id": "test12345",
"description": [],
"created_time": "2025-08-20"
},
{
"voice_id": "test12346",
"description": [],
"created_time": "2025-08-21"
}
],
"voice_generation": [
{
"voice_id": "ttv-voice-2025082011321125-2uEN0X1S",
"description": [],
"created_time": "2025-08-20"
},
{
"voice_id": "ttv-voice-2025082014225025-ZCQt0U0k",
"description": [],
"created_time": "2025-08-20"
}
],
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}该 API 支持查询当前账号下可调用的全部音色 ID(voice_id)。
包括系统音色、快速克隆音色、文生音色接口生成的音色、音乐生成接口的人声音色以及伴奏音色。
快速复刻得到的音色为未激活状态,需正式调用一次才可在本接口查询到
授权
请求头
请求体的媒介类型,请设置为 application/json,确保请求数据的格式为 JSON
可用选项:
application/json 请求体
application/json
希望查询音色类型,支持以下取值:
system: 系统音色voice_cloning: 快速复刻的音色,仅在成功用于语音合成后才可查询voice_generation: 文生音色接口生成的音色,仅在成功用于语音合成后才可查询all: 以上全部
可用选项:
system, voice_cloning, voice_generation, all 此页面对您有帮助吗?
⌘I