ElevenLabs Music
elevenlabs/musicMusic is ElevenLabs's AI audio generation model. Produce high-quality music tracks, sound effects, and audio landscapes from natural language prompts.
- Taban fiyat
- $0.60USD / çalıştırma
- Çalıştırma
- async
- Model türü
- audio
- Girdi alanları
- 3
Modeli deneyin
Oynatma Alanı
Sırada ne yapmak istersiniz?
Örnekler
Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.
- Sonucu aç ↗
Girdi
{ "prompt": "Mysterious original soundtrack, themes of jungle, rainforest, nature, woodwinds, busy rhythmic tribal percussion." }
Model kartı
Teknik özellikler
Fiyatlandırma
- Temel fiyat
- $0.60 / çalıştırma
Bağlam ve modaliteler
- Girdi
- Şemada tanımlı
- Çıktı
- audio
Yetenekler
- Sohbet
- Desteklenmiyor
- Görsel
- Desteklenmiyor
- Akıl yürütme
- Desteklenmiyor
- Yapılandırılmış çıktı
- Desteklenmiyor
- Fonksiyon çağırma
- Desteklenmiyor
- Ses girdisi
- Desteklenmiyor
Erişim
- Sağlayıcı
- ElevenLabs
- Model kimliği
- elevenlabs/music
- Çalıştırma
- async
- Temel URL
- https://api.sandbase.ai
- API
- Unified Run API
- Uç nokta
- /v1/run
API README
ElevenLabs Music
ElevenLabs Music generates songs or instrumentals from a prompt, 3 seconds to 10 minutes long.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Genre, mood, instruments, vocals, and lyrics. |
force_instrumental | boolean | false | Generate without vocals. |
music_length_ms | integer 3000–600000 | — | Length in milliseconds (3,000–600,000). |
Billing
$0.60 per started minute, with a one-minute minimum. Without music_length_ms the quote assumes 1 minute.
| Length | Price |
|---|---|
| 30s | $0.60 |
| 60s | $0.60 |
| 150s | $1.80 |
| 600s | $6.00 |
Failed runs are not charged.
Prompting
- Describe structure and vocals; put lyrics in the prompt if you need exact words.
Limits
- Up to 10 minutes.
Also on SandBase
Other ElevenLabs Music versions: elevenlabs/music/2, elevenlabs/music/2.5.
Geliştirmeye başlayın
İlk isteğinizi gönderin
Birleşik kimlik doğrulama ve kullanım takibi sunan OpenAI uyumlu uç nokta.
# 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/music",
"prompt": "Mysterious original soundtrack, themes of jungle, rainforest, nature, woodwinds, busy rhythmic tribal percussion.",
"force_instrumental": false
}
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"Giriş Şeması
3 parametre · 1 zorunlu · 2 isteğe bağlı
| Parametre | Tür | Zorunlu | Açıklama |
|---|---|---|---|
prompt | string | Zorunlu | The text prompt describing the music to generate |
music_length_ms | integer | İsteğe bağlı | The length of the song to generate in milliseconds (3000-600000). If not provided, the model will choose a length based on the prompt. · Min: 3000 · Maks: 600000 |
force_instrumental | boolean | İsteğe bağlı | If true, guarantees that the generated song will be instrumental. · Varsayılan: false |
Çıkış Şeması
| Alan | Tür | Açıklama |
|---|---|---|
id | string | Üretim görevinin benzersiz tanımlayıcısı |
status | string | Görev durumu: pending, running, completed, failed, timeout |
model | string | Üretimde kullanılan model |
outputs | array | Çıkış öğelerinin dizisi |
outputs[].url | string | Oluşturulan çıktının URL'si |
outputs[].content_type | string | MIME türü (örn. image/png, video/mp4) |
error | object | null | Başarısız olursa hata ayrıntıları, başarıda null |
error.type | string | Makine tarafından okunabilir hata türü kodu |
error.message | string | İnsan tarafından okunabilir hata açıklaması |
Asenkron İş Akışı
Bu model asenkron çalışır. Bir istek gönderin, ardından sonuç için sorgulayın.
- Gönder: /v1/run adresine POST yapın ve dönen
idalanını okuyun. - Sorgula: durum
completed,failedveyatimeoutolana kadar /v1/run/{id} adresine GET yapın. - Al: tamamlanan yanıttan
outputsalanını okuyun.
Modelinizi seçin
Modelleri karşılaştırın
| Model | Tür | Varsayılan fiyat | Yayınlanma |
|---|---|---|---|
ElevenLabs MusicBu model ElevenLabs | Ses | $0.60 / çalıştırma | 22 Ara 2025 |
ElevenLabs | Ses | $0.01 / çalıştırma | 2 Kas 2026 |
ElevenLabs | Ses | $0.04 / çalıştırma | 28 Eyl 2026 |
ElevenLabs | Ses | $0.08 / çalıştırma | 28 Eyl 2026 |
ElevenLabs | Ses | $0.75 / çalıştırma | 14 Eyl 2026 |
ElevenLabs | Ses | $0.75 / çalıştırma | 14 Eyl 2026 |
Sorular
SSS
ElevenLabs Music'i SandBase üzerinden nasıl çağırırım?
Bir SandBase API anahtarı oluşturun, ardından model kimliği "elevenlabs/music" ile https://api.sandbase.ai adresindeki Unified Run API (/v1/run) uç noktalarına istek gönderin. Bu sayfadaki istek örnekleri tam yükü gösterir.
Ayrı bir ElevenLabs hesabına ihtiyacım var mı?
Hayır. Tek bir SandBase API anahtarı ve bakiyesi size ElevenLabs Music ve katalogdaki diğer modellere erişim sağlar; ElevenLabs için ayrıca kayıt olmanız gerekmez.
