ACE-Step Audio Inpaint
ace/ace-step/audio-inpaintACE-Step Audio Inpaint regenerates a chosen time range inside an existing song from genre tags and lyrics, keeping the surrounding audio as context.
- Prix de base
- $0.01USD / exécution
- Exécution
- async
- Type de modèle
- audio
- Champs d'entrée
- 9
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.01 / 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
- ACE Studio
- ID du modèle
- ace/ace-step/audio-inpaint
- Exécution
- async
- URL de base
- https://api.sandbase.ai
- API
- Unified Run API
- Point de terminaison
- /v1/run
README de l'API
ACE-Step Audio Inpaint
ACE-Step Audio Inpaint rewrites one time range of a song from tags and lyrics and keeps the rest.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
audio | audio file or URL, required | — | Source song. |
tags | string, required | — | Style for the new region. |
lyrics | string | "" | Lyrics for the new region. |
start_time | number 0–240 | 0 | Region start in seconds. |
end_time | number 0–240 | 30 | Region end in seconds. |
start_time_relative_to | start / end | start | Count start_time from the start or the end. |
end_time_relative_to | start / end | start | Count end_time from the start or the end. |
variance | number 0–1 | 0.5 | Higher gives more change. |
seed | integer | random | Fix it to compare changes. |
Output
| Field | Notes |
|---|---|
url | WAV file. |
tags | Genre tags used. |
lyrics | Lyrics used. |
seed | Seed used; pass it back to reproduce. |
Billing
$0.0002 per second of generated audio. The quote uses the source audio length; the final charge uses the output length.
| Length | Price |
|---|---|
| 30 s | $0.006 |
| 60 s | $0.012 |
| 240 s | $0.048 |
Failed runs are not charged.
Prompting
- Keep the region short and the tags close to the source so the edges blend.
Also on SandBase
Related: ace/ace-step, ace/ace-step/prompt-to-audio, ace/ace-step/audio-to-audio, ace/ace-step/audio-outpaint.
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": "ace/ace-step/audio-inpaint",
"tags": "lofi, hiphop, drum and bass, trap, chill",
"audio": "https://static.sandbase.ai/examples/ace/ace-step/audio-inpaint/input_audio_0.wav",
"end_time": 30,
"variance": 0.5,
"start_time": 0,
"end_time_relative_to": "start",
"start_time_relative_to": "start"
}
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
9 paramètres · 2 obligatoires · 7 facultatifs
| Paramètre | Type | Obligatoire | Description |
|---|---|---|---|
tags | string | Obligatoire | Comma-separated genre and style tags that control the generated audio. |
audio | string | Obligatoire | Source song file or URL to inpaint. |
seed | integer | Facultatif | Random seed for reproducible results. Leave empty for a random seed. |
lyrics | string | Facultatif | Lyrics to sing. Leave empty or use [inst] / [instrumental] for no vocals. Use structure tags such as [verse], [chorus], and [bridge]. · Par défaut : "" |
end_time | number | Facultatif | End of the region to regenerate, in seconds. · Min : 0 · Max : 240 · Par défaut : 30 |
variance | number | Facultatif | How far the new region may depart from the original (0–1). Higher values give more varied results. · Min : 0 · Max : 1 · Par défaut : 0.5 |
start_time | number | Facultatif | Start of the region to regenerate, in seconds. · Min : 0 · Max : 240 · Par défaut : 0 |
end_time_relative_to | string | Facultatif | Whether end_time counts from the start or the end of the audio. · Options : start, end · Par défaut : "start" startend |
start_time_relative_to | string | Facultatif | Whether start_time counts from the start or the end of the audio. · Options : start, end · Par défaut : "start" startend |
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 |
|---|---|---|---|
ACE-Step Audio InpaintCe modèle ACE Studio | Audio | $0.01 / exécution | 11 mai 2025 |
ACE Studio | Audio | $0.02 / exécution | 11 mai 2025 |
ACE Studio | Audio | $0.01 / exécution | 11 mai 2025 |
ACE Studio | Audio | $0.01 / exécution | 11 mai 2025 |
ACE Studio | Audio | $0.01 / exécution | 8 mai 2025 |
Questions
FAQ
Comment appeler ACE Studio ACE-Step Audio Inpaint via SandBase ?
Créez une clé API SandBase, puis envoyez des requêtes avec l’identifiant de modèle "ace/ace-step/audio-inpaint" à 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 ACE Studio distinct ?
Non. Une seule clé API SandBase et un seul solde vous donnent accès à ACE Studio ACE-Step Audio Inpaint et aux autres modèles du catalogue ; vous n’avez pas besoin de créer un compte ACE Studio séparément.
