Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

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.

Grundpreis
$0.20USD / Ausführung
Ausführung
async
Modelltyp
audio
Eingabefelder
6
Produktionsroute

Modell testen

Playground

Playground öffnen
Eingabe
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). Bereich: 0 bis 190.
0190
End of the region to regenerate, in seconds (0–190). Must be greater than mask_start. Bereich: 0 bis 190.
1190
Length of the generated audio in seconds (1–190). Bereich: 1 bis 190.
Random seed for reproducible outputs.
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.

Modellkarte

Spezifikationen

Preisgestaltung

Basispreis
$0.20 / Ausführung

Kontext & Modalitäten

Eingabe
Schema-definiert
Ausgabe
audio

Funktionen

Chat
Nicht unterstützt
Vision
Nicht unterstützt
Reasoning
Nicht unterstützt
Strukturierte Ausgabe
Nicht unterstützt
Function Calling
Nicht unterstützt
Audioeingabe
Nicht unterstützt

Zugriff

Anbieter
Stability AI
Modell-ID
stability-ai/stable-audio/2.5/inpaint
Ausführung
async
Basis-URL
https://api.sandbase.ai
API
Unified Run API
Endpunkt
/v1/run

API-README

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.

Jetzt loslegen

Senden Sie Ihre erste Anfrage

OpenAI-kompatibler Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.

Produktions-API
Unified Run API-Endpunkt
https://api.sandbase.ai/v1/run
Modell-ID
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

Eingabeschema

6 Parameter · 2 erforderlich · 4 optional

ParameterTypErforderlichBeschreibung
audiostringErforderlichSource audio file or URL. Only the masked region is regenerated.
promptstringErforderlichText description of what the masked region should become.
seedintegerOptionalRandom seed for reproducible outputs.
durationintegerOptionalLength of the generated audio in seconds (1–190). · Min.: 1 · Max.: 190 · Standard: 190
mask_endintegerOptionalEnd of the region to regenerate, in seconds (0–190). Must be greater than mask_start. · Min.: 0 · Max.: 190 · Standard: 190
mask_startintegerOptionalStart of the region to regenerate, in seconds (0–190). · Min.: 0 · Max.: 190 · Standard: 30
02

Ausgabeschema

FeldTypBeschreibung
idstringEindeutige Kennung für den Generierungsauftrag
statusstringStatus des Auftrags: pending, running, completed, failed, timeout
modelstringVerwendetes Modell für die Generierung
outputsarrayArray von Ausgabeelementen
outputs[].urlstringURL des generierten Artefakts
outputs[].content_typestringMIME-Typ (z. B. image/png, video/mp4)
errorobject | nullFehlerdetails bei Fehlschlag, bei Erfolg null
error.typestringMaschinenlesbarer Fehler-Typcode
error.messagestringMenschenlesbare Fehlerbeschreibung

Asynchroner Workflow

Dieses Modell läuft asynchron. Senden Sie eine Anfrage und pollen Sie dann das Ergebnis.

  1. Senden: Per POST an /v1/run senden und das zurückgegebene id lesen.
  2. Pollen: GET /v1/run/{id}, bis der Status completed, failed oder timeout ist.
  3. Abrufen: outputs aus der abgeschlossenen Antwort lesen.

Wählen Sie Ihr Modell

Modelle vergleichen

Alle Bild- und Videomodelle
ModellTypStandardpreisVeröffentlicht
Stability AIAudio$0.20 / Lauf10. Sept. 2025
Stability AIAudio$0.06 / Lauf3. Juni 2026
Stability AIAudio$0.05 / Lauf3. Juni 2026
Stability AIAudio$0.05 / Lauf3. Juni 2026
Stability AIAudio$0.05 / Lauf3. Juni 2026
Stability AIAudio$0.03 / Lauf3. Juni 2026

Fragen

FAQ

Wie rufe ich Stability AI Stable Audio 2.5 Inpaint über SandBase auf?

Erstellen Sie einen SandBase API-Schlüssel und senden Sie dann Anfragen mit der Modell-ID "stability-ai/stable-audio/2.5/inpaint" an Unified Run API (/v1/run) unter https://api.sandbase.ai. Die Anfragebeispiele auf dieser Seite zeigen die exakte Nutzlast.

Benötige ich ein separates Stability AI-Konto?

Nein. Mit einem SandBase API-Schlüssel und Guthaben erhalten Sie Zugriff auf Stability AI Stable Audio 2.5 Inpaint und die anderen Modelle im Katalog; Sie müssen sich nicht separat bei Stability AI registrieren.