Stable Audio 3 Small Music Base Audio Inpainting
stability-ai/stable-audio/3/small/music/base/audio-inpaintingStable Audio 3 Small Music Base by Stability AI regenerates a chosen time range inside an existing clip from a text prompt and leaves the rest untouched. It runs the non-distilled base checkpoint (50 sampling steps), which is slower and costs more than the post-trained version.
- Preço base
- $0.03USD / execução
- Execução
- async
- Tipo de modelo
- audio
- Campos de entrada
- 7
Testar o modelo
Playground
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
Cartão do modelo
Especificações
Preços
- Preço base
- $0.03 / 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/3/small/music/base/audio-inpainting
- Execução
- async
- URL base
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README da API
Stable Audio 3 Small Music Base Audio Inpainting
Regenerates one time range of a source clip from a prompt (mask up to 120 s) and keeps the rest. It uses the non-distilled base checkpoint (50 sampling steps).
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.0333 per generation, regardless of duration or settings.
| Request | Price |
|---|---|
| One track | $0.0333 |
| 10 tracks | $0.333 |
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/base/text-to-audio, stability-ai/stable-audio/3/small/music/base/audio-to-audio, stability-ai/stable-audio/3/small/music/base/audio-outpainting, stability-ai/stable-audio/3/small/music/audio-inpainting.
Comece a construir
Envie sua primeira solicitação
Endpoint compatível com OpenAI com autenticação unificada e rastreamento 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/small/music/base/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 obrigatórios · 3 opcionais
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
audio | string | Obrigatório | Source audio file or URL. Only the masked region is regenerated. |
prompt | string | Obrigatório | Text description of what the masked region should become. |
mask_end_seconds | number | Obrigatório | End of the region to regenerate, in seconds (0–120). Must be greater than mask_start_seconds. · Mín.: 0 · Máx.: 120 |
mask_start_seconds | number | Obrigatório | Start of the region to regenerate, in seconds (0–120). · Mín.: 0 · Máx.: 120 |
seed | integer | Opcional | Random seed for reproducible outputs. |
output_format | string | Opcional | Audio container format. · Opções: mp3, wav, flac, ogg, opus, m4a, aac · Padrão: "mp3" mp3wavflacoggopusm4aaac |
negative_prompt | string | Opcional | Qualities to avoid in the output. · Padrão: "" |
Esquema de saída
| Campo | Tipo | Descrição |
|---|---|---|
id | string | Identificador exclusivo da tarefa de geração |
status | string | Status da tarefa: pending, running, completed, failed, timeout |
model | string | Modelo usado para a geração |
outputs | array | Vetor de itens de saída |
outputs[].url | string | URL do artefato gerado |
outputs[].content_type | string | Tipo MIME (por exemplo, image/png, video/mp4) |
error | object | null | Detalhes do erro se houver falha, null em caso de sucesso |
error.type | string | Código do tipo de erro legível por máquina |
error.message | string | Descriçã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.
- Enviar: faça POST para /v1/run e leia o
idretornado. - Fazer polling: faça GET em /v1/run/{id} até o status ser
completed,failedoutimeout. - Recuperar: leia
outputsda resposta concluída.
Escolha seu modelo
Comparar modelos
| Modelo | Tipo | Preço padrão | Lançado |
|---|---|---|---|
Stability AI | Áudio | $0.03 / execução | 3 de jun. de 2026 |
Stability AI | Áudio | $0.06 / execução | 3 de jun. de 2026 |
Stability AI | Áudio | $0.05 / execução | 3 de jun. de 2026 |
Stability AI | Áudio | $0.05 / execução | 3 de jun. de 2026 |
Stability AI | Áudio | $0.05 / execução | 3 de jun. de 2026 |
Stability AI | Áudio | $0.03 / execução | 3 de jun. de 2026 |
Perguntas
FAQ
Como faço chamadas ao Stability AI Stable Audio 3 Small Music Base Audio Inpainting pela SandBase?
Crie uma chave de API da SandBase e depois envie solicitações com o ID do modelo "stability-ai/stable-audio/3/small/music/base/audio-inpainting" 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 3 Small Music Base Audio Inpainting e aos outros modelos do catálogo; você não precisa se cadastrar separadamente no Stability AI.
