HeyGen Voice Turbo
heygen/heygen-voice/turboHeyGen Voice Turbo is the faster, lower-cost HeyGen text-to-speech model, with the same voices, languages and voice cloning.
- Giá cơ bản
- $0.004USD / lần chạy
- Thực thi
- async
- Loại model
- audio
- Các trường đầu vào
- 4
Thử model
Phòng thử nghiệm
Bạn muốn làm gì tiếp theo?
Ví dụ
Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
- Mở kết quả ↗
Đầu vào
{ "text": "Welcome to SandBase. One API key gives you thousands of AI models for images, video, audio and text.", "voice": "Jonah" } - Mở kết quả ↗
Đầu vào
{ "text": "Thanks for calling. Your order has shipped and should arrive on Thursday.", "voice": "Felicity" }
Thẻ model
Thông số kỹ thuật
Giá
- Giá cơ bản
- $0.004 / lần chạy
Ngữ cảnh & phương thức
- Đầu vào
- Định nghĩa theo schema
- Đầu ra
- audio
Tính năng
- Chat
- Không được hỗ trợ
- Thị giác
- Không được hỗ trợ
- Suy luận
- Không được hỗ trợ
- Đầu ra có cấu trúc
- Không được hỗ trợ
- Gọi hàm
- Không được hỗ trợ
- Đầu vào âm thanh
- Không được hỗ trợ
Truy cập
- Nhà cung cấp
- HeyGen
- ID mô hình
- heygen/heygen-voice/turbo
- Thực thi
- async
- URL cơ sở
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README API
HeyGen Voice Turbo
HeyGen Voice Turbo is the faster, lower-cost HeyGen text-to-speech model, with the same voices, languages and voice cloning as HeyGen Voice.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
text | string, required | — | Up to 5,000 characters. |
voice | 24 public voices | Jonah | Ignored when reference_audio is set. |
language | ISO 639-1 code (39 languages) | auto | Language of the text. |
reference_audio | audio URL | — | Single-speaker recording to clone; the first 3 minutes are used. |
Billing
$0.004 per started 1,000 characters of input text.
| Text | Price |
|---|---|
| Up to 1,000 characters | $0.004 |
| 2,500 characters | $0.012 |
| 5,000 characters | $0.02 |
| Failed runs are not charged. |
Limits
- Up to 5,000 characters per request.
Also on SandBase
Higher-quality tier: heygen/heygen-voice.
Bắt đầu xây dựng
Gửi request đầu tiên của bạn
Endpoint tương thích OpenAI với xác thực và theo dõi mức sử dụng thống nhất.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "heygen/heygen-voice/turbo",
"text": "Hello! This is HeyGen Voice, speaking on fal.",
"voice": "Jonah"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Schema đầu vào
4 tham số · 1 bắt buộc · 3 tùy chọn
| Tham số | Kiểu | Bắt buộc | Mô tả |
|---|---|---|---|
text | string | Bắt buộc | Text to speak, up to 5,000 characters. · Độ dài tối thiểu: 1 · Độ dài tối đa: 5000 |
voice | string | Tùy chọn | HeyGen public voice. Ignored when reference_audio is set. · Tùy chọn: Jonah, Nadine, Tabitha, Soren, Elowen, Vincent, Jocelyn, Marielle, Corinne, Lucian, Kieran, Hugh, Noelle, Bram, Ewan, Iona, Cecily, Simon, Weston, Felicity, Gareth, Rory, Meredith, Sabrina · Mặc định: "Jonah" JonahNadineTabithaSorenElowenVincentJocelynMarielleCorinneLucianKieranHughNoelleBramEwanIonaCecilySimonWestonFelicityGarethRoryMeredithSabrina |
language | string | Tùy chọn | Language of the text. Detected automatically when omitted. · Tùy chọn: ar, be, bg, ca, cs, da, de, el, en, es, fa, fi, fr, he, hi, hr, hu, id, it, ja, ko, mk, ms, nl, pl, pt, ro, ru, sk, sl, sr, sv, ta, th, tl, tr, uk, vi, zh arbebgcacsdadeelenesfafifrhehihrhuiditjakomkmsnlplptroruskslsrsvtathtltrukvizh |
reference_audio | string | Tùy chọn | Optional single-speaker recording to clone instead of a public voice. Only the first 3 minutes are used. |
Schema đầu ra
| Trường | Kiểu | Mô tả |
|---|---|---|
id | string | Mã định danh duy nhất cho tác vụ tạo |
status | string | Trạng thái tác vụ: pending, running, completed, failed, timeout |
model | string | Model được dùng cho quá trình tạo |
outputs | array | Mảng các mục đầu ra |
outputs[].url | string | URL của artifact đã tạo |
outputs[].content_type | string | Kiểu MIME (ví dụ image/png, video/mp4) |
error | object | null | Chi tiết lỗi nếu thất bại, null nếu thành công |
error.type | string | Mã loại lỗi có thể đọc bằng máy |
error.message | string | Mô tả lỗi dễ đọc cho người dùng |
Quy trình không đồng bộ
Model này chạy bất đồng bộ. Gửi yêu cầu, rồi thăm dò để lấy kết quả.
- Gửi: POST tới /v1/run và đọc
idđược trả về. - Thăm dò: GET /v1/run/{id} cho đến khi trạng thái là
completed,failedhoặctimeout. - Truy xuất: đọc
outputstừ phản hồi hoàn tất.
Chọn model của bạn
So sánh model
| Mô hình | Loại | Giá mặc định | Phát hành |
|---|---|---|---|
HeyGen Voice TurboMô hình này HeyGen | Âm thanh | $0.00 / lượt chạy | 21 thg 10, 2026 |
HeyGen | Âm thanh | $0.03 / lượt chạy | 21 thg 10, 2026 |
HeyGen | Âm thanh | $0.04 / lượt chạy | 21 thg 10, 2026 |
HeyGen | Âm thanh | $0.01 / lượt chạy | 21 thg 10, 2026 |
Câu hỏi
FAQ
Làm thế nào để gọi HeyGen Voice Turbo qua SandBase?
Tạo một API key SandBase, sau đó gửi yêu cầu với model ID "heygen/heygen-voice/turbo" tới Unified Run API (/v1/run) tại https://api.sandbase.ai. Các ví dụ yêu cầu trên trang này cho thấy chính xác payload.
Tôi có cần tài khoản HeyGen riêng không?
Không. Chỉ cần một API key và số dư SandBase là bạn có thể truy cập HeyGen Voice Turbo và các model khác trong danh mục; bạn không cần đăng ký riêng với HeyGen.
