Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

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.

基础价格
$0.007美元 / 次运行
执行
async
模型类型
audio
输入字段
3
生产路由

试用该模型

Playground

打开 playground
输入
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. 范围:0.8 到 2。
输出就绪

您的输出将显示在这里

完成输入,然后点击运行。

模型卡片

规格

定价

基础价格
$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

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.

开始构建

发送您的第一条请求

具备统一身份验证和使用情况跟踪的 OpenAI 兼容端点。

生产版 API
Unified Run API 端点
https://api.sandbase.ai/v1/run
模型 ID
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

3 个参数 · 1 个必填 · 2 个可选

参数类型必填说明
textstring必填The text to be converted to speech, up to 500 characters. · 最小长度:1 · 最大长度:500
voice_idstring可选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_speednumber可选Rate of speech, 0.8-2.0. · 最小值:0.8 · 最大值:2 · 默认值:1
02

输出 Schema

字段类型说明
idstring生成任务的唯一标识符
statusstring任务状态:pending、running、completed、failed、timeout
modelstring用于生成的模型
outputsarray输出项数组
outputs[].urlstring生成产物的 URL
outputs[].content_typestringMIME 类型(例如 image/png、video/mp4)
errorobject | null失败时的错误详情,成功时为 null
error.typestring机器可读的错误类型代码
error.messagestring人类可读的错误描述

异步工作流

此模型异步运行。先提交请求,再轮询结果。

  1. 提交:向 /v1/run 发送 POST 请求,并读取返回的 id。
  2. 轮询:GET /v1/run/{id},直到状态为 completed、failed 或 timeout。
  3. 获取:从已完成的响应中读取 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。