Model API Pages
ElevenLabs Sound Effect V2 API Integration
ElevenLabs Sound Effect V2 کو Rivya Public API v1 کے ذریعے model id elevenlabs-sound-effect-v2، supported inputs، parameters، Files API rules، credits اور response examples کے ساتھ استعمال کریں۔
API کے ذریعے availableText input readyAudio
API model id
elevenlabs-sound-effect-v2
Inputs
text
Files API
Minimal request کے لیے required نہیں
Base credits
3
Capability
Audio
Billing
METERED
Prompt limit
5000 characters
Request contract
model id کو top level پر بھیجیں۔ Model-specific controls params میں رہتے ہیں۔
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
| model | string | Yes | elevenlabs-sound-effect-v2 | elevenlabs-sound-effect-v2 API model id استعمال کریں۔ |
| prompt | string | Yes | - | اس model کے لیے زیادہ سے زیادہ 5000 characters۔ |
| params | object | No | - | Model-specific parameter object۔ allowed keys کے لیے نیچے والی rows استعمال کریں۔ |
| client_request_id | string | No | - | آپ کے system میں requests trace کرنے کے لیے optional client-side id۔ |
Model parameters
| Key | Type | Required | Default | Range | Options | Description |
|---|---|---|---|---|---|---|
| loop | select | No | false | - | false, true | لوپ |
| duration_seconds | number | No | 3 | min 0.5 / max 22 / step 0.5 | - | دورانیہ (seconds) |
| prompt_influence | number | No | 0.3 | min 0 / max 1 / step 0.05 | - | پرامپٹ کا اثر |
| output_format | select | No | mp3_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 | آؤٹ پٹ فارمیٹ |
Minimal request
{
"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"
}
}Create response
create endpoint ایک public task id واپس کرتا ہے۔ task succeeded یا failed ہونے تک status endpoint poll کریں۔
{
"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
}Common errors
validation_failed, insufficient_credits, idempotency_conflict, rate_limited, not_found
create endpoint ایک public task id واپس کرتا ہے۔ task succeeded یا failed ہونے تک status endpoint poll کریں۔