还没有音频。提交表单以生成音频。
探索不同用例和参数配置
透明定价,无隐藏费用。按需支付。
| 规则与模式 | 渠道 | 积分 | 价格(美元) | 官方/参考价格 | 每日节省 |
|---|---|---|---|---|---|
text-to-speech otherElevenlabs | Starter | 1per prompt/1000 | $0.005 | Fal$0.100per prompt/1000 | 按每日 10,000 次请求估算用 Fal 原价每天多花 $954.550ApiPass 低 95.46% |
ElevenLabs V3 TTS 使用完整指南
在 ApiPass 上使用 ElevenLabs V3 TTS 构建富有表现力的文本转语音工作流。根据脚本生成自然的 AI 语音音频,使用 [excited]、[whispers] 和 [laughs] 等音频标签引导演绎效果,并通过一个异步 API 控制 voice、stability、language、文本规范化和时间戳。

ElevenLabs V3 TTS 是一款富有表现力的文本转语音模型,可将书面脚本转换为自然的 AI 语音音频。它面向会“演绎”而不只是朗读的语音输出,非常适合旁白、对话、产品配音、本地化、角色音频和短视频媒体。ApiPass API 使用公开模型名称 elevenlabs/elevenlabs-v3-tts,以异步任务方式提交生成请求,并通过任务轮询或可选回调返回输出文件 URL。
从最长 5000 个字符的脚本生成自然语音。[excited]、[whispers] 和 [laughs] 等内联音频标签可引导语气和表达方式,让语音输出更符合指定演绎方向。
可从受支持的语音名称中选择,包括 Rachel、Aria、Daniel、Lily 等。将 stability 从 0 到 1 进行调节,以控制语音演绎的一致性或变化程度。
在多语言工作流中使用可选的双字母 language_code 值,通过 auto、on 或 off 应用文本规范化,并在下游需要对齐数据时请求时间戳 JSON 输出。
直接在脚本中控制情绪语气、表达方式和人声反应。同一个 text 字段既可承载朗读内容,也可包含演绎提示,帮助团队通过一次请求创建旁白、角色对话和社交媒体配音。
发送文档中定义的字段 text、voice、stability、timestamps、language_code 和 apply_text_normalization。ApiPass 会校验类型和受支持的值,然后通过标准异步任务工作流运行生成。
提交任务后,可轮询 /api/v1/jobs/recordInfo,或接收可选回调。成功任务会在 resultJson.resultUrls 中返回生成的音频 URL;当请求并生成了时间戳时,还会返回额外的 JSON 文件 URL。
使用内联表达提示,为 reels、产品演示、广告、讲解视频、发布视频和社交媒体短片生成富有表现力的旁白。
将课程脚本、入门指南、帮助文章和教程转换为清晰的语音音频,用于教育平台和内部培训工具。
使用表现力标签,快速原型化角色台词、应用助手语音、角色扮演流程、叙事对话,以及具备演绎感知能力的语音体验。
通过可选语言代码和文本规范化控制,为全球化产品、媒体和支持工作流生成多语言语音素材。
ApiPass 通过标准异步任务工作流提供 ElevenLabs V3 TTS,与其他 ApiPass 模型 API 保持一致。
向 /api/v1/jobs/createTask 发送 POST 请求,将 model 设置为 elevenlabs/elevenlabs-v3-tts,并提供包含 text 以及可选 voice、stability、timestamps、language_code 和 apply_text_normalization 字段的 input 对象。
使用返回的 taskId,通过 GET /api/v1/jobs/recordInfo 检查任务状态。如果创建时提供了 callBackUrl,ApiPass 会在生成完成后将最终任务结果 POST 到你的端点。
当 data.state 为 success 时,读取 data.resultJson.resultUrls。结果可能是一个对象,也可能是可解析的 JSON 字符串;启用时间戳的任务可能同时包含音频 URL 和 JSON URL。
当前常规通道计费为每 1000 个输入字符 16 积分,按 16 × len(text) ÷ 1000 成比例计算,不向上取整。
计费使用原始输入字符串长度,包括空格、换行符和标点。文本校验会拒绝 trim 后为空的文本,但发送和计费都以原始字符串为准。
voice、stability、timestamps、language_code 和 apply_text_normalization 目前不会改变积分公式。时间戳文件目前没有单独的额外积分项。
在线计费取决于已部署并生效的模型积分规则。促销价格、通道价格或后续迁移都可能改变实际扣除的积分。
从控制台创建 ApiPass API key,并在调用任务创建和查询端点时将其作为 Bearer token 使用。
准备 1-5000 个字符的文本。当你希望模型遵循演绎方向时,可添加 [excited]、[whispers] 或 [laughs] 等表现力标签。
选择受支持且区分大小写的语音名称,将 stability 从 0 到 1 进行调节,并可选择设置 language_code、timestamps 和 apply_text_normalization。
将任务提交到 /api/v1/jobs/createTask,然后使用返回的 taskId 查询 /api/v1/jobs/recordInfo。完成的任务会返回音频文件 URL,并且在请求时间戳时可能包含时间戳 JSON URL。
所有 API 都需要通过 Bearer Token 进行身份验证。
Authorization: Bearer
提交一个新的 ElevenLabs V3 文本转语音任务,并可按需请求时间戳输出。
该 API 接受以下结构的 JSON 负载:
1{
2 "model": "elevenlabs/elevenlabs-v3-tts",
3 "callBackUrl": "string (optional)",
4 "channel": "auto",
5 "input": {
6 "text": "string",
7 "voice": "Rachel",
8 "stability": 0.5,
9 "timestamps": false,
10 "language_code": "en",
11 "apply_text_normalization": "auto"
12 }
13}model必填stringApiPass 公开模型名。对于此 API,必须固定为 elevenlabs/elevenlabs-v3-tts。
"elevenlabs/elevenlabs-v3-tts"
callBackUrl可选string任务完成通知的回调 URL。若省略,则不会发送回调。
"https://your-domain.com/api/callback"
channel可选string您可以通过 channel 参数在 APIPASS 中指定对应的提供方。默认通道为 auto。APIPASS 会根据实时价格和稳定性指标,在可用提供方之间自动分配任务,以平衡最低成本和可靠性能。starter 是超低成本方案,配额有限且稳定性较弱。regular 是标准选项,价格远低于官方 API,稳定性适中。official 使用模型原生 API,稳定性高、任务执行快,并采用官方定价。
The default value for the channel parameter is auto. When enabled, APIPASS automatically allocates tasks across available providers based on real-time pricing and stability metrics to balance minimal cost and reliable performance. starter is ultra-low-cost with limited quotas and weaker stability; regular is standard and much cheaper than official APIs with moderate stability; official uses the model native API with high stability, fast task execution, and official pricing.
可用选项:
auto
输入对象包含以下参数:
input.text必填string要转换为语音的文本。验证后必须是 1 到 5000 个 Python 字符的字符串,并且去除首尾空白后不能为空。
Validation uses text.strip() to reject empty text, but the original text is sent upstream without trimming. Billing uses len(text) on the raw string, so spaces, newlines, and punctuation count toward character usage. Text longer than 5000 characters is not split automatically; split long text into multiple tasks yourself.
"Welcome to ApiPass. This sentence will be converted to speech."
input.voice可选string用于生成语音的声音角色。若省略或设为 null,默认值为 Rachel。
Voice names are case-sensitive exact values. Variants such as rachel or RACHEL are not converted automatically and unsupported voices do not silently fall back to Rachel.
可用选项:
"Rachel"
input.stability可选number控制声音稳定性。默认值为 0.5。有效范围为 0 到 1(含)。
Must be a JSON number. Integers 0 and 1 and valid floating-point values are accepted and converted to float before sending upstream. JSON booleans, numeric strings such as "0.5", NaN, and infinity values are rejected.
0.5
input.timestamps可选boolean是否请求文本到音频的时间戳信息。默认值为 false。
When true, the upstream provider may return an additional timestamp JSON file alongside the audio file. The unified ApiPass resultJson extracts file URLs into resultUrls and does not retain each upstream file_type, so clients should handle multiple URLs and identify audio versus JSON by content or suffix.
可用选项:
false
input.language_code可选string可选的 ISO 639-1 两字母语言代码,例如 en、zh、ja 或 fr。若省略或设为 null,则该字段不会发送给上游。
可用选项:
"en"
input.apply_text_normalization可选string控制文本规范化行为。若省略或设为 null,默认值为 auto。
Must be a string. The input is trimmed and lowercased before validation, so " ON " is normalized to "on". Other values return a parameter error and do not fall back to the default.
可用选项:
"auto"
1curl -X POST "https://api.apipass.dev/api/v1/jobs/createTask" \
2 -H "Content-Type: application/json" \
3 -H "Authorization: Bearer YOUR_API_KEY" \
4 -d '{
5 "model": "elevenlabs/elevenlabs-v3-tts",
6 "callBackUrl": "https://your-domain.com/api/callback",
7 "channel": "auto",
8 "input": {
9 "text": "Hello! This is an ElevenLabs V3 text-to-speech test.",
10 "voice": "Rachel",
11 "stability": 0.5,
12 "timestamps": false,
13 "language_code": "en",
14 "apply_text_normalization": "auto"
15 }
16 }'1{
2 "code": 200,
3 "message": "success",
4 "data": {
5 "taskId": "task_xxxxxxxxxxxxxxxx"
6 }
7}code状态码,200 表示成功,其它表示失败。
message响应消息。请求失败时,这里包含错误说明。
data.taskId用于查询任务状态和结果的任务 ID。