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.
- Cena bazowa
- $0.05USD / uruchomienie
- Wykonanie
- async
- Typ modelu
- audio
- Pola wejściowe
- 7
Wypróbuj model
Playground
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
Karta modelu
Specyfikacja
Cennik
- Cena bazowa
- $0.05 / uruchomienie
Kontekst i modalności
- Wejście
- Zdefiniowane przez schemat
- Wyjście
- audio
Możliwości
- Czat
- Nieobsługiwane
- Wizja
- Nieobsługiwane
- Rozumowanie
- Nieobsługiwane
- Ustrukturyzowany wynik
- Nieobsługiwane
- Wywoływanie funkcji
- Nieobsługiwane
- Wejście audio
- Nieobsługiwane
Dostęp
- Dostawca
- Stability AI
- ID modelu
- stability-ai/stable-audio/3/medium/base/audio-inpainting
- Wykonanie
- async
- Bazowy URL
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README API
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.
Zacznij tworzyć
Wyślij pierwsze żądanie
Kompatybilny z OpenAI endpoint z jednolitym uwierzytelnianiem i śledzeniem użycia.
# 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"Schemat wejścia
7 parametrów · 4 wymaganych · 3 opcjonalnych
| Parametr | Typ | Wymagane | Opis |
|---|---|---|---|
audio | string | Wymagane | Source audio file or URL. Only the masked region is regenerated. |
prompt | string | Wymagane | Text description of what the masked region should become. |
mask_end_seconds | number | Wymagane | 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 | Wymagane | Start of the region to regenerate, in seconds (0–380). · Min.: 0 · Maks.: 380 |
seed | integer | Opcjonalne | Random seed for reproducible outputs. |
output_format | string | Opcjonalne | Audio container format. · Opcje: mp3, wav, flac, ogg, opus, m4a, aac · Domyślnie: "mp3" mp3wavflacoggopusm4aaac |
negative_prompt | string | Opcjonalne | Qualities to avoid in the output. · Domyślnie: "" |
Schemat wyjścia
| Pole | Typ | Opis |
|---|---|---|
id | string | Unikalny identyfikator zadania generowania |
status | string | Status zadania: pending, running, completed, failed, timeout |
model | string | Model użyty do generowania |
outputs | array | Tablica elementów wyjściowych |
outputs[].url | string | URL wygenerowanego artefaktu |
outputs[].content_type | string | Typ MIME (np. image/png, video/mp4) |
error | object | null | Szczegóły błędu, jeśli wystąpił; null w przypadku powodzenia |
error.type | string | Maszynowo czytelny kod typu błędu |
error.message | string | Opis błędu czytelny dla człowieka |
Asynchroniczny przepływ pracy
Ten model działa asynchronicznie. Wyślij żądanie, a następnie odpytyuj o wynik.
- Wyślij: wykonaj POST do /v1/run i odczytaj zwrócone
id. - Odpytywanie: wykonuj GET /v1/run/{id}, aż status będzie równy
completed,failedlubtimeout. - Pobierz: odczytaj
outputsz ukończonej odpowiedzi.
Wybierz swój model
Porównaj modele
| Model | Typ | Cena domyślna | Wydano |
|---|---|---|---|
Stability AI | Audio | $0.05 / uruchomienie | 3 cze 2026 |
Stability AI | Audio | $0.06 / uruchomienie | 3 cze 2026 |
Stability AI | Audio | $0.05 / uruchomienie | 3 cze 2026 |
Stability AI | Audio | $0.05 / uruchomienie | 3 cze 2026 |
Stability AI | Audio | $0.03 / uruchomienie | 3 cze 2026 |
Stability AI | Audio | $0.03 / uruchomienie | 3 cze 2026 |
Pytania
FAQ
Jak wywołać Stability AI Stable Audio 3 Medium Base Audio Inpainting przez SandBase?
Utwórz klucz API SandBase, a następnie wysyłaj żądania z identyfikatorem modelu "stability-ai/stable-audio/3/medium/base/audio-inpainting" do Unified Run API (/v1/run) na https://api.sandbase.ai. Przykłady żądań na tej stronie pokazują dokładny payload.
Czy potrzebuję osobnego konta Stability AI?
Nie. Jeden klucz API SandBase i saldo daje Ci dostęp do Stability AI Stable Audio 3 Medium Base Audio Inpainting oraz innych modeli w katalogu; nie musisz osobno zakładać konta u Stability AI.
