Stable Audio 2.5 Audio to Audio
stability-ai/stable-audio/2.5/audio-to-audioStable Audio 2.5 Audio to Audio by Stability AI transforms an existing clip into new music or sound guided by a text prompt, with a strength control that sets how far it moves from the source.
- Prezzo base
- $0.20USD / esecuzione
- Esecuzione
- async
- Tipo di modello
- audio
- Campi di input
- 5
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.20 / 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/2.5/audio-to-audio
- Esecuzione
- async
- URL base
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README API
Stable Audio 2.5 Audio to Audio
Reworks a source clip into new audio from a prompt, with up to 190 seconds of output.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Text description of how the source audio should be transformed. |
audio | audio file or URL, required | — | Source audio file or URL to transform. |
strength | number 0.01–1 | 0.8 | Edit strength: near 0 keeps the source, 1 ignores it. |
duration | integer 1–190 | — | Length of the generated audio in seconds (1–190). Defaults to the length of the source audio. |
seed | integer | random | Fix it to compare prompt changes. |
Billing
$0.20 per generation, regardless of duration or settings.
| Request | Price |
|---|---|
| One track | $0.20 |
| 10 tracks | $2.00 |
Failed runs are not charged.
Prompting
- Describe the target style; lower
strength(around 0.5) to keep more of the source rhythm and melody.
Also on SandBase
Related: stability-ai/stable-audio/2.5/text-to-audio, stability-ai/stable-audio/2.5/inpaint, stability-ai/stable-audio/3/medium/audio-to-audio.
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/2.5/audio-to-audio",
"audio": "https://static.sandbase.ai/examples/stability-ai/stable-audio/2.5/audio-to-audio/input_audio_0.wav",
"prompt": "Post rock, guitars, bass, strings, euphoric, up-lifting, moody, flowing, raw, epic",
"strength": 0.8
}
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
5 parametri · 2 obbligatori · 3 facoltativi
| Parametro | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
audio | string | Obbligatorio | Source audio file or URL to transform. |
prompt | string | Obbligatorio | Text description of how the source audio should be transformed. |
seed | integer | Facoltativo | Random seed for reproducible outputs. |
duration | integer | Facoltativo | Length of the generated audio in seconds (1–190). Defaults to the length of the source audio. · Min: 1 · Max: 190 |
strength | number | Facoltativo | How much the output may differ from the source audio (0.01–1). Values near 0 keep the input; 1 ignores it. · Min: 0.01 · Max: 1 · Predefinito: 0.8 |
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 2.5 Audio to AudioQuesto modello Stability AI | Audio | $0.20 / esecuzione | 10 set 2025 |
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 2.5 Audio to Audio tramite SandBase?
Crea una chiave API SandBase, poi invia richieste con l'ID modello "stability-ai/stable-audio/2.5/audio-to-audio" 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 2.5 Audio to Audio e agli altri modelli del catalogo; non è necessario registrarsi separatamente su Stability AI.
