Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

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.

Preço base
$0.20USD / execução
Execução
async
Tipo de modelo
audio
Campos de entrada
6
Rota de produção

Testar o modelo

Playground

Abrir playground
Entrada
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). Intervalo: 0 a 190.
0190
End of the region to regenerate, in seconds (0–190). Must be greater than mask_start. Intervalo: 0 a 190.
1190
Length of the generated audio in seconds (1–190). Intervalo: 1 a 190.
Random seed for reproducible outputs.
SaídaPronto

Sua saída aparecerá aqui

Preencha as entradas e clique em Executar.

Cartão do modelo

Especificações

Preços

Preço base
$0.20 / execução

Contexto e modalidades

Entrada
Definido pelo schema
Saída
audio

Capacidades

Chat
Não suportado
Visão
Não suportado
Raciocínio
Não suportado
Saída estruturada
Não suportado
Chamada de função
Não suportado
Entrada de áudio
Não suportado

Acesso

Provedor
Stability AI
ID do modelo
stability-ai/stable-audio/2.5/inpaint
Execução
async
URL base
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

README da API

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.

Comece a construir

Envie sua primeira solicitação

Endpoint compatível com OpenAI com autenticação unificada e rastreamento de uso.

API de produção
endpoint Unified Run API
https://api.sandbase.ai/v1/run
ID do modelo
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

Esquema de entrada

6 parâmetros · 2 obrigatórios · 4 opcionais

ParâmetroTipoObrigatórioDescrição
audiostringObrigatórioSource audio file or URL. Only the masked region is regenerated.
promptstringObrigatórioText description of what the masked region should become.
seedintegerOpcionalRandom seed for reproducible outputs.
durationintegerOpcionalLength of the generated audio in seconds (1–190). · Mín.: 1 · Máx.: 190 · Padrão: 190
mask_endintegerOpcionalEnd of the region to regenerate, in seconds (0–190). Must be greater than mask_start. · Mín.: 0 · Máx.: 190 · Padrão: 190
mask_startintegerOpcionalStart of the region to regenerate, in seconds (0–190). · Mín.: 0 · Máx.: 190 · Padrão: 30
02

Esquema de saída

CampoTipoDescrição
idstringIdentificador exclusivo da tarefa de geração
statusstringStatus da tarefa: pending, running, completed, failed, timeout
modelstringModelo usado para a geração
outputsarrayVetor de itens de saída
outputs[].urlstringURL do artefato gerado
outputs[].content_typestringTipo MIME (por exemplo, image/png, video/mp4)
errorobject | nullDetalhes do erro se houver falha, null em caso de sucesso
error.typestringCódigo do tipo de erro legível por máquina
error.messagestringDescrição do erro legível por humanos

Fluxo assíncrono

Este modelo é executado de forma assíncrona. Envie uma solicitação e depois faça polling pelo resultado.

  1. Enviar: faça POST para /v1/run e leia o id retornado.
  2. Fazer polling: faça GET em /v1/run/{id} até o status ser completed, failed ou timeout.
  3. Recuperar: leia outputs da resposta concluída.

Escolha seu modelo

Comparar modelos

Todos os modelos de imagem e vídeo
ModeloTipoPreço padrãoLançado
Stability AIÁudio$0.20 / execução10 de set. de 2025
Stability AIÁudio$0.06 / execução3 de jun. de 2026
Stability AIÁudio$0.05 / execução3 de jun. de 2026
Stability AIÁudio$0.05 / execução3 de jun. de 2026
Stability AIÁudio$0.05 / execução3 de jun. de 2026
Stability AIÁudio$0.03 / execução3 de jun. de 2026

Perguntas

FAQ

Como faço chamadas ao Stability AI Stable Audio 2.5 Inpaint pela SandBase?

Crie uma chave de API da SandBase e depois envie solicitações com o ID do modelo "stability-ai/stable-audio/2.5/inpaint" para Unified Run API (/v1/run) em https://api.sandbase.ai. Os exemplos de requisição nesta página mostram a carga exata.

Preciso de uma conta Stability AI separada?

Não. Uma única chave de API e saldo da SandBase dão acesso a Stability AI Stable Audio 2.5 Inpaint e aos outros modelos do catálogo; você não precisa se cadastrar separadamente no Stability AI.