Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Kling TTS

kwaivgi/kling-tts

Kling TTS by Kuaishou converts up to 500 characters of text into speech with 46 preset Chinese and English voices and adjustable speaking speed; the same voice IDs are used by Kling lip-sync.

Giá cơ bản
$0.007USD / lần chạy
Thực thi
async
Loại model
audio
Các trường đầu vào
3
Đường dẫn production

Thử model

Phòng thử nghiệm

Mở playground
Đầu vào
The text to be converted to speech, up to 500 characters.
Preset Kling voice used for synthesis (Chinese and English voices).
0.82
Rate of speech, 0.8-2.0. Phạm vi: 0.8 đến 2.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

Thẻ model

Thông số kỹ thuật

Giá

Giá cơ bản
$0.007 / 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
KwaiVGI
ID mô hình
kwaivgi/kling-tts
Thực thi
async
URL cơ sở
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

README API

Kling TTS

Kling TTS reads up to 500 characters of text with one of 46 preset Chinese and English voices, at 0.8–2× speed. The voice IDs match the ones used by Kling lip-sync.

Fields

FieldTypeDefaultNotes
textstring, required—Text to speak, up to 500 characters.
voice_idstringgenshin_vindi2Preset voice. See the schema for supported values.
voice_speednumber 0.8–21Speaking rate.

Billing

$0.007 per request.

RequestPrice
One clip (up to 500 characters)$0.007
10 clips$0.07

Failed runs are not charged.

Also on SandBase

Related: kwaivgi/kling-video/create-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.

API Production
endpoint Unified Run API
https://api.sandbase.ai/v1/run
ID mô hình
kwaivgi/kling-tts
# 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": "kwaivgi/kling-tts",
  "text": "Hello world! Kling TTS is available on SandBase!",
  "voice_id": "genshin_vindi2",
  "voice_speed": 1
}
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"
01

Schema đầu vào

3 tham số · 1 bắt buộc · 2 tùy chọn

Tham sốKiểuBắt buộcMô tả
textstringBắt buộcThe text to be converted to speech, up to 500 characters. · Độ dài tối thiểu: 1 · Độ dài tối đa: 500
voice_idstringTùy chọnPreset Kling voice used for synthesis (Chinese and English voices). · Tùy chọn: genshin_vindi2, zhinen_xuesheng, AOT, ai_shatang, genshin_klee2, genshin_kirara, ai_kaiya, oversea_male1, ai_chenjiahao_712, girlfriend_4_speech02, chat1_female_new-3, chat_0407_5-1, cartoon-boy-07, uk_boy1, cartoon-girl-01, PeppaPig_platform, ai_huangzhong_712, ai_huangyaoshi_712, ai_laoguowang_712, chengshu_jiejie, you_pingjing, calm_story1, uk_man2, laopopo_speech02, heainainai_speech02, reader_en_m-v1, commercial_lady_en_f-v1, tiyuxi_xuedi, tiexin_nanyou, girlfriend_1_speech02, girlfriend_2_speech02, zhuxi_speech02, uk_oldman3, dongbeilaotie_speech02, chongqingxiaohuo_speech02, chuanmeizi_speech02, chaoshandashu_speech02, ai_taiwan_man2_speech02, xianzhanggui_speech02, tianjinjiejie_speech02, diyinnansang_DB_CN_M_04-v2, yizhipiannan-v1, guanxiaofang-v2, tianmeixuemei-v1, daopianyansang-v1, mengwa-v1 · Mặc định: "genshin_vindi2"
genshin_vindi2zhinen_xueshengAOTai_shatanggenshin_klee2genshin_kiraraai_kaiyaoversea_male1ai_chenjiahao_712girlfriend_4_speech02chat1_female_new-3chat_0407_5-1cartoon-boy-07uk_boy1cartoon-girl-01PeppaPig_platformai_huangzhong_712ai_huangyaoshi_712ai_laoguowang_712chengshu_jiejieyou_pingjingcalm_story1uk_man2laopopo_speech02heainainai_speech02reader_en_m-v1commercial_lady_en_f-v1tiyuxi_xueditiexin_nanyougirlfriend_1_speech02girlfriend_2_speech02zhuxi_speech02uk_oldman3dongbeilaotie_speech02chongqingxiaohuo_speech02chuanmeizi_speech02chaoshandashu_speech02ai_taiwan_man2_speech02xianzhanggui_speech02tianjinjiejie_speech02diyinnansang_DB_CN_M_04-v2yizhipiannan-v1guanxiaofang-v2tianmeixuemei-v1daopianyansang-v1mengwa-v1
voice_speednumberTùy chọnRate of speech, 0.8-2.0. · Tối thiểu: 0.8 · Tối đa: 2 · Mặc định: 1
02

Schema đầu ra

TrườngKiểuMô tả
idstringMã định danh duy nhất cho tác vụ tạo
statusstringTrạng thái tác vụ: pending, running, completed, failed, timeout
modelstringModel được dùng cho quá trình tạo
outputsarrayMảng các mục đầu ra
outputs[].urlstringURL của artifact đã tạo
outputs[].content_typestringKiểu MIME (ví dụ image/png, video/mp4)
errorobject | nullChi tiết lỗi nếu thất bại, null nếu thành công
error.typestringMã loại lỗi có thể đọc bằng máy
error.messagestringMô 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ả.

  1. Gửi: POST tới /v1/run và đọc id được trả về.
  2. Thăm dò: GET /v1/run/{id} cho đến khi trạng thái là completed, failed hoặc timeout.
  3. Truy xuất: đọc outputs từ phản hồi hoàn tất.

Chọn model của bạn

So sánh model

Tất cả model hình ảnh và video
Mô hìnhLoạiGiá mặc địnhPhát hành
Kling TTSMô hình này
KwaiVGI
Âm thanh$0.01 / lượt chạy13 thg 9, 2025
KwaiVGIÂm thanh$0.04 / lượt chạy16 thg 12, 2025
KwaiVGIÂm thanh$0.04 / lượt chạy9 thg 10, 2025

Câu hỏi

FAQ

Làm thế nào để gọi KwaiVGI Kling TTS qua SandBase?

Tạo một API key SandBase, sau đó gửi yêu cầu với model ID "kwaivgi/kling-tts" 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 KwaiVGI 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 KwaiVGI Kling TTS và các model khác trong danh mục; bạn không cần đăng ký riêng với KwaiVGI.