Model API'si
Elevenlabs Sound Effects V2
ElevenLabs Sound Effects V2 ile tarifinden kısa ses efekti oluşturabilirsin.
Model kimliği
elevenlabs/sound-effects/v2Çalıştır
Girdiye ücret teklifi al, bu teklifle üretimi başlat, ardından işin durumunu sorgula. Önce RAYWAKE_API_KEY değişkenini ayarla; ayrıntılar için Kimlik doğrulama sayfasına bak.
# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "elevenlabs/sound-effects/v2",
"input": {
"text": "example"
}
}'
# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model": "elevenlabs/sound-effects/v2", "quote_id": "QUOTE_ID", "input": {"text":"example"}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"Girdi
| Alan | Tür | Açıklama |
|---|---|---|
textzorunlu | string | The text describing the sound effect to generate |
duration_seconds | number | Duration in seconds (0.5-22). If None, optimal duration will be determined from prompt. |
prompt_influence | number | How closely to follow the prompt (0-1). Higher values mean less variation. |
output_format | string (enum) | Output format of the generated audio. Formatted as codec_sample_rate_bitrate. |
loop | boolean | Whether to create a sound effect that loops smoothly. |
Çıktı
Başarılı bir iş, sonuçlarını outputs altında listeler; dosyalar bizim tarafımızda saklanır. Tüm alanlar için İşler sayfasına bak.
"outputs": [
{ "type": "audio", "url": "https://…", "mime_type": "audio/mpeg", "thumbnail_url": null }
]Fiyatlandırma
- saniye başına$0,0032/ saniye
Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?