Voice cloning HTTP API: Qwen-Omni and LiveTranslate
HTTP parameters, responses, and examples for creating, listing, and deleting Qwen-Omni voices, and creating and deleting pre-created LiveTranslate voices.
This reference covers Qwen-Omni, Qwen-Omni-Realtime, and pre-created Qwen-LiveTranslate-Realtime voices.
| Target model | Operations in this reference |
|---|---|
| Qwen-Omni, Qwen-Omni-Realtime | Create, list, and delete voices |
| Qwen-LiveTranslate-Realtime | Create and delete pre-created voices |
First Obtain API Key and Configure Environment Variables. Request examples read from DASHSCOPE_API_KEY. When managing the same voice across different APIs, use the same account.
Service endpoint
Qwen-Omni、Qwen-Omni-Realtime
China (Beijing)
POST https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/services/audio/tts/customization
Singapore
POST https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v1/services/audio/tts/customization
Replace {WorkspaceId} with the actual Workspace ID; this can be found on the Workspace Details page in the Alibaba Cloud Model Studio console. The API Keys for Beijing and Singapore differ.
ImportantAlibaba Cloud Model Studio has released workspace-specific domains for the China (Beijing) and Singapore regions. The new dedicated domains deliver superior performance and higher stability for inference requests. We recommend migrating to the new domains:
- North China 2 (Beijing) Region: Migrate from
dashscope.aliyuncs.comto{WorkspaceId}.cn-beijing.maas.aliyuncs.com. - Singapore Region: Migrate from
dashscope-intl.aliyuncs.comto{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com.
Existing domain names remain fully functional.
Qwen-LiveTranslate-Realtime
North China 2 (Beijing) Region:
POST https://dashscope.aliyuncs.com/api/v1/services/audio/tts/customization
Request headers
Authorizationstring(Required)Authentication token in the format Bearer <your_api_key>. Replace <your_api_key> with your actual API key.
Content-Typestring(Required)Set to application/json.
Audio Requirements and Costs
Qwen-Omni, Qwen-Omni-Realtime: Supported input audio formats include WAV (16-bit), MP3, and M4A. Recommended length is 10–20 seconds, maximum 60 seconds, file size under 10 MB, sampling rate no less than 24 kHz, and mono-only. The audio must contain at least 3 seconds of continuous, clear speech, with pauses no longer than 2 seconds; avoid background music, noise, or other voices throughout the recording. Use normal speech audio—do not upload songs or singing. Supported languages and dialects are listed in the language parameters below; recording recommendations are provided in the Audio Requirements.
Cloning steps, complete examples, and costs are detailed in the Voice Cloning User Guide.
Qwen-LiveTranslate-Realtime: Supports qwen3.8-livetranslate-flash-realtime and qwen3.5-livetranslate-flash-realtime. This section describes pre-creating a voice; real-time extraction of input voice during translation is covered in Voice Configuration. Pre-creating a voice incurs separate charges; model invocation remains billed by token usage, as outlined in Billing Information. Reference audio must use a publicly accessible URL.
Request body
modelstring— RequiredSet to qwen-voice-enrollment.
inputobject— RequiredProperties
actionstring— RequiredOperation:
create: Create a voice.list: List voices (Qwen-Omni and Qwen-Omni-Realtime only).delete: Delete a voice.
target_modelstring— Required for creationThe model that will use the voice. It must match the model used in subsequent synthesis or conversation calls; otherwise, the call fails.
Qwen-Omni, Qwen-Omni-Realtime: The omni model:
- qwen3.8-omni-flash-realtime
- qwen3.5-omni-plus-realtime
- qwen3.5-omni-flash-realtime
- qwen3.5-omni-plus
- qwen3.5-omni-flash
Qwen-LiveTranslate-Realtime: The real-time translation model used in subsequent sessions.
audioobject— Required for creationThe reference audio object.
Properties
datastring— RequiredQwen-Omni, Qwen-Omni-Realtime: Audio used for cloning (recording must follow the Recording Guidelines, and the audio must meet the Audio Requirements).
For Qwen-Omni and Qwen-Omni-Realtime, audio data can be submitted in one of two ways:
-
Format:
data:<mediatype>;base64,<data>-
<mediatype>: MIME type- WAV:
audio/wav - MP3:
audio/mpeg - M4A:
audio/mp4
- WAV:
-
<data>: Base64-encoded string of the audioBase64 encoding increases file size; please keep the original file small so that the encoded file remains under 10 MB.
-
Example:
data:audio/wav;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjI5LjEwMAAAAAAAAAAAAAAA//PAxABQ/BXRbMPe4IQAhl9
-
-
Audio URL (it is recommended to upload the audio to OSS)
- File size must not exceed 10 MB.
- The URL must be publicly accessible and require no authentication.
Data URL encoding example
import base64, pathlib
# input.mp3 is the local audio file used for voice cloning. Replace it with your own file path and ensure the file meets the audio requirements.
file_path = pathlib.Path("input.mp3")
base64_str = base64.b64encode(file_path.read_bytes()).decode()
data_uri = f"data:audio/mpeg;base64,{base64_str}"
import java.nio.file.*;
import java.util.Base64;
public class Main {
/**
* filePath is the local audio file used for voice cloning. Replace it with your own file path and ensure the file meets the audio requirements.
*/
public static String toDataUrl(String filePath) throws Exception {
byte[] bytes = Files.readAllBytes(Paths.get(filePath));
String encoded = Base64.getEncoder().encodeToString(bytes);
return "data:audio/mpeg;base64," + encoded;
}
// Usage example
public static void main(String[] args) throws Exception {
System.out.println(toDataUrl("input.mp3"));
}
}
Qwen-LiveTranslate-Realtime: Public URL of the reference audio.
preferred_namestring— Required for creationQwen-Omni, Qwen-Omni-Realtime: Assign a recognizable name to the voice (only digits, uppercase and lowercase letters, and underscores are allowed; maximum 16 characters).
This keyword will appear in the cloned voice name; for example, if the keyword is “guanyu,” the final voice name will be “qwen-omni-vc-guanyu-voice-20250812105009984-838b.”
Qwen-LiveTranslate-Realtime: Identifier in the voice name.
textstring— Optional for creationApplies to: Qwen-Omni, Qwen-Omni-Realtime.
Text that matches the audio content in the data field of the audio object.
When this parameter is provided, the server compares the audio with the text. If the difference is too large, it returns Audio.PreprocessError.
languagestring— Optional for creationApplies to: Qwen-Omni, Qwen-Omni-Realtime.
The language corresponding to the data audio in the audio object.
Supported languages include zh (Chinese), en (English), de (German), it (Italian), pt (Portuguese), es (Spanish), ja (Japanese), ko (Korean), fr (French), ru (Russian), th (Thai), id (Indonesian), ar (Arabic), cs (Czech), da (Danish), nl (Dutch), fi (Finnish), he (Hebrew), hi (Hindi), is (Icelandic), ms (Malay), no (Norwegian), fa (Persian), pl (Polish), sv (Swedish), tl (Tagalog), tr (Turkish), ur (Urdu), vi (Vietnamese).
Chinese dialects: Dongbei (Northeastern Mandarin), Shannxi (Shaanxi dialect), Sichuan (Sichuan dialect), Henan (Henan dialect), Changsha (Changsha dialect), Tianjin (Tianjin dialect), Hangzhou (Hangzhou dialect), Liaoning (Liaoning dialect), Shenyang (Shenyang dialect), Anshan (Anshan dialect).
If this parameter is used, the specified language must match the language of the audio actually used for cloning.
page_indexinteger— Optional when listing voicesThe page index. Default: 0. Value range: [0, 1000000].
page_sizeinteger— Optional when listing voicesThe number of entries per page. Default: 10. Value range: [0, 1000000].
voicestring— Required for deletionThe voice ID to delete.
After deleting a voice via Qwen-Omni or Qwen-Omni-Realtime, the corresponding voice quota will be released.
parametersobject— Conditionally required for creationApplies to: Qwen-Omni, Qwen-Omni-Realtime.
The configuration parameters. For qwen3.8-omni series models, this object is required to supply voice_clone_mode.
Properties
voice_clone_modestring— Conditionally requiredVoice cloning mode. Required when using the qwen3.8-omni series models; if not specified, it defaults to the qwen3.5-omni talker system instruct mode (backward compatible with legacy services).
Valid values:
normal: Normal modedialect: Dialect modecrosslingual: Cross-language mode
skip_audio_processboolean— OptionalDefault value: false.
Whether to skip audio preprocessing.
Request examples
Create
qwen3.8-omni-flash-realtime
The cURL example uses an audio URL. Replace https://xxx.wav with your actual address. The Python and Java examples read a local audio file. Replace input.mp3 with your actual file path.
# If the environment variable is not configured, replace $DASHSCOPE_API_KEY below with your API Key.
# ======= Important =======
# The following URL is for China (Beijing). Replace {WorkspaceId} with your Model Studio workspace ID. URLs vary by region.
# API Keys differ between Singapore and China (Beijing). Obtain an API Key: https://help.aliyun.com/en/model-studio/get-api-key
# === Remove this comment before running ===
curl -X POST https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/services/audio/tts/customization \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen-voice-enrollment",
"input": {
"action": "create",
"target_model": "qwen3.8-omni-flash-realtime",
"preferred_name": "chinese",
"audio": {
"data": "https://xxx.wav"
}
},
"parameters": {
"skip_audio_process": false,
"voice_clone_mode": "normal"
}
}'
import os
import requests
import base64, pathlib
target_model = "qwen3.8-omni-flash-realtime"
preferred_name = "guanyu"
audio_mime_type = "audio/mpeg"
file_path = pathlib.Path("input.mp3")
base64_str = base64.b64encode(file_path.read_bytes()).decode()
data_uri = f"data:{audio_mime_type};base64,{base64_str}"
# API Keys differ between Singapore and China (Beijing). Obtain an API Key: https://help.aliyun.com/en/model-studio/get-api-key
# If the environment variable is not configured, replace the following line with your Model Studio API Key: api_key = "sk-xxx"
api_key = os.getenv("DASHSCOPE_API_KEY")
# The following URL is for China (Beijing). Replace {WorkspaceId} with your Model Studio workspace ID. URLs vary by region.
url = "https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/services/audio/tts/customization"
payload = {
"model": "qwen-voice-enrollment", # Do not change this value.
"parameters": {"voice_clone_mode": "normal"},
"input": {
"action": "create",
"target_model": target_model,
"preferred_name": preferred_name,
"audio": {
"data": data_uri
}
}
}
headers = {
"Authorization": f"Bearer {api_key}",
"Content-Type": "application/json"
}
# Send the POST request.
resp = requests.post(url, json=payload, headers=headers)
if resp.status_code == 200:
data = resp.json()
voice = data["output"]["voice"]
print(f"Generated voice parameter: {voice}")
else:
print("Request failed:", resp.status_code, resp.text)
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.file.*;
import java.util.Base64;
public class Main {
private static final String TARGET_MODEL = "qwen3.8-omni-flash-realtime";
private static final String PREFERRED_NAME = "guanyu";
private static final String AUDIO_FILE = "input.mp3";
private static final String AUDIO_MIME_TYPE = "audio/mpeg";
public static String toDataUrl(String filePath) throws Exception {
byte[] bytes = Files.readAllBytes(Paths.get(filePath));
String encoded = Base64.getEncoder().encodeToString(bytes);
return "data:" + AUDIO_MIME_TYPE + ";base64," + encoded;
}
public static void main(String[] args) {
// API Keys differ between Singapore and China (Beijing). Obtain an API Key: https://help.aliyun.com/en/model-studio/get-api-key
// If the environment variable is not configured, replace the following line with your Model Studio API Key: String apiKey = "sk-xxx";
String apiKey = System.getenv("DASHSCOPE_API_KEY");
// The following URL is for China (Beijing). Replace {WorkspaceId} with your Model Studio workspace ID. Configuration varies by region.
String apiUrl = "https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/services/audio/tts/customization";
try {
// Build the JSON request body. Escape the inner quotation marks.
String jsonPayload =
"{"
+ "\"model\": \"qwen-voice-enrollment\"," // Do not change this value.
+ "\"parameters\": {\"voice_clone_mode\": \"normal\"},"
+ "\"input\": {"
+ "\"action\": \"create\","
+ "\"target_model\": \"" + TARGET_MODEL + "\","
+ "\"preferred_name\": \"" + PREFERRED_NAME + "\","
+ "\"audio\": {"
+ "\"data\": \"" + toDataUrl(AUDIO_FILE) + "\""
+ "}"
+ "}"
+ "}";
HttpURLConnection con = (HttpURLConnection) new URL(apiUrl).openConnection();
con.setRequestMethod("POST");
con.setRequestProperty("Authorization", "Bearer " + apiKey);
con.setRequestProperty("Content-Type", "application/json");
con.setDoOutput(true);
// Send the request body.
try (OutputStream os = con.getOutputStream()) {
os.write(jsonPayload.getBytes("UTF-8"));
}
int status = con.getResponseCode();
InputStream is = (status >= 200 && status < 300)
? con.getInputStream()
: con.getErrorStream();
StringBuilder response = new StringBuilder();
try (BufferedReader br = new BufferedReader(new InputStreamReader(is, "UTF-8"))) {
String line;
while ((line = br.readLine()) != null) {
response.append(line);
}
}
System.out.println("HTTP status code: " + status);
System.out.println("Response: " + response.toString());
if (status == 200) {
// Parse JSON.
Gson gson = new Gson();
JsonObject jsonObj = gson.fromJson(response.toString(), JsonObject.class);
String voice = jsonObj.getAsJsonObject("output").get("voice").getAsString();
System.out.println("Generated voice parameter: " + voice);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
qwen3.8-livetranslate-flash-realtime
POST https://dashscope.aliyuncs.com/api/v1/services/audio/tts/customization
Authorization: Bearer <your_api_key>
Content-Type: application/json
curl -X POST 'https://dashscope.aliyuncs.com/api/v1/services/audio/tts/customization' \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "qwen-voice-enrollment",
"input": {
"action": "create",
"target_model": "qwen3.8-livetranslate-flash-realtime",
"preferred_name": "tmtest381103",
"audio": {
"data": "https://dashscope.oss-cn-beijing.aliyuncs.com/samples/audio/cosyvoice/cosyvoice-zeroshot-sample.wav"
}
}
}'
List
Qwen-Omni
# If the environment variable is not configured, replace $DASHSCOPE_API_KEY below with your API Key.
# ======= Important =======
# The following URL is for China (Beijing). Replace {WorkspaceId} with your Model Studio workspace ID. URLs vary by region.
# API Keys differ between Singapore and China (Beijing). Obtain an API Key: https://help.aliyun.com/en/model-studio/get-api-key
# === Remove this comment before running ===
curl --location --request POST 'https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/services/audio/tts/customization' \
--header "Authorization: Bearer $DASHSCOPE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"model": "qwen-voice-enrollment",
"input": {
"action": "list",
"page_size": 10,
"page_index": 0
}
}'
import os
import requests
# API Keys differ between Singapore and China (Beijing). Obtain an API Key: https://help.aliyun.com/en/model-studio/get-api-key
# If the environment variable is not configured, replace the following line with your Model Studio API Key: api_key = "sk-xxx"
api_key = os.getenv("DASHSCOPE_API_KEY")
# The following URL is for China (Beijing). Replace {WorkspaceId} with your Model Studio workspace ID. URLs vary by region.
url = "https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/services/audio/tts/customization"
payload = {
"model": "qwen-voice-enrollment", # Do not change this value.
"input": {
"action": "list",
"page_size": 10,
"page_index": 0
}
}
headers = {
"Authorization": f"Bearer {api_key}",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print("HTTP status code:", response.status_code)
if response.status_code == 200:
data = response.json()
voice_list = data["output"]["voice_list"]
print("Voice list:")
for item in voice_list:
print(f"- Voice: {item['voice']} Created at: {item['gmt_create']} Model: {item['target_model']}")
else:
print("Request failed:", response.text)
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
public class Main {
public static void main(String[] args) {
// API Keys differ between Singapore and China (Beijing). Obtain an API Key: https://help.aliyun.com/en/model-studio/get-api-key
// If the environment variable is not configured, replace the following line with your Model Studio API Key: String apiKey = "sk-xxx";
String apiKey = System.getenv("DASHSCOPE_API_KEY");
// The following URL is for China (Beijing). Replace {WorkspaceId} with your Model Studio workspace ID. Configuration varies by region.
String apiUrl = "https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/services/audio/tts/customization";
// JSON request body. Older Java versions do not support multiline """ strings.
String jsonPayload =
"{"
+ "\"model\": \"qwen-voice-enrollment\"," // Do not change this value.
+ "\"input\": {"
+ "\"action\": \"list\","
+ "\"page_size\": 10,"
+ "\"page_index\": 0"
+ "}"
+ "}";
try {
HttpURLConnection con = (HttpURLConnection) new URL(apiUrl).openConnection();
con.setRequestMethod("POST");
con.setRequestProperty("Authorization", "Bearer " + apiKey);
con.setRequestProperty("Content-Type", "application/json");
con.setDoOutput(true);
try (OutputStream os = con.getOutputStream()) {
os.write(jsonPayload.getBytes("UTF-8"));
}
int status = con.getResponseCode();
BufferedReader br = new BufferedReader(new InputStreamReader(
status >= 200 && status < 300 ? con.getInputStream() : con.getErrorStream(), "UTF-8"));
StringBuilder response = new StringBuilder();
String line;
while ((line = br.readLine()) != null) {
response.append(line);
}
br.close();
System.out.println("HTTP status code: " + status);
System.out.println("Response JSON: " + response.toString());
if (status == 200) {
Gson gson = new Gson();
JsonObject jsonObj = gson.fromJson(response.toString(), JsonObject.class);
JsonArray voiceList = jsonObj.getAsJsonObject("output").getAsJsonArray("voice_list");
System.out.println("\n Voice list:");
for (int i = 0; i < voiceList.size(); i++) {
JsonObject voiceItem = voiceList.get(i).getAsJsonObject();
String voice = voiceItem.get("voice").getAsString();
String gmtCreate = voiceItem.get("gmt_create").getAsString();
String targetModel = voiceItem.get("target_model").getAsString();
System.out.printf("- Voice: %s Created at: %s Model: %s\n",
voice, gmtCreate, targetModel);
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
Delete
Qwen-Omni
Replace yourVoice with the name of the voice to delete.
# If the environment variable is not configured, replace $DASHSCOPE_API_KEY below with your API Key.
# ======= Important =======
# The following URL is for China (Beijing). Replace {WorkspaceId} with your Model Studio workspace ID. URLs vary by region.
# API Keys differ between Singapore and China (Beijing). Obtain an API Key: https://help.aliyun.com/en/model-studio/get-api-key
# === Remove this comment before running ===
curl --location --request POST 'https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/services/audio/tts/customization' \
--header "Authorization: Bearer $DASHSCOPE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"model": "qwen-voice-enrollment",
"input": {
"action": "delete",
"voice": "yourVoice"
}
}'
import os
import requests
# API Keys differ between Singapore and China (Beijing). Obtain an API Key: https://help.aliyun.com/en/model-studio/get-api-key
# If the environment variable is not configured, replace the following line with your Model Studio API Key: api_key = "sk-xxx"
api_key = os.getenv("DASHSCOPE_API_KEY")
# The following URL is for China (Beijing). Replace {WorkspaceId} with your Model Studio workspace ID. URLs vary by region.
url = "https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/services/audio/tts/customization"
voice_to_delete = "yourVoice" # Voice to delete. Replace with an actual voice ID.
payload = {
"model": "qwen-voice-enrollment", # Do not change this value.
"input": {
"action": "delete",
"voice": voice_to_delete
}
}
headers = {
"Authorization": f"Bearer {api_key}",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print("HTTP status code:", response.status_code)
if response.status_code == 200:
data = response.json()
request_id = data["request_id"]
print(f"Deleted successfully")
print(f"Request ID: {request_id}")
else:
print("Request failed:", response.text)
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
public class Main {
public static void main(String[] args) {
// API Keys differ between Singapore and China (Beijing). Obtain an API Key: https://help.aliyun.com/en/model-studio/get-api-key
// If the environment variable is not configured, replace the following line with your Model Studio API Key: String apiKey = "sk-xxx";
String apiKey = System.getenv("DASHSCOPE_API_KEY");
// The following URL is for China (Beijing). Replace {WorkspaceId} with your Model Studio workspace ID. Configuration varies by region.
String apiUrl = "https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/services/audio/tts/customization";
String voiceToDelete = "yourVoice"; // Voice to delete. Replace with an actual voice ID.
// Build the JSON request body using string concatenation for Java 8 compatibility.
String jsonPayload =
"{"
+ "\"model\": \"qwen-voice-enrollment\"," // Do not change this value.
+ "\"input\": {"
+ "\"action\": \"delete\","
+ "\"voice\": \"" + voiceToDelete + "\""
+ "}"
+ "}";
try {
// Establish the POST connection.
HttpURLConnection con = (HttpURLConnection) new URL(apiUrl).openConnection();
con.setRequestMethod("POST");
con.setRequestProperty("Authorization", "Bearer " + apiKey);
con.setRequestProperty("Content-Type", "application/json");
con.setDoOutput(true);
// Send the request body.
try (OutputStream os = con.getOutputStream()) {
os.write(jsonPayload.getBytes("UTF-8"));
}
int status = con.getResponseCode();
BufferedReader br = new BufferedReader(new InputStreamReader(
status >= 200 && status < 300 ? con.getInputStream() : con.getErrorStream(), "UTF-8"));
StringBuilder response = new StringBuilder();
String line;
while ((line = br.readLine()) != null) {
response.append(line);
}
br.close();
System.out.println("HTTP status code: " + status);
System.out.println("Response JSON: " + response.toString());
if (status == 200) {
Gson gson = new Gson();
JsonObject jsonObj = gson.fromJson(response.toString(), JsonObject.class);
String requestId = jsonObj.get("request_id").getAsString();
System.out.println("Deleted successfully");
System.out.println("Request ID: " + requestId);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
LiveTranslate
curl -X POST 'https://dashscope.aliyuncs.com/api/v1/services/audio/tts/customization' \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "qwen-voice-enrollment",
"input": {"action": "delete", "voice": "VOICE_ID"}
}'
Response body
request_idstringThe unique identifier of this request.
outputobjectReturned for creation and listing. This field is absent for deletion.
Properties
voicestring— Returned for creation
Qwen-Omni, Qwen-Omni-Realtime: The voice name, which can be used as the voice parameter in subsequent Omni API calls.
Qwen-LiveTranslate-Realtime: The created voice ID is used in the voice parameter of subsequent translation sessions.
target_modelstring— Returned for creation
Qwen-Omni, Qwen-Omni-Realtime: The omni model that drives the voice:
-
qwen3.8-omni-flash-realtime
-
qwen3.5-omni-plus-realtime
-
qwen3.5-omni-flash-realtime
-
qwen3.5-omni-plus
-
qwen3.5-omni-flash
It must match the model used in subsequent calls to the omni API. Otherwise, synthesis will fail.
Qwen-LiveTranslate-Realtime: The target model specified during voice creation.
voice_listarray[object]— Returned when listing voices
List of voices found.
Properties
voicestringThe voice name, which can be used as the voice parameter in subsequent Omni API calls.
target_modelstringThe omni model that drives the voice:
-
qwen3.8-omni-flash-realtime
-
qwen3.5-omni-plus-realtime
-
qwen3.5-omni-flash-realtime
-
qwen3.5-omni-plus
-
qwen3.5-omni-flash
It must match the model used in subsequent calls to the omni API. Otherwise, synthesis will fail.
gmt_createstringThe time when the voice was created.
usageobjectApplies to: Qwen-Omni, Qwen-Omni-Realtime.
Usage information for this request.
Properties
countintegerThe number of "create voice" operations actually billed for this request. The cost of this request is count × 0.01CNY.
Always 1 for voice creation. Listing or deleting voices is free, so the value is always 0.
Response examples
Create
qwen3.8-omni-flash-realtime
Response structure
{
"output": {
"voice": "yourVoice",
"target_model": "qwen3.8-omni-flash-realtime"
},
"usage": {
"count": 1
},
"request_id": "yourRequestId"
}
Return example
{"output":{"target_model":"qwen3.8-omni-flash-realtime","voice":"qwen-omni-vc-chinese-voice-20260911161744020-3f9d"},"usage":{"count":1},"request_id":"7a36a3cb-be34-9be8-a127-df2449d51ab2"}
qwen3.8-livetranslate-flash-realtime
The following response examples are excerpts.
{
"output": {
"voice": "VOICE_ID",
"target_model": "qwen3.8-livetranslate-flash-realtime"
},
"request_id": "REQUEST_ID"
}
List
Qwen-Omni
{
"output": {
"voice_list": [
{
"voice": "yourVoice1",
"gmt_create": "2025-08-11 17:59:32",
"target_model": "qwen3.5-omni-plus-realtime"
},
{
"voice": "yourVoice2",
"gmt_create": "2025-08-11 17:38:10",
"target_model": "qwen3.5-omni-plus-realtime"
}
]
},
"usage": {
"count": 0
},
"request_id": "yourRequestId"
}
Delete
Qwen-Omni
{
"usage": {
"count": 0
},
"request_id": "yourRequestId"
}
Error messages
If you encounter any errors, please refer to Error Codes for troubleshooting.