Stable Audio 3 Small Music Audio Inpainting
stability-ai/stable-audio/3/small/music/audio-inpaintingStable Audio 3 Small Music by Stability AI regenerates a chosen time range inside an existing clip from a text prompt and leaves the rest untouched.
- Prix de base
- $0.03USD / exécution
- Exécution
- async
- Type de modèle
- audio
- Champs d'entrée
- 7
Essayer le modèle
Bac à sable
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
Fiche modèle
Spécifications
Tarification
- Prix de base
- $0.03 / exécution
Contexte et modalités
- Entrée
- Défini par le schéma
- Sortie
- audio
Fonctionnalités
- Chat
- Non pris en charge
- Vision
- Non pris en charge
- Raisonnement
- Non pris en charge
- Sortie structurée
- Non pris en charge
- Appel de fonction
- Non pris en charge
- Entrée audio
- Non pris en charge
Accès
- Fournisseur
- Stability AI
- ID du modèle
- stability-ai/stable-audio/3/small/music/audio-inpainting
- Exécution
- async
- URL de base
- https://api.sandbase.ai
- API
- Unified Run API
- Point de terminaison
- /v1/run
README de l'API
Stable Audio 3 Small Music Audio Inpainting
Regenerates one time range of a source clip from a prompt (mask up to 120 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–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.026 per generation, regardless of duration or settings.
| Request | Price |
|---|---|
| One track | $0.026 |
| 10 tracks | $0.26 |
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/text-to-audio, stability-ai/stable-audio/3/small/music/audio-to-audio, stability-ai/stable-audio/3/small/music/audio-outpainting, stability-ai/stable-audio/3/small/music/base/audio-inpainting.
Commencer à construire
Envoyez votre première requête
Point de terminaison compatible OpenAI avec authentification unifiée et suivi de l'utilisation.
# 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/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"Schéma d'entrée
7 paramètres · 4 obligatoires · 3 facultatifs
| Paramètre | Type | Obligatoire | Description |
|---|---|---|---|
audio | string | Obligatoire | Source audio file or URL. Only the masked region is regenerated. |
prompt | string | Obligatoire | Text description of what the masked region should become. |
mask_end_seconds | number | Obligatoire | End of the region to regenerate, in seconds (0–120). Must be greater than mask_start_seconds. · Min : 0 · Max : 120 |
mask_start_seconds | number | Obligatoire | Start of the region to regenerate, in seconds (0–120). · Min : 0 · Max : 120 |
seed | integer | Facultatif | Random seed for reproducible outputs. |
output_format | string | Facultatif | Audio container format. · Options : mp3, wav, flac, ogg, opus, m4a, aac · Par défaut : "mp3" mp3wavflacoggopusm4aaac |
negative_prompt | string | Facultatif | Qualities to avoid in the output. · Par défaut : "" |
Schéma de sortie
| Champ | Type | Description |
|---|---|---|
id | string | Identifiant unique de la tâche de génération |
status | string | Statut de la tâche : pending, running, completed, failed, timeout |
model | string | Modèle utilisé pour la génération |
outputs | array | Tableau des éléments de sortie |
outputs[].url | string | URL de l'artefact généré |
outputs[].content_type | string | Type MIME (par ex. image/png, video/mp4) |
error | object | null | Détails de l'erreur en cas d'échec, null en cas de succès |
error.type | string | Code de type d'erreur lisible par machine |
error.message | string | Description de l'erreur lisible par l'humain |
Flux de travail asynchrone
Ce modèle s’exécute de manière asynchrone. Envoyez une requête, puis interrogez le résultat.
- Envoyer : faites un POST vers /v1/run et lisez le
idrenvoyé. - Interroger : faites un GET sur /v1/run/{id} jusqu’à ce que le statut soit
completed,failedoutimeout. - Récupérer : lisez
outputsdans la réponse terminée.
Choisissez votre modèle
Comparer les modèles
| Modèle | Type | Prix par défaut | Lancement |
|---|---|---|---|
Stability AI | Audio | $0.03 / exécution | 3 juin 2026 |
Stability AI | Audio | $0.06 / exécution | 3 juin 2026 |
Stability AI | Audio | $0.05 / exécution | 3 juin 2026 |
Stability AI | Audio | $0.05 / exécution | 3 juin 2026 |
Stability AI | Audio | $0.05 / exécution | 3 juin 2026 |
Stability AI | Audio | $0.03 / exécution | 3 juin 2026 |
Questions
FAQ
Comment appeler Stability AI Stable Audio 3 Small Music Audio Inpainting via SandBase ?
Créez une clé API SandBase, puis envoyez des requêtes avec l’identifiant de modèle "stability-ai/stable-audio/3/small/music/audio-inpainting" à Unified Run API (/v1/run) sur https://api.sandbase.ai. Les exemples de requêtes sur cette page montrent la charge utile exacte.
Ai-je besoin d’un compte Stability AI distinct ?
Non. Une seule clé API SandBase et un seul solde vous donnent accès à Stability AI Stable Audio 3 Small Music Audio Inpainting et aux autres modèles du catalogue ; vous n’avez pas besoin de créer un compte Stability AI séparément.
