Stable Audio 3 Small Music Audio Inpainting
stability-ai/stable-audio/3/small/music/audio-inpaintingStable Audio 3 Small Music by Stability AI regenerates a chosen time range inside an existing clip from a text prompt and leaves the rest untouched.
- Prezzo base
- $0.03USD / esecuzione
- Esecuzione
- async
- Tipo di modello
- audio
- Campi di input
- 7
Prova il modello
Playground
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
Scheda del modello
Specifiche
Prezzi
- Prezzo base
- $0.03 / esecuzione
Contesto e modalità
- Input
- Definito dallo schema
- Output
- audio
Funzionalità
- Chat
- Non supportato
- Vision
- Non supportato
- Ragionamento
- Non supportato
- Output strutturato
- Non supportato
- Chiamata di funzione
- Non supportato
- Input audio
- Non supportato
Accesso
- Provider
- Stability AI
- ID modello
- stability-ai/stable-audio/3/small/music/audio-inpainting
- Esecuzione
- async
- URL base
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README API
Stable Audio 3 Small Music Audio Inpainting
Regenerates one time range of a source clip from a prompt (mask up to 120 s) and keeps the rest.
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–120, required | — | Start of the region to regenerate, in seconds. |
mask_end_seconds | number 0–120, 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.026 per generation, regardless of duration or settings.
| Request | Price |
|---|---|
| One track | $0.026 |
| 10 tracks | $0.26 |
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/small/music/text-to-audio, stability-ai/stable-audio/3/small/music/audio-to-audio, stability-ai/stable-audio/3/small/music/audio-outpainting, stability-ai/stable-audio/3/small/music/base/audio-inpainting.
Inizia a costruire
Invia la tua prima richiesta
Endpoint compatibile con OpenAI con autenticazione unificata e tracciamento dell'utilizzo.
# 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/small/music/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"Schema di input
7 parametri · 4 obbligatori · 3 facoltativi
| Parametro | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
audio | string | Obbligatorio | Source audio file or URL. Only the masked region is regenerated. |
prompt | string | Obbligatorio | Text description of what the masked region should become. |
mask_end_seconds | number | Obbligatorio | End of the region to regenerate, in seconds (0–120). Must be greater than mask_start_seconds. · Min: 0 · Max: 120 |
mask_start_seconds | number | Obbligatorio | Start of the region to regenerate, in seconds (0–120). · Min: 0 · Max: 120 |
seed | integer | Facoltativo | Random seed for reproducible outputs. |
output_format | string | Facoltativo | Audio container format. · Opzioni: mp3, wav, flac, ogg, opus, m4a, aac · Predefinito: "mp3" mp3wavflacoggopusm4aaac |
negative_prompt | string | Facoltativo | Qualities to avoid in the output. · Predefinito: "" |
Schema di output
| Campo | Tipo | Descrizione |
|---|---|---|
id | string | Identificatore univoco dell'attività di generazione |
status | string | Stato dell'attività: pending, running, completed, failed, timeout |
model | string | Modello usato per la generazione |
outputs | array | Array di elementi di output |
outputs[].url | string | URL dell'artefatto generato |
outputs[].content_type | string | Tipo MIME (ad esempio image/png, video/mp4) |
error | object | null | Dettagli dell'errore in caso di fallimento, null in caso di successo |
error.type | string | Codice del tipo di errore leggibile dalla macchina |
error.message | string | Descrizione dell'errore leggibile dall'utente |
Workflow asincrono
Questo modello funziona in modo asincrono. Invia una richiesta, quindi esegui il polling per ottenere il risultato.
- Invio: esegui POST su /v1/run e leggi il
idrestituito. - Polling: esegui GET /v1/run/{id} finché lo stato non è
completed,failedotimeout. - Recupero: leggi
outputsdalla risposta completata.
Scegli il tuo modello
Confronta i modelli
| Modello | Tipo | Prezzo predefinito | Rilasciato |
|---|---|---|---|
Stable Audio 3 Small Music Audio InpaintingQuesto modello Stability AI | Audio | $0.03 / esecuzione | 3 giu 2026 |
Stability AI | Audio | $0.06 / esecuzione | 3 giu 2026 |
Stability AI | Audio | $0.05 / esecuzione | 3 giu 2026 |
Stability AI | Audio | $0.05 / esecuzione | 3 giu 2026 |
Stability AI | Audio | $0.05 / esecuzione | 3 giu 2026 |
Stability AI | Audio | $0.03 / esecuzione | 3 giu 2026 |
Domande
FAQ
Come chiamo Stability AI Stable Audio 3 Small Music Audio Inpainting tramite SandBase?
Crea una chiave API SandBase, poi invia richieste con l'ID modello "stability-ai/stable-audio/3/small/music/audio-inpainting" a Unified Run API (/v1/run) su https://api.sandbase.ai. Gli esempi di richiesta in questa pagina mostrano il payload esatto.
Mi serve un account Stability AI separato?
No. Una sola chiave API e un solo saldo SandBase ti danno accesso a Stability AI Stable Audio 3 Small Music Audio Inpainting e agli altri modelli del catalogo; non è necessario registrarsi separatamente su Stability AI.
