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.
- Precio base
- $0.20USD / ejecución
- Ejecución
- async
- Tipo de modelo
- audio
- Campos de entrada
- 5
Probar el modelo
Entorno de pruebas
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
Ficha del modelo
Especificaciones
Precios
- Precio base
- $0.20 / ejecución
Contexto y modalidades
- Entrada
- Definido por esquema
- Salida
- audio
Capacidades
- Chat
- No compatible
- Visión
- No compatible
- Razonamiento
- No compatible
- Salida estructurada
- No compatible
- Llamadas a funciones
- No compatible
- Entrada de audio
- No compatible
Acceso
- Proveedor
- Stability AI
- ID del modelo
- stability-ai/stable-audio/2.5/audio-to-audio
- Ejecución
- async
- URL base
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README de la 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.
Empiece a construir
Envíe su primera solicitud
Endpoint compatible con OpenAI con autenticación unificada y seguimiento de uso.
# 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"Esquema de entrada
5 parámetros · 2 obligatorios · 3 opcionales
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
audio | string | Obligatorio | Source audio file or URL to transform. |
prompt | string | Obligatorio | Text description of how the source audio should be transformed. |
seed | integer | Opcional | Random seed for reproducible outputs. |
duration | integer | Opcional | Length of the generated audio in seconds (1–190). Defaults to the length of the source audio. · Mín.: 1 · Máx.: 190 |
strength | number | Opcional | How much the output may differ from the source audio (0.01–1). Values near 0 keep the input; 1 ignores it. · Mín.: 0.01 · Máx.: 1 · Valor predeterminado: 0.8 |
Esquema de salida
| Campo | Tipo | Descripción |
|---|---|---|
id | string | Identificador único de la tarea de generación |
status | string | Estado de la tarea: pending, running, completed, failed, timeout |
model | string | Modelo usado para la generación |
outputs | array | Matriz de elementos de salida |
outputs[].url | string | URL del artefacto generado |
outputs[].content_type | string | Tipo MIME (por ejemplo, image/png, video/mp4) |
error | object | null | Detalles del error si falla; null en caso de éxito |
error.type | string | Código de tipo de error legible por máquina |
error.message | string | Descripción del error legible por humanos |
Flujo asíncrono
Este modelo se ejecuta de forma asíncrona. Envía una solicitud y luego consulta el resultado.
- Enviar: haz POST a /v1/run y lee el
iddevuelto. - Consultar: haz GET a /v1/run/{id} hasta que el estado sea
completed,failedotimeout. - Recuperar: lee
outputsde la respuesta completada.
Elija su modelo
Comparar modelos
| Modelo | Tipo | Precio predeterminado | Lanzamiento |
|---|---|---|---|
Stable Audio 2.5 Audio to AudioEste modelo Stability AI | Audio | $0.20 / ejecución | 10 sept 2025 |
Stability AI | Audio | $0.06 / ejecución | 3 jun 2026 |
Stability AI | Audio | $0.05 / ejecución | 3 jun 2026 |
Stability AI | Audio | $0.05 / ejecución | 3 jun 2026 |
Stability AI | Audio | $0.05 / ejecución | 3 jun 2026 |
Stability AI | Audio | $0.03 / ejecución | 3 jun 2026 |
Preguntas
FAQ
¿Cómo llamo a Stability AI Stable Audio 2.5 Audio to Audio a través de SandBase?
Crea una clave API de SandBase y luego envía solicitudes con el ID de modelo "stability-ai/stable-audio/2.5/audio-to-audio" a Unified Run API (/v1/run) en https://api.sandbase.ai. Los ejemplos de solicitud de esta página muestran el payload exacto.
¿Necesito una cuenta separada de Stability AI?
No. Una sola clave API y saldo de SandBase te dan acceso a Stability AI Stable Audio 2.5 Audio to Audio y a los demás modelos del catálogo; no necesitas registrarte aparte en Stability AI.
