Stable Audio 3 Medium Audio Inpainting
stability-ai/stable-audio/3/medium/audio-inpaintingStable Audio 3 Medium by Stability AI regenerates a chosen time range inside an existing clip from a text prompt and leaves the rest untouched.
- Precio base
- $0.04USD / ejecución
- Ejecución
- async
- Tipo de modelo
- audio
- Campos de entrada
- 7
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.04 / 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/3/medium/audio-inpainting
- Ejecución
- async
- URL base
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README de la API
Stable Audio 3 Medium Audio Inpainting
Regenerates one time range of a source clip from a prompt (mask up to 380 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–380, required | — | Start of the region to regenerate, in seconds. |
mask_end_seconds | number 0–380, 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.0442 per generation, regardless of duration or settings.
| Request | Price |
|---|---|
| One track | $0.0442 |
| 10 tracks | $0.442 |
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/medium/text-to-audio, stability-ai/stable-audio/3/medium/audio-to-audio, stability-ai/stable-audio/3/medium/audio-outpainting, stability-ai/stable-audio/3/medium/base/audio-inpainting.
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/3/medium/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"Esquema de entrada
7 parámetros · 4 obligatorios · 3 opcionales
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
audio | string | Obligatorio | Source audio file or URL. Only the masked region is regenerated. |
prompt | string | Obligatorio | Text description of what the masked region should become. |
mask_end_seconds | number | Obligatorio | End of the region to regenerate, in seconds (0–380). Must be greater than mask_start_seconds. · Mín.: 0 · Máx.: 380 |
mask_start_seconds | number | Obligatorio | Start of the region to regenerate, in seconds (0–380). · Mín.: 0 · Máx.: 380 |
seed | integer | Opcional | Random seed for reproducible outputs. |
output_format | string | Opcional | Audio container format. · Opciones: mp3, wav, flac, ogg, opus, m4a, aac · Valor predeterminado: "mp3" mp3wavflacoggopusm4aaac |
negative_prompt | string | Opcional | Qualities to avoid in the output. · Valor predeterminado: "" |
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 3 Medium Audio InpaintingEste modelo Stability AI | Audio | $0.04 / ejecución | 3 jun 2026 |
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 3 Medium Audio Inpainting 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/3/medium/audio-inpainting" 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 3 Medium Audio Inpainting y a los demás modelos del catálogo; no necesitas registrarte aparte en Stability AI.
