Docs / audio / ElevenLabs Sound Effects
ElevenLabs Sound Effects online
Efek suara dari deskripsi teks — langkah kaki, pintu, ledakan, ambience. Bisa dibuat looping mulus untuk background.
Rp Rp25 / detik
Rp180 −30.6%
⏱ ±3–20 detik perkiraan waktu
elevenlabs/sound-effects model id
Looping mulusDurasi 1–30 detikAmbienceFoley
1 · Create a task
Kirim permintaan untuk membuat tugas generasi audio. Wajib header Idempotency-Key. Saldo direservasi sebesar estimasi; task gagal tidak ditagih.
curl -X POST https://run.getcore.id/v1/tasks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: my-task-001" \
-H "Content-Type: application/json" \
-d '{
"model": "elevenlabs/sound-effects",
"input": {
"text": "hujan deras di atap seng, guntur jauh",
"duration_seconds": 10
}
}'const res = await fetch('https://run.getcore.id/v1/tasks', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Idempotency-Key': 'my-task-001',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "elevenlabs/sound-effects",
"input": {
"text": "hujan deras di atap seng, guntur jauh",
"duration_seconds": 10
}
}),
});
const task = await res.json();import requests
res = requests.post(
"https://run.getcore.id/v1/tasks",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Idempotency-Key": "my-task-001",
},
json={
"model": "elevenlabs/sound-effects",
"input": {
"text": "hujan deras di atap seng, guntur jauh",
"duration_seconds": 10
}
},
)
task = res.json()Input parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
loop |
boolean | No | Buat efek yang bisa diulang mulus tanpa jeda. | false |
text |
string | Yes | Efek suara yang diinginkan, mis. "kaca pecah di ruangan kosong". (max 500 chars) | hujan deras di atap seng, guntur jauh |
duration_seconds |
number | Yes | Panjang efek suara. Harga dihitung per detik. (min 1, max 30) | 10 |
prompt_influence |
number | No | Makin tinggi makin patuh pada deskripsi, makin rendah makin kreatif. (min 0, max 1) | 0.3 |
2 · Poll the result
Ambil status tugas hingga selesai — poll tiap 2–5 detik.
Respons saat sukses:
{
"id": "task_9f2c…",
"status": "succeeded",
"model": "elevenlabs/sound-effects",
"price": {
"currency": "IDR",
"estimated": 125,
"reserved": 125,
"final": 125
},
"output": {
"urls": [
"https://storage.getcore.id/outputs/task_9f2c…/0.mpeg"
],
"expires_at": "(7 hari setelah selesai)"
}
}
Status values
| Status | Keterangan |
|---|---|
queued | Tugas sedang diantrikan. |
processing | Sedang diproses. |
succeeded | Berhasil. |
failed | Gagal — lihat error detail, tidak ditagih. |
audio/mpeg, dilayani dari CDN kami dan berlaku 7 hari — salin ke penyimpananmu sendiri untuk jangka panjang.Best practices
Bila generation gagal, task berstatus failed dengan error.code ternormalisasi (mis. moderation_blocked, upstream_error) dan price.final = 0 — saldo dikembalikan otomatis. Daftar lengkap kode error ada di Error handling. Selalu kirim Idempotency-Key unik per tugas agar retry aman.
Coba tanpa kode: jalankan model ini langsung dari Playground atau lihat di API Market.
