elevenlabs-sound-effects-v2默认Elevenlabs Sound Effects V2 API — 如何接入并付费
ElevenLabs Sound Effects V2——根据文本描述生成音效:脚步声、门声、爆炸声、自然声、UI 声音、环境音轨。描述最长 450 个字符。时长为 0.5 到 22 秒,可选择无缝循环。价格取决于时长。
渠道对比
最近 7 天
| 渠道 | 价格 |
|---|---|
Flow elevenlabs-sound-effects-v2默认 | $0.001333 起 per file |
组合你需要的输出结果
elevenlabs-sound-effects-v2什么是 Elevenlabs Sound Effects V2
ElevenLabs Sound Effects V2——根据文本描述生成音效:脚步声、门声、爆炸声、自然声、UI 声音、环境音轨。描述最长 450 个字符。时长为 0.5 到 22 秒,可选择无缝循环。价格取决于时长。
契约概览
- 输入
- text
- 输出
- audio
- 模式
- 异步(任务 + 轮询)
- 状态轮询
- 每 3 秒 · 最多 90 秒
优势
- 定价:按文件计费
- 输入:文本
- 23 个可配置选项
- 用于媒体生成的一个 API 密钥
应用场景
- 视频配音
- 语音脚本
- 文本的音频版本
- 录音清理
API 契约
生成是异步的:先创建任务,然后轮询状态直至完成。
- 创建任务
- POST /api/media/generate
- 检查状态
- GET /api/media/jobs/{jobId}
- 输入
- text
- 输出
- audio
- 轮询
- 每 3 秒 · 最多 90 秒
- 鉴权
- Authorization: Bearer sk-pv-…
请求示例
在 Bearer 请求头中传递密钥。API 会返回 jobId 用于轮询状态。
curl -sS https://getvibeapi.com/api/media/generate \
-H "Authorization: Bearer $GETVIBE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary '{"model":"elevenlabs-sound-effects-v2","prompt":"a beautiful landscape","opts":{"duration":"5","prompt_influence":0.3,"loop":false,"output_format":"mp3"}}'JavaScript
const response = await fetch('https://getvibeapi.com/api/media/generate', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GETVIBE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "elevenlabs-sound-effects-v2",
"prompt": "a beautiful landscape",
"opts": {
"duration": "5",
"prompt_influence": 0.3,
"loop": false,
"output_format": "mp3"
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);API 请求参数
通过 GetVibe API 向 Elevenlabs Sound Effects V2 发起请求的参数。
prompt必填durationprompt_influenceloopoutput_format| 参数 | 类型 | 取值 | 默认值 | 价格 |
|---|---|---|---|---|
prompt必填 | text | text description | required | — |
duration | option selection | 0.5 · 1 · 2 · 3 · 4 · 5 (default) · 6 · 7 · 8 · 9 · 10 · 11 · 12 · 13 · 14 · 15 · 16 · 17 · 18 · 19 · 20 · 21 · 22 | 5 | 0.5: $0.001333, 1: $0.002667, 2: $0.005333, 3: $0.008, 4: $0.010667, 5: $0.013333, 6: $0.016, 7: $0.018667, 8: $0.021333, 9: $0.024, 10: $0.026667, 11: $0.029333, 12: $0.032, 13: $0.034667, 14: $0.037333, 15: $0.04, 16: $0.042667, 17: $0.045333, 18: $0.048, 19: $0.050667, 20: $0.053333, 21: $0.056, 22: $0.058667 |
prompt_influence | text / number | any value | — | Included in the base price |
loop | yes/no | Yes · No (default) | 否 | Included in the base price |
output_format | option selection | MP3 128 kbps (default) · MP3 192 kbps | MP3 128 kbps | Included in the base price |
请求:POST https://getvibeapi.com/api/media/generate。价格以 USD 计。
Elevenlabs Sound Effects V2 的价格
Elevenlabs Sound Effects V2 的费用:从 $0.013333 per file。价格按当前汇率动态计算,最终扣费见 API 响应(priceRub)。以 USD 支付,无订阅。
默认请求的实际费用
若不传参数,请求将使用这些取值:Duration — 5, Seamless loop — No, Format — MP3 128 kbps。 该请求的费用为 $0.013333。
各渠道及所有参数组合的价格
每个渠道的每种参数组合价格。这正是成功生成时扣除的金额,与下方链接的机器可读价格表一致。
Flowelevenlabs-sound-effects-v2$0.001333 起精确价格
| Duration, sec | 0.5 秒 | 1 秒 | 2 秒 | 3 秒 | 4 秒 | 5 秒 | 6 秒 | 7 秒 | 8 秒 | 9 秒 | 10 秒 | 11 秒 | 12 秒 | 13 秒 | 14 秒 | 15 秒 | 16 秒 | 17 秒 | 18 秒 | 19 秒 | 20 秒 | 21 秒 | 22 秒 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Flow | $0.001333 | $0.002667 | $0.005333 | $0.008 | $0.010667 | $0.013333 | $0.016 | $0.018667 | $0.021333 | $0.024 | $0.026667 | $0.029333 | $0.032 | $0.034667 | $0.037333 | $0.04 | $0.042667 | $0.045333 | $0.048 | $0.050667 | $0.053333 | $0.056 | $0.058667 |
README
Elevenlabs Sound Effects V2 的机器可读契约包含请求 schema、操作、限制、轮询和响应示例。
# Elevenlabs Sound Effects V2
公开模型:elevenlabs-sound-effects-v2
创建任务: POST /api/media/generate
检查状态: GET /api/media/jobs/{jobId}
## 输入参数
- `prompt` (text): text description; 默认: required
- `duration` (option selection): 0.5 · 1 · 2 · 3 · 4 · 5 (default) · 6 · 7 · 8 · 9 · 10 · 11 · 12 · 13 · 14 · 15 · 16 · 17 · 18 · 19 · 20 · 21 · 22; 默认: 5
- `prompt_influence` (text / number): any value; 默认: —
- `loop` (yes/no): Yes · No (default); 默认: No
- `output_format` (option selection): MP3 128 kbps (default) · MP3 192 kbps; 默认: MP3 128 kbps
## 公开变体
- `elevenlabs-sound-effects-v2`: Flow关于 Elevenlabs Sound Effects V2 API 的常见问题
Elevenlabs Sound Effects V2 的价格是多少?
Elevenlabs Sound Effects V2 的价格:从 $0.013333 per file。价格按当前汇率动态计算。
是否兼容 OpenAI SDK?
是的,API 完全兼容 OpenAI。只需将 base_url 改为 https://getvibeapi.com/v1 并设置密钥——其余代码不变。