Kling TTS
kwaivgi/kling-ttsKling 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.
- 基础价格
- $0.007美元 / 次运行
- 执行
- async
- 模型类型
- audio
- 输入字段
- 3
试用该模型
Playground
您的输出将显示在这里
完成输入,然后点击运行。
模型卡片
规格
定价
- 基础价格
- $0.007 / 次运行
上下文与模态
- 输入
- 由 schema 定义
- 输出
- audio
能力
- 聊天
- 不支持
- 视觉
- 不支持
- 推理
- 不支持
- 结构化输出
- 不支持
- 函数调用
- 不支持
- 音频输入
- 不支持
访问
- 提供方
- KwaiVGI
- 模型 ID
- kwaivgi/kling-tts
- 执行
- async
- 基础 URL
- https://api.sandbase.ai
- API
- Unified Run API
- 端点
- /v1/run
API README
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
| Field | Type | Default | Notes |
|---|---|---|---|
text | string, required | — | Text to speak, up to 500 characters. |
voice_id | string | genshin_vindi2 | Preset voice. See the schema for supported values. |
voice_speed | number 0.8–2 | 1 | Speaking rate. |
Billing
$0.007 per request.
| Request | Price |
|---|---|
| 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.
开始构建
发送您的第一条请求
具备统一身份验证和使用情况跟踪的 OpenAI 兼容端点。
# 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"输入 Schema
3 个参数 · 1 个必填 · 2 个可选
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
text | string | 必填 | The text to be converted to speech, up to 500 characters. · 最小长度:1 · 最大长度:500 |
voice_id | string | 可选 | Preset Kling voice used for synthesis (Chinese and English voices). · 选项: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 · 默认值:"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_speed | number | 可选 | Rate of speech, 0.8-2.0. · 最小值:0.8 · 最大值:2 · 默认值:1 |
输出 Schema
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 生成任务的唯一标识符 |
status | string | 任务状态:pending、running、completed、failed、timeout |
model | string | 用于生成的模型 |
outputs | array | 输出项数组 |
outputs[].url | string | 生成产物的 URL |
outputs[].content_type | string | MIME 类型(例如 image/png、video/mp4) |
error | object | null | 失败时的错误详情,成功时为 null |
error.type | string | 机器可读的错误类型代码 |
error.message | string | 人类可读的错误描述 |
异步工作流
此模型异步运行。先提交请求,再轮询结果。
- 提交:向 /v1/run 发送 POST 请求,并读取返回的
id。 - 轮询:GET /v1/run/{id},直到状态为
completed、failed或timeout。 - 获取:从已完成的响应中读取
outputs。
选择您的模型
比较模型
| 模型 | 类型 | 默认价格 | 发布于 |
|---|---|---|---|
Kling TTS此模型 KwaiVGI | 音频 | $0.01 / 次运行 | 2025年9月13日 |
KwaiVGI | 音频 | $0.04 / 次运行 | 2025年12月16日 |
KwaiVGI | 音频 | $0.04 / 次运行 | 2025年10月9日 |
问题
常见问题
如何通过 SandBase 调用 KwaiVGI Kling TTS?
先创建一个 SandBase API key,然后向 https://api.sandbase.ai 的 Unified Run API (/v1/run) 发送请求,模型 ID 使用“kwaivgi/kling-tts”。本页的请求示例展示了准确的请求负载。
我需要单独的 KwaiVGI 账户吗?
不需要。一个 SandBase API key 和余额即可让您使用 KwaiVGI Kling TTS 以及目录中的其他模型;您无需单独注册 KwaiVGI。
