Docs Rivya AI
Trang API mô hình

Tích hợp API ElevenLabs Sound Effect V2

Dùng ElevenLabs Sound Effect V2 qua Rivya Public API v1 với model id elevenlabs-sound-effect-v2, input được hỗ trợ, tham số, quy tắc Files API, tín dụng và ví dụ response.

Khả dụng qua APIText input sẵn sàngÂm thanh
ID mô hình API

elevenlabs-sound-effect-v2

Input

text

Files API

Không bắt buộc cho minimal request

Tín dụng cơ bản

3

Năng lực

Âm thanh

Thanh toán

METERED

Giới hạn prompt

5000 ký tự

Hợp đồng yêu cầu

Gửi model id ở top level. Điều khiển riêng của mô hình nằm trong params.

KeyTypeBắt buộcDefaultMô tả
modelstringelevenlabs-sound-effect-v2Dùng API model id elevenlabs-sound-effect-v2.
promptstring-Tối đa 5000 ký tự cho mô hình này.
paramsobjectKhông-Object tham số riêng của mô hình. Dùng các dòng bên dưới để xem key được phép.
client_request_idstringKhông-Client-side id tùy chọn để trace request trong hệ thống của bạn.

Tham số mô hình

KeyTypeBắt buộcDefaultRangeOptionsMô tả
loopselectKhôngfalse-false, trueLoop
duration_secondsnumberKhông3min 0.5 / max 22 / step 0.5-Thời lượng tính bằng giây
prompt_influencenumberKhông0.3min 0 / max 1 / step 0.05-Mức ảnh hưởng của prompt
output_formatselectKhôngmp3_44100_128-mp3_22050_32, mp3_44100_32, mp3_44100_64, mp3_44100_96, mp3_44100_128, mp3_44100_192, pcm_8000, pcm_16000, pcm_22050, pcm_24000, pcm_44100, pcm_48000, ulaw_8000, alaw_8000, opus_48000_32, opus_48000_64, opus_48000_96, opus_48000_128, opus_48000_192Định dạng đầu ra

Yêu cầu tối thiểu

{
  "model": "elevenlabs-sound-effect-v2",
  "prompt": "A polished audio concept for a short product story",
  "params": {
    "loop": "false",
    "duration_seconds": 3,
    "prompt_influence": 0.3,
    "output_format": "mp3_44100_128"
  }
}

Phản hồi tạo

Create endpoint trả về public task id. Poll status endpoint cho đến khi task succeeded hoặc failed.

{
  "id": "task_elevenlabs_sound_effect_v2_example",
  "status": "queued",
  "model": "elevenlabs-sound-effect-v2",
  "reserved_credits": 3,
  "final_credits": 0,
  "created_at": "2026-05-11T00:00:00.000Z",
  "updated_at": "2026-05-11T00:00:00.000Z",
  "result": null,
  "error": null
}

Lỗi thường gặp

validation_failed, insufficient_credits, idempotency_conflict, rate_limited, not_found

Create endpoint trả về public task id. Poll status endpoint cho đến khi task succeeded hoặc failed.