Sound Effects V2
elevenlabs/sound-effects-v2Sound Effects V2 by ElevenLabs - generate music, sound effects, and audio from text descriptions with AI. Create original compositions, ambient sounds, and audio content for any creative project.
- Harga dasar
- $0.01USD / run
- Eksekusi
- async
- Jenis model
- audio
- Field input
- 4
Coba model ini
Playground
Apa yang ingin Anda lakukan selanjutnya?
Contoh
Pilih contoh untuk memuat input dan hasilnya ke playground.
- Buka hasil ↗
Input
{}
Kartu model
Spesifikasi
Harga
- Harga dasar
- $0.01 / run
Konteks & modalitas
- Input
- Didefinisikan oleh skema
- Output
- audio
Kemampuan
- Chat
- Tidak didukung
- Vision
- Tidak didukung
- Penalaran
- Tidak didukung
- Output terstruktur
- Tidak didukung
- Pemanggilan fungsi
- Tidak didukung
- Input audio
- Tidak didukung
Akses
- Penyedia
- ElevenLabs
- Model ID
- elevenlabs/sound-effects-v2
- Eksekusi
- async
- Base URL
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README API
Sound Effects V2
ElevenLabs Sound Effects v2 creates sound effects and ambiences from a description, 0.5–22 seconds long, optionally loopable.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
text | string | — | Describe the sound. |
prompt_influence | number 0–1 | 0.3 | How strictly to follow the description. |
duration_seconds | number 0.5–22 | 5 | Length in seconds (0.5–22). |
loop | boolean | false | Make the clip loop seamlessly. |
Billing
$0.002 per second of audio.
| Length | Price |
|---|---|
| 2s | $0.004 |
| 5s | $0.01 |
| 22s | $0.044 |
Failed runs are not charged.
Prompting
- Be specific about source, space, and texture: “heavy wooden door creaks open in a stone hall”.
Limits
- Up to 22 seconds.
Mulai membangun
Kirim permintaan pertama Anda
Endpoint yang kompatibel dengan OpenAI dengan autentikasi dan pelacakan penggunaan terpadu.
# 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": "elevenlabs/sound-effects-v2",
"loop": false,
"text": "Spacious braam suitable for high-impact movie trailer moments",
"duration_seconds": 5,
"prompt_influence": 0.3
}
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"Skema Input
4 parameter · 0 wajib · 4 opsional
| Parameter | Tipe | Wajib | Deskripsi |
|---|---|---|---|
loop | boolean | Opsional | Whether to create a sound effect that loops smoothly. · Bawaan: false |
text | string | Opsional | The text describing the sound effect to generate |
duration_seconds | number | Opsional | Duration in seconds (0.5-22). If not set, optimal duration will be determined from prompt. · Min: 0.5 · Maks: 22 · Bawaan: 5 |
prompt_influence | number | Opsional | How closely to follow the prompt (0-1). Higher values mean less variation. · Min: 0 · Maks: 1 · Bawaan: 0.3 |
Skema Output
| Field | Tipe | Deskripsi |
|---|---|---|
id | string | Pengidentifikasi unik untuk tugas generasi |
status | string | Status tugas: pending, running, completed, failed, timeout |
model | string | Model yang digunakan untuk generasi |
outputs | array | Array item output |
outputs[].url | string | URL artefak yang dihasilkan |
outputs[].content_type | string | Tipe MIME (mis. image/png, video/mp4) |
error | object | null | Detail error jika gagal, null jika berhasil |
error.type | string | Kode jenis error yang dapat dibaca mesin |
error.message | string | Deskripsi error yang dapat dibaca manusia |
Alur Kerja Asinkron
Model ini berjalan secara asinkron. Kirim permintaan, lalu polling untuk hasilnya.
- Kirim: POST ke /v1/run dan baca
idyang dikembalikan. - Polling: GET /v1/run/{id} sampai status menjadi
completed,failed, atautimeout. - Ambil: baca
outputsdari response yang selesai.
Pilih model Anda
Bandingkan model
| Model | Tipe | Harga default | Rilis |
|---|---|---|---|
Sound Effects V2Model ini ElevenLabs | Audio | $0.01 / run | 2 Sep 2025 |
ElevenLabs | Audio | $0.01 / run | 2 Nov 2026 |
ElevenLabs | Audio | $0.04 / run | 28 Sep 2026 |
ElevenLabs | Audio | $0.08 / run | 28 Sep 2026 |
ElevenLabs | Audio | $0.75 / run | 14 Sep 2026 |
ElevenLabs | Audio | $0.75 / run | 14 Sep 2026 |
Pertanyaan
FAQ
Bagaimana cara memanggil ElevenLabs Sound Effects V2 melalui SandBase?
Buat kunci API SandBase, lalu kirim permintaan dengan model ID "elevenlabs/sound-effects-v2" ke Unified Run API (/v1/run) di https://api.sandbase.ai. Contoh permintaan di halaman ini menunjukkan payload yang tepat.
Apakah saya memerlukan akun ElevenLabs terpisah?
Tidak. Satu kunci API dan saldo SandBase memberi Anda akses ke ElevenLabs Sound Effects V2 dan model lain di katalog; Anda tidak perlu mendaftar ke ElevenLabs secara terpisah.
