Stable Audio 3 Medium Base Audio Inpainting
stability-ai/stable-audio/3/medium/base/audio-inpaintingStable Audio 3 Medium Base by Stability AI regenerates a chosen time range inside an existing clip from a text prompt and leaves the rest untouched. It runs the non-distilled base checkpoint (50 sampling steps), which is slower and costs more than the post-trained version.
- Taban fiyat
- $0.05USD / çalıştırma
- Çalıştırma
- async
- Model türü
- audio
- Girdi alanları
- 7
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.05 / ç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ı
- Stability AI
- Model kimliği
- stability-ai/stable-audio/3/medium/base/audio-inpainting
- Çalıştırma
- async
- Temel URL
- https://api.sandbase.ai
- API
- Unified Run API
- Uç nokta
- /v1/run
API README
Stable Audio 3 Medium Base Audio Inpainting
Regenerates one time range of a source clip from a prompt (mask up to 380 s) and keeps the rest. It uses the non-distilled base checkpoint (50 sampling steps).
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Text description of what the masked region should become. |
audio | audio file or URL, required | — | Source audio file or URL. Only the masked region is regenerated. |
mask_start_seconds | number 0–380, required | — | Start of the region to regenerate, in seconds. |
mask_end_seconds | number 0–380, required | — | End of the region to regenerate; must be after mask_start_seconds. |
output_format | mp3 / wav / flac / ogg / opus / m4a / aac | mp3 | Output file format. |
negative_prompt | string | — | What to avoid. |
seed | integer | random | Fix it to compare prompt changes. |
Billing
$0.0537 per generation, regardless of duration or settings.
| Request | Price |
|---|---|
| One track | $0.0537 |
| 10 tracks | $0.537 |
Failed runs are not charged.
Prompting
- Describe only what the masked region should contain; keep the mask short so the edges blend with the source.
Also on SandBase
Related: stability-ai/stable-audio/3/medium/base/text-to-audio, stability-ai/stable-audio/3/medium/base/audio-to-audio, stability-ai/stable-audio/3/medium/base/audio-outpainting, stability-ai/stable-audio/3/medium/audio-inpainting.
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": "stability-ai/stable-audio/3/medium/base/audio-inpainting",
"audio": "https://storage.googleapis.com/falserverless/model_tests/diffrythm/rock_en.wav",
"prompt": "punchy kick drum fill",
"output_format": "mp3",
"mask_end_seconds": 8,
"mask_start_seconds": 4
}
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ı
7 parametre · 4 zorunlu · 3 isteğe bağlı
| Parametre | Tür | Zorunlu | Açıklama |
|---|---|---|---|
audio | string | Zorunlu | Source audio file or URL. Only the masked region is regenerated. |
prompt | string | Zorunlu | Text description of what the masked region should become. |
mask_end_seconds | number | Zorunlu | End of the region to regenerate, in seconds (0–380). Must be greater than mask_start_seconds. · Min: 0 · Maks: 380 |
mask_start_seconds | number | Zorunlu | Start of the region to regenerate, in seconds (0–380). · Min: 0 · Maks: 380 |
seed | integer | İsteğe bağlı | Random seed for reproducible outputs. |
output_format | string | İsteğe bağlı | Audio container format. · Seçenekler: mp3, wav, flac, ogg, opus, m4a, aac · Varsayılan: "mp3" mp3wavflacoggopusm4aaac |
negative_prompt | string | İsteğe bağlı | Qualities to avoid in the output. · 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 |
|---|---|---|---|
Stability AI | Ses | $0.05 / çalıştırma | 3 Haz 2026 |
Stability AI | Ses | $0.06 / çalıştırma | 3 Haz 2026 |
Stability AI | Ses | $0.05 / çalıştırma | 3 Haz 2026 |
Stability AI | Ses | $0.05 / çalıştırma | 3 Haz 2026 |
Stability AI | Ses | $0.03 / çalıştırma | 3 Haz 2026 |
Stability AI | Ses | $0.03 / çalıştırma | 3 Haz 2026 |
Sorular
SSS
Stability AI Stable Audio 3 Medium Base Audio Inpainting'i SandBase üzerinden nasıl çağırırım?
Bir SandBase API anahtarı oluşturun, ardından model kimliği "stability-ai/stable-audio/3/medium/base/audio-inpainting" 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 Stability AI hesabına ihtiyacım var mı?
Hayır. Tek bir SandBase API anahtarı ve bakiyesi size Stability AI Stable Audio 3 Medium Base Audio Inpainting ve katalogdaki diğer modellere erişim sağlar; Stability AI için ayrıca kayıt olmanız gerekmez.
