SparkVoice API
SparkVoice 1.0 text-to-speech, model name sparkvoice-1.0. 232 built-in voices, voice cloning in seven languages, seven emotions, Cantonese and Sichuanese, voice design from a description, and two-to-four-speaker podcast dialogue. $0.05 per 1,000 characters, free to try until December 31, 2026.
Model name
There is one model: sparkvoice-1.0. The earlier names sparkvoice-1 and sparkvoice-1-pro still work; both run sparkvoice-1.0 and are billed at its price. In our test 1,000 Chinese characters returned 211 seconds of audio in 61 seconds.
Preços
$0.05 per 1,000 characters. Free trial until December 31, 2026 (UTC): every call is billed at $0 and needs no balance; from then on the price applies automatically. Failed requests are never charged.
Code examples
# ─── Built-in voice ─────────────────────────────────────
curl -X POST https://api.apimodels.app/v1/audio/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "sparkvoice-1.0", "text": "欢迎使用我们的语音合成服务。", "voice": "灵小雅" }'
# { "code": 200, "data": { "taskId": "..." } }
# ─── Get the result ─────────────────────────────────────
curl "https://api.apimodels.app/v1/audio/generations?task_id=TASK_ID" \
-H "Authorization: Bearer YOUR_API_KEY"
# { "code": 200, "data": { "state": "completed", "resultUrls": ["https://r2.apimodels.app/...mp3"] } }import requests, time
ENDPOINT = "https://api.apimodels.app/v1/audio/generations"
HEADERS = {"Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json"}
create = requests.post(ENDPOINT, headers=HEADERS, json={
"model": "sparkvoice-1.0",
"text": "The last train leaves at midnight, so we should hurry.",
"voice": "US_Emma",
# clone instead of a built-in voice:
# "reference_audio_url": "https://r2.apimodels.app/assets/wan3-cases/wan3-case-15-audio-1.mp3",
# "reference_text": "晚上好宝子们,欢迎来到我们的专属直播间,今天福利满满,惊喜不断。",
})
task_id = create.json()["data"]["taskId"]
while True:
data = requests.get(ENDPOINT, headers=HEADERS, params={"task_id": task_id}).json()["data"]
if data["state"] == "completed":
print(data["resultUrls"]); break
if data["state"] == "failed":
raise RuntimeError(data.get("failMsg") or "failed")
time.sleep(3)const ENDPOINT = "https://api.apimodels.app/v1/audio/generations";
const HEADERS = { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" };
const create = await fetch(ENDPOINT, {
method: "POST",
headers: HEADERS,
body: JSON.stringify({
model: "sparkvoice-1.0",
text: "我刚刚收到通知,明天放假一天,大家可以好好休息啦!",
reference_audio_url: "https://r2.apimodels.app/assets/wan3-cases/wan3-case-15-audio-1.mp3",
emotion: "happy",
}),
});
const taskId = (await create.json()).data.taskId;
while (true) {
const res = await fetch(ENDPOINT + "?task_id=" + taskId, { headers: HEADERS });
const { data } = await res.json();
if (data.state === "completed") { console.log(data.resultUrls); break; }
if (data.state === "failed") throw new Error(data.failMsg || "failed");
await new Promise(r => setTimeout(r, 3000));
}Parâmetros da requisição
Pick one voice source: voice, reference_audio_url, voice_description, or speakers. With none of them, a default voice is used for the text language (灵小雅 for Chinese, US_Emma for English).
| Field | Required | Type | Description |
|---|---|---|---|
| model | Yes | string | sparkvoice-1.0 (the earlier sparkvoice-1 / sparkvoice-1-pro also work) |
| text | Yes | string | The text to speak, up to 3,000 characters. input is accepted as an alias. |
| voice | No | string | Built-in voice id from the table below (232 in total) |
| reference_audio_url | No | string | Reference clip to clone (http/https), up to 20 MB; the first 30 seconds are used. 5-15 seconds of clean speech works best. |
| reference_text | No | string | The words spoken in the reference clip. Required for plain cloning; not needed with emotion, dialect or speed controls. |
| emotion | No | string | happy / sad / angry / fearful / disgusted / surprised / neutral (needs reference_audio_url) |
| dialect | No | string | cantonese / sichuanese (needs reference_audio_url) |
| speed / pitch / volume | No | string | slow|normal|fast, low|normal|high (needs reference_audio_url) |
| voice_description | No | string | A written description of the voice, e.g. "a calm male documentary narrator" |
| speakers | No | array | 2-4 items of { reference_audio_url, reference_text }; start each line of text with speaker_1:, speaker_2: |
| language | No | string | Language to speak: one of Chinese, English, Japanese, Korean, German, French, Spanish, or the codes zh / en / ja / ko / de / fr / es. Defaults to Chinese or English from the text. The last five work only with reference_audio_url + reference_text (the clip can be in any of the seven), not with voice, voice_description, emotion, dialect, pace controls or speakers. Other languages return 400; for Cantonese or Sichuanese use dialect. |
| output_format | No | string | mp3 (default) / wav |
| callback_url | No | string | Webhook URL called when the task completes |
Request bodies for each feature
Built-in voice
{ "model": "sparkvoice-1.0", "text": "夜深了,城市渐渐安静下来。", "voice": "灵楷" }Built-in voice with emotion
{ "model": "sparkvoice-1.0", "text": "太好了,我们赢了!", "voice": "灵晓声_高兴" }Voice cloning
{ "model": "sparkvoice-1.0", "text": "傍晚的风从山口吹过来。",
"reference_audio_url": "https://r2.apimodels.app/assets/wan3-cases/wan3-case-15-audio-1.mp3", "reference_text": "晚上好宝子们,欢迎来到我们的专属直播间,今天福利满满,惊喜不断。" }Clone + paralinguistic tags
{ "model": "sparkvoice-1.0", "text": "[Sigh]雨还是没有停,[Laughter]算了,改到室内吧。",
"reference_audio_url": "https://r2.apimodels.app/assets/wan3-cases/wan3-case-15-audio-1.mp3", "reference_text": "晚上好宝子们,欢迎来到我们的专属直播间,今天福利满满,惊喜不断。" }Clone + emotion
{ "model": "sparkvoice-1.0", "text": "明天放假一天!",
"reference_audio_url": "https://r2.apimodels.app/assets/wan3-cases/wan3-case-15-audio-1.mp3", "emotion": "happy" }Clone + dialect
{ "model": "sparkvoice-1.0", "text": "今日天气几好,我哋一齐去海边行下啦。",
"reference_audio_url": "https://r2.apimodels.app/assets/wan3-cases/wan3-case-15-audio-1.mp3", "dialect": "cantonese" }Clone + pace / pitch / volume
{ "model": "sparkvoice-1.0", "text": "请耐心等待下一次通知。",
"reference_audio_url": "https://r2.apimodels.app/assets/wan3-cases/wan3-case-15-audio-1.mp3", "speed": "slow", "pitch": "normal", "volume": "normal" }Multilingual cloning
{ "model": "sparkvoice-1.0", "language": "German", "text": "Am Wochenende fahren wir mit dem Fahrrad an den See.",
"reference_audio_url": "https://r2.apimodels.app/assets/wan3-cases/wan3-case-15-audio-1.mp3", "reference_text": "晚上好宝子们,欢迎来到我们的专属直播间,今天福利满满,惊喜不断。" }Voice design
{ "model": "sparkvoice-1.0", "text": "冰川在漫长岁月中缓缓移动。",
"voice_description": "成熟沉稳的男性纪录片旁白,吐字清晰,节奏舒缓" }Podcast dialogue
{ "model": "sparkvoice-1.0",
"text": "speaker_1: 你最近是不是又去那家面馆了?\nspeaker_2: 对啊,他们家的牛肉面还是那个味道。",
"speakers": [
{ "reference_audio_url": "https://r2.apimodels.app/assets/wan3-cases/wan3-case-15-audio-1.mp3", "reference_text": "晚上好宝子们,欢迎来到我们的专属直播间,今天福利满满,惊喜不断。" },
{ "reference_audio_url": "https://r2.apimodels.app/assets/wan3-cases/wan3-case-15-audio-2.mp3", "reference_text": "家人们准备好开启今晚的购物狂欢了吗?我们为大家精选了每一款都值得入手的好物。" }
] }Built-in voices (232)
For voices with emotional variants, pass "name_emotion" as voice, e.g. 灵晓声_高兴.
Limits and notes
- Up to 3,000 characters per request, about three and a half minutes of synthesis; split longer scripts into several requests, sent one after another or together.
- Long text is synthesized sentence by sentence in parallel: about a minute for 1,000 Chinese characters, roughly 7-25 seconds end to end for a short sentence.
- No streaming: the result is a complete mp3 or wav file.
- Cloning has no per-voice fee: a cloned voice is billed per character like a built-in one. Nothing is stored and there is no voice id; send the reference clip and its transcript with each request.
- Only clone your own voice or one you have permission to use.
- Result files are deleted after 7 days; download or copy them in time.
- Seven languages: Chinese and English, plus Japanese, Korean, German, French and Spanish through cloning only; when we transcribed the five foreign-language outputs back to text, all matched the script.
- If you need 80+ languages, Fish Audio S2.1 Pro covers 83 languages from one model and is the better fit.
Perguntas frequentes
How much does the SparkVoice 1.0 API cost?
sparkvoice-1.0 is $0.05 per 1,000 characters. It is a free trial until December 31, 2026 (UTC): every call is billed at $0 and needs no balance, and the price applies automatically from then on. Failed requests are never charged.
How do I clone a voice with SparkVoice?
Send reference_audio_url (a clip of up to 20 MB; the first 30 seconds are used, and 5 to 15 seconds of clean speech works best) together with reference_text, the exact words spoken in that clip. The text you send is then read in that voice. You can add emotion, dialect, or speed, pitch and volume instead of reference_text. Only clone your own voice or one you have permission to use.
What languages does the SparkVoice API speak?
Seven. Built-in voices, voice design and the emotion, dialect and pace controls read Chinese and English. A cloned voice also speaks Japanese, Korean, German, French and Spanish: send reference_audio_url and reference_text with language set to one of them (or ja, ko, de, fr, es); the clip can be in any of the seven. Cantonese and Sichuanese are dialects, set with dialect, and other languages return a 400 error. When we transcribed the output back, all five foreign languages matched the script.
How do I make a podcast dialogue with the SparkVoice API?
Pass speakers as an array of two to four objects, each with reference_audio_url and reference_text, and start every line of the script with speaker_1:, speaker_2: and so on, matching the array order. One request returns the whole conversation as a single audio file.