PromptFlow AI
API docs

tts

Multilingual CapCut Voices — Convert text into expressive AI voiceovers with studio-grade natural pauses using CapCut Multilingual Voice.

SV3 (sv3) · healthyid: ttstype: giong-noi-aioutput: audio100đ / 1,000 chars

Server SV3 hiện có nhiều gói sản phẩm khác nhau thuộc cùng dòng tts. Để chạy chính xác 100% đúng gói này, hãy truyền thẳng mã gói "model": "tts" kèm "server": "sv3".

Các gói & Server (SV) hiện có của model ttsGET /api/v1/models/tts/servers

Bảng giá API chi tiết theo từng cấu hình tham số

Đơn giá thực tế (VNĐ) trừ vào ví khi gọi POST /v1/generations (hoặc kiểm tra trước qua POST /v1/generations/estimate).

100đ / 1,000 chars
All voices:100đ / 1,000 chars

Input — request parameters

POST/v1/generations

Gửi JSON theo cấu trúc chuẩn "model": "tts", "server": "sv3" and the parameters below at the same level. Parameters not listed in the table are rejected (400).

ParameterTypeSupported valuesDescription
modelrequiredstringttsMã gói sản phẩm duy nhất (khuyến nghị truyền đúng mã này để chốt chính xác gói trên SV).
serverstringsv3autoChốt máy chủ SV chạy đơn (cũng nhận alias server_id) hoặc auto để tự chọn SV healthy giá tốt nhất. Kiểm tra SV sống qua GET /v1/models/tts/servers.
voicerequiredenum
BV421_vivn_streamingvi_female_huongvi-VN-HoaiMyNeuralvi-VN-NamMinhNeuralBV562_streamingBV560_streamingBV074_streamingBV075_streamingBV074_streaming_dspBV075_streaming_vibrato_dspBV075_streaming_demon_dspBV075_streaming_robot_dspICL_en_male_henry1ICL_en_female_ericaICL_en_male_attenboroughICL_en_male_cumberbatch2ICL_en_male_terrellICL_en_male_cc_rafaelICL_en_male_alastorICL_en_male_severusICL_en_female_cmICL_en_male_grinch2ICL_en_male_kevin2ICL_en_male_conductor1ICL_en_male_oogie2ICL_en_male_frosty1ICL_en_male_zayneICL_en_male_xavier1ICL_en_male_sylusICL_en_female_chamberlainICL_en_male_cumberbatch1ICL_en_female_blanchettICL_en_male_henry2ICL_en_male_benjamin1ICL_en_male_benjamin2ICL_en_male_cc_lichICL_en_male_cc_draculaICL_en_female_cc_bluetoothICL_en_male_cc_pennyICL_en_female_cc_meganICL_en_male_cc_jigsawICL_en_male_cc_chuckyICL_en_male_cc_ghostface4ICL_en_male_aussieICL_en_male_poetryICL_2206985c8bf6ICL_en_female_guanggaoICL_en_female_jiaoaoICL_en_male_matthewBV516_streamingBV504_streamingBV503_streamingBV502_streamingBV027_streamingBV510_streamingBV138_streamingBV127_streamingBV505_streamingBV031_streamingICL_en_male_callumICL_en_male_drywICL_en_male_georgeBV506_streamingBV507_streamingBV072_streamingBV192_streamingBV191_streamingBV540_streamingBV190_streamingBV164_streamingBV162_streamingBV161_streamingBV160_streamingICL_id_male_uncle_hendraICL_id_female_grandma_sitiICL_id_female_hantuperempuanBV541_streamingICL_id_female_jannah_happyICL_id_male_sadICL_id_male_scaredICL_id_male_grandpa_sumarnoICL_id_male_boy_budiICL_id_female_girl_dewiICL_id_female_sickweakICL_id_female_icecold_kartikaICL_es_male_barneyICL_es_male_elmoICL_es_female_dianpoICL_es_male_doradoICL_es_female_tt_MarianaFICL_es_male_tt_GerardoQICL_es_male_tt_JuanZICL_es_male_tt_JuanJICL_es_male_tt_JonnieVvICL_es_male_tt_EmanuelAICL_mx_female_tt_carolaICL_es_female_dianyingpeiyinICL_es_male_cixingICL_es_male_taiciBV062_streamingICL_es_female_tt_AzulBICL_es_male_tt_GerardoFCPICL_es_female_tt_RosaWICL_es_female_tt_ViviICL_br_male_208M_VitorC2ICL_br_female_217V_MichelleMICL_br_male_207M_RodrigoA2ICL_br_female_218F_GracianaCICL_br_male_201M_CaioSICL_br_male_206M_VitorC1ICL_br_male_210M_AlexNICL_br_male_204M_RodrigoA1BV531_streamingBV530_streamingICL_br_male_202M_EduardoSICL_ja_female_laopopoICL_jp_male_kenanICL_jp_female_tt_youICL_jp_female_jidongshaonvICL_ja_female_kuaizui02ICL_ja_female_shuanglangICL_ja_male_gaoxiaoICL_ja_male_gaoxiao02BV428_streamingBV701_streamingBV411_streamingBV007_streamingBV405_streamingBV408_streamingBV425_streamingBV145_streamingBV430_streamingBV021_streamingBV213_streamingBV144_streamingBV433_streamingBV409_streamingBV063_streamingBV050_streamingBV064_streamingBV567_streamingBV568_streamingBV078_streamingBV068_streamingBV570_streaming

Default: BV421_vivn_streaming

CapCut Voice
textrequiredstring

Up to 5.000 characters

Text
voice_2string

Up to 80 characters

Mã giọng khác (không bắt buộc) — Bỏ trống để dùng giọng đã chọn ở trên
speednumber

0.7 – 1.5

Default: 1

Tốc độ — 0.7 = chậm, 1 = tự nhiên, 1.5 = nhanh
  • File parameters (string URL) accept a public http(s) link — the server downloads it — or a URL returned by the file upload API POST /account/ai/uploads.
  • Bỏ trống tham số không bắt buộc thì dùng giá trị mặc định. Có thể gửi thêm header Idempotency-Key để thử lại an toàn không trừ tiền 2 lần.

Sample request (cURL)

curl -X POST https://promptflow.web.id/api/v1/generations \
  -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{
  "model": "tts",
  "server": "sv3",
  "voice": "BV421_vivn_streaming",
  "text": "An astronaut cat",
  "speed": 1
}'

Complete integration code sample (Upload file → Create job → Poll result)

Python 3

import os, time, requests

BASE = "https://promptflow.web.id/api"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}

r = requests.post(f"{BASE}/v1/generations", headers=HEADERS, json={
    "model": "tts",
    "server": "sv3",
    "voice": "BV421_vivn_streaming",
    "text": "An astronaut cat",
    "speed": 1
}, timeout=60)
gen = r.json()
if not r.ok:
    raise RuntimeError(gen.get("message") or r.text)

while gen.get("status") in ("queued", "processing"):
    time.sleep(5)
    gen = requests.get(f"{BASE}/v1/generations/{gen['id']}", headers=HEADERS, timeout=60).json()

if gen.get("status") != "succeeded":
    raise RuntimeError(gen.get("error") or gen.get("status"))
print("Kết quả:", gen["output"])

Node.js (18+)

const BASE = "https://promptflow.web.id/api";
const headers = { "X-API-Key": process.env.API_KEY, "Content-Type": "application/json" };

const createRes = await fetch(`${BASE}/v1/generations`, {
  method: "POST",
  headers,
  body: JSON.stringify({
  "model": "tts",
  "server": "sv3",
  "voice": "BV421_vivn_streaming",
  "text": "An astronaut cat",
  "speed": 1
}),
});
let gen = await createRes.json();
if (!createRes.ok) throw new Error(gen.message || createRes.statusText);

while (["queued", "processing"].includes(gen.status)) {
  await new Promise((r) => setTimeout(r, 5000));
  gen = await fetch(`${BASE}/v1/generations/${gen.id}`, { headers }).then((r) => r.json());
}
if (gen.status !== "succeeded") throw new Error(gen.error ?? gen.status);
console.log("Kết quả:", gen.output);

Output — response

Jobs run asynchronously. POST /v1/generations immediately returns a generation object with status queued or processing; poll GET /v1/generations/{id} every 5–10 seconds until status is succeeded, failed or cancelled.

GET/v1/generations/{id}
{
  "id": "3f1c...-uuid",
  "object": "generation",
  "code": "T8KQ2M4X",
  "model": "tts",
  "canonical_model": "tts",
  "server_id": "sv3",
  "server_name": "SV3",
  "status": "succeeded",       // queued | processing | succeeded | failed | cancelled
  "progress": 100,
  "cost": 2400,                // amount charged
  "currency": "VND",
  "refunded": false,
  "output": {
    "type": "audio",
    "files": [{ "url": "https://promptflow.web.id/uploads/ai/outputs/....mp3", "type": "audio", "name": "audio.mp3" }],
    "text": null
  },
  "error": null,
  "created_at": "2026-10-30T08:00:00.000Z",
  "completed_at": "2026-10-30T08:01:12.000Z"
}
FieldMeaning
model / server_idĐúng mã gói sản phẩm và máy chủ SV đã thực thi tác vụ.
output.files[].urlResult file links — download them to your own system; files on our server may be cleaned up after some time.
output.textText content (only for models that return text).
costAmount in VND charged to your balance; refunded automatically on failure or cancellation (refunded = true).
errorError reason when status = failed.

Get a quote before running

POST/v1/generations/estimate

Cùng body với POST /v1/generations, không chạy và không trừ tiền (tự áp % chiết khấu riêng nếu tài khoản có).

# => {
#   "object": "estimate",
#   "model": "tts",
#   "canonical_model": "tts",
#   "server_id": "sv3",
#   "server_name": "SV3",
#   "cost": 2400,
#   "currency": "VND"
# }
Get an API key
tts · API docs | PromptFlow AI