Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Stable Audio 2.5 Inpaint

stability-ai/stable-audio/2.5/inpaint

Stable Audio 2.5 Inpaint by Stability AI regenerates a chosen time range of an existing clip from a text prompt and keeps the rest, producing up to 190 seconds of audio.

Cena bazowa
$0.20USD / uruchomienie
Wykonanie
async
Typ modelu
audio
Pola wejściowe
6
Trasa produkcyjna

Wypróbuj model

Playground

Otwórz Playground
Wejście
Text description of what the masked region should become.
Source audio file or URL. Only the masked region is regenerated.
0190
Start of the region to regenerate, in seconds (0–190). Zakres: od 0 do 190.
0190
End of the region to regenerate, in seconds (0–190). Must be greater than mask_start. Zakres: od 0 do 190.
1190
Length of the generated audio in seconds (1–190). Zakres: od 1 do 190.
Random seed for reproducible outputs.
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

Karta modelu

Specyfikacja

Cennik

Cena bazowa
$0.20 / 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/2.5/inpaint
Wykonanie
async
Bazowy URL
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

README API

Stable Audio 2.5 Inpaint

Regenerates one time range of a source clip from a prompt and keeps the rest, up to 190 seconds of output.

Fields

FieldTypeDefaultNotes
promptstring, required—Text description of what the masked region should become.
audioaudio file or URL, required—Source audio file or URL. Only the masked region is regenerated.
mask_startinteger 0–19030Start of the region to regenerate, in seconds.
mask_endinteger 0–190190End of the region to regenerate; must be after mask_start.
durationinteger 1–190190Length of the generated audio in seconds (1–190).
seedintegerrandomFix it to compare prompt changes.

Billing

$0.20 per generation, regardless of duration or settings.

RequestPrice
One track$0.20
10 tracks$2.00

Failed runs are not charged.

Prompting

  • Describe only what the masked region should contain; keep duration equal to the source length to avoid padding.

Also on SandBase

Related: stability-ai/stable-audio/2.5/audio-to-audio, stability-ai/stable-audio/2.5/text-to-audio, 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.

API produkcyjne
endpoint Unified Run API
https://api.sandbase.ai/v1/run
ID modelu
stability-ai/stable-audio/2.5/inpaint
# 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/2.5/inpaint",
  "audio": "https://static.sandbase.ai/examples/stability-ai/stable-audio/2.5/inpaint/input_audio_0.mp3",
  "prompt": "Lofi hip hop beat, chillhop",
  "duration": 190,
  "mask_end": 40,
  "mask_start": 15
}
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"
01

Schemat wejścia

6 parametrów · 2 wymaganych · 4 opcjonalnych

ParametrTypWymaganeOpis
audiostringWymaganeSource audio file or URL. Only the masked region is regenerated.
promptstringWymaganeText description of what the masked region should become.
seedintegerOpcjonalneRandom seed for reproducible outputs.
durationintegerOpcjonalneLength of the generated audio in seconds (1–190). · Min.: 1 · Maks.: 190 · Domyślnie: 190
mask_endintegerOpcjonalneEnd of the region to regenerate, in seconds (0–190). Must be greater than mask_start. · Min.: 0 · Maks.: 190 · Domyślnie: 190
mask_startintegerOpcjonalneStart of the region to regenerate, in seconds (0–190). · Min.: 0 · Maks.: 190 · Domyślnie: 30
02

Schemat wyjścia

PoleTypOpis
idstringUnikalny identyfikator zadania generowania
statusstringStatus zadania: pending, running, completed, failed, timeout
modelstringModel użyty do generowania
outputsarrayTablica elementów wyjściowych
outputs[].urlstringURL wygenerowanego artefaktu
outputs[].content_typestringTyp MIME (np. image/png, video/mp4)
errorobject | nullSzczegóły błędu, jeśli wystąpił; null w przypadku powodzenia
error.typestringMaszynowo czytelny kod typu błędu
error.messagestringOpis błędu czytelny dla człowieka

Asynchroniczny przepływ pracy

Ten model działa asynchronicznie. Wyślij żądanie, a następnie odpytyuj o wynik.

  1. Wyślij: wykonaj POST do /v1/run i odczytaj zwrócone id.
  2. Odpytywanie: wykonuj GET /v1/run/{id}, aż status będzie równy completed, failed lub timeout.
  3. Pobierz: odczytaj outputs z ukończonej odpowiedzi.

Wybierz swój model

Porównaj modele

Wszystkie modele obrazu i wideo
ModelTypCena domyślnaWydano
Stability AIAudio$0.20 / uruchomienie10 wrz 2025
Stability AIAudio$0.06 / uruchomienie3 cze 2026
Stability AIAudio$0.05 / uruchomienie3 cze 2026
Stability AIAudio$0.05 / uruchomienie3 cze 2026
Stability AIAudio$0.05 / uruchomienie3 cze 2026
Stability AIAudio$0.03 / uruchomienie3 cze 2026

Pytania

FAQ

Jak wywołać Stability AI Stable Audio 2.5 Inpaint przez SandBase?

Utwórz klucz API SandBase, a następnie wysyłaj żądania z identyfikatorem modelu "stability-ai/stable-audio/2.5/inpaint" 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 2.5 Inpaint oraz innych modeli w katalogu; nie musisz osobno zakładać konta u Stability AI.