Model API'si
ElevenLabs Music v2
Model kimliği
elevenlabs-music-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-music-v2",
"input": {
"prompt": "A red ceramic cup on a wooden table, soft morning light"
}
}'
# 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-music-v2", "quote_id": "QUOTE_ID", "input": {"prompt":"A red ceramic cup on a wooden table, soft morning light"}}'
# 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 |
|---|---|---|
promptzorunlu | string | Required. Describe the music you want. Mention genre, instruments, mood and tempo, and the structure if you have one in mind. |
outputFormat | string (enum) | Required. |
duration | string (enum) | Required. Length of the track. |
instrumental | string (enum) | Optional. Forces a track with no vocals. Set false to let the prompt decide whether the song is sung. |
Çı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
- 10 s$0,04/ ses
- 15 s$0,06/ ses
- 20 s$0,08/ ses
- 25 s$0,10/ ses
- 30 s$0,12/ ses
- 35 s$0,14/ ses
- 40 s$0,16/ ses
- 45 s$0,18/ ses
- 50 s$0,20/ ses
- 55 s$0,22/ ses
- 60 s$0,24/ ses
- 70 s$0,28/ ses
- 80 s$0,32/ ses
- 90 s$0,36/ ses
- 100 s$0,40/ ses
- 110 s$0,44/ ses
- 120 s$0,48/ ses
- 130 s$0,52/ ses
- 140 s$0,56/ ses
- 150 s$0,60/ ses
- 160 s$0,64/ ses
- 170 s$0,68/ ses
- 180 s$0,72/ ses
- 190 s$0,76/ ses
- 200 s$0,80/ ses
- 210 s$0,84/ ses
- 220 s$0,88/ ses
- 230 s$0,92/ ses
- 240 s$0,96/ ses
- 250 s$1,00/ ses
- 260 s$1,03/ ses
- 270 s$1,07/ ses
- 280 s$1,11/ ses
- 290 s$1,15/ ses
- 300 s$1,19/ ses
Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?