MMAudio V2 Text to Audio
sandbase-ai/mmaudio-v2/text-to-audioMMAudio V2 generates sound effects and ambient audio from a text prompt, up to 30 seconds long. A negative prompt steers the result away from unwanted sounds.
- Taban fiyat
- $0.008USD / çalıştırma
- Çalıştırma
- async
- Model türü
- audio
- Girdi alanları
- 4
Modeli deneyin
Oynatma Alanı
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
Model kartı
Teknik özellikler
Fiyatlandırma
- Temel fiyat
- $0.008 / ç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ı
- SandBase AI
- Model kimliği
- sandbase-ai/mmaudio-v2/text-to-audio
- Çalıştırma
- async
- Temel URL
- https://api.sandbase.ai
- API
- Unified Run API
- Uç nokta
- /v1/run
API README
MMAudio V2 Text to Audio
MMAudio V2 generates sound effects and ambience from a text prompt, 1 to 30 seconds long.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Sound to generate. |
duration | number 1–30 | 8 | Length in seconds; sets the price. |
negative_prompt | string | empty | What to avoid. |
seed | integer 0–65535 | random | Fix it to compare prompt changes. |
Billing
$0.001 per second of generated audio.
| Length | Price |
|---|---|
| 8 s (default) | $0.008 |
| 30 s | $0.03 |
Failed runs are not charged.
Prompting
- Describe the sound source and setting in a short phrase.
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": "sandbase-ai/mmaudio-v2/text-to-audio",
"prompt": "Indian holy music",
"duration": 8
}
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ı
4 parametre · 1 zorunlu · 3 isteğe bağlı
| Parametre | Tür | Zorunlu | Açıklama |
|---|---|---|---|
prompt | string | Zorunlu | The prompt to generate the audio for. |
seed | integer | İsteğe bağlı | Random seed for reproducible outputs (0–65535). Omit for a random seed. · Min: 0 · Maks: 65535 |
duration | number | İsteğe bağlı | Length of the generated audio in seconds (1–30). · Min: 1 · Maks: 30 · Varsayılan: 8 |
negative_prompt | string | İsteğe bağlı | Sounds to avoid in the generated audio. · Varsayılan: "" |
Çı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 |
|---|---|---|---|
MMAudio V2 Text to AudioBu model SandBase AI | Ses | $0.01 / çalıştırma | 20 Ara 2024 |
SandBase AI | Ses | $0.01 / çalıştırma | 16 Haz 2026 |
SandBase AI | Ses | $0.06 / çalıştırma | 7 Oca 2026 |
SandBase AI | Ses | $0.01 / çalıştırma | 24 Eki 2025 |
sandbase-ai | Ses | $0.02 / çalıştırma | 7 Eki 2025 |
SandBase AI | Ses | $0.05 / çalıştırma | 4 Nis 2025 |
Sorular
SSS
SandBase AI MMAudio V2 Text to Audio'i SandBase üzerinden nasıl çağırırım?
Bir SandBase API anahtarı oluşturun, ardından model kimliği "sandbase-ai/mmaudio-v2/text-to-audio" 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 SandBase AI hesabına ihtiyacım var mı?
Hayır. Tek bir SandBase API anahtarı ve bakiyesi size SandBase AI MMAudio V2 Text to Audio ve katalogdaki diğer modellere erişim sağlar; SandBase AI için ayrıca kayıt olmanız gerekmez.
