Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

ACE-Step Audio Inpaint

ace/ace-step/audio-inpaint

ACE-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
Route de production

Essayer le modèle

Bac à sable

Ouvrir le Playground
Entrée
Source song file or URL to inpaint.
Comma-separated genre and style tags that control the generated audio.
Lyrics to sing. Leave empty or use [inst] / [instrumental] for no vocals. Use structure tags such as [verse], [chorus], and [bridge].
0240
Start of the region to regenerate, in seconds. Plage : de 0 à 240.
0240
End of the region to regenerate, in seconds. Plage : de 0 à 240.
Whether start_time counts from the start or the end of the audio.
Whether end_time counts from the start or the end of the audio.
01
How far the new region may depart from the original (0–1). Higher values give more varied results. Plage : de 0 à 1.
Random seed for reproducible results. Leave empty for a random seed.
SortiePrêt

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

FieldTypeDefaultNotes
audioaudio file or URL, required—Source song.
tagsstring, required—Style for the new region.
lyricsstring""Lyrics for the new region.
start_timenumber 0–2400Region start in seconds.
end_timenumber 0–24030Region end in seconds.
start_time_relative_tostart / endstartCount start_time from the start or the end.
end_time_relative_tostart / endstartCount end_time from the start or the end.
variancenumber 0–10.5Higher gives more change.
seedintegerrandomFix it to compare changes.

Output

FieldNotes
urlWAV file.
tagsGenre tags used.
lyricsLyrics used.
seedSeed 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.

LengthPrice
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.

API de production
point de terminaison Unified Run API
https://api.sandbase.ai/v1/run
ID du modèle
ace/ace-step/audio-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": "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"
01

Schéma d'entrée

9 paramètres · 2 obligatoires · 7 facultatifs

ParamètreTypeObligatoireDescription
tagsstringObligatoireComma-separated genre and style tags that control the generated audio.
audiostringObligatoireSource song file or URL to inpaint.
seedintegerFacultatifRandom seed for reproducible results. Leave empty for a random seed.
lyricsstringFacultatifLyrics to sing. Leave empty or use [inst] / [instrumental] for no vocals. Use structure tags such as [verse], [chorus], and [bridge]. · Par défaut : ""
end_timenumberFacultatifEnd of the region to regenerate, in seconds. · Min : 0 · Max : 240 · Par défaut : 30
variancenumberFacultatifHow 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_timenumberFacultatifStart of the region to regenerate, in seconds. · Min : 0 · Max : 240 · Par défaut : 0
end_time_relative_tostringFacultatifWhether end_time counts from the start or the end of the audio. · Options : start, end · Par défaut : "start"
startend
start_time_relative_tostringFacultatifWhether start_time counts from the start or the end of the audio. · Options : start, end · Par défaut : "start"
startend
02

Schéma de sortie

ChampTypeDescription
idstringIdentifiant unique de la tâche de génération
statusstringStatut de la tâche : pending, running, completed, failed, timeout
modelstringModèle utilisé pour la génération
outputsarrayTableau des éléments de sortie
outputs[].urlstringURL de l'artefact généré
outputs[].content_typestringType MIME (par ex. image/png, video/mp4)
errorobject | nullDétails de l'erreur en cas d'échec, null en cas de succès
error.typestringCode de type d'erreur lisible par machine
error.messagestringDescription 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.

  1. Envoyer : faites un POST vers /v1/run et lisez le id renvoyé.
  2. Interroger : faites un GET sur /v1/run/{id} jusqu’à ce que le statut soit completed, failed ou timeout.
  3. Récupérer : lisez outputs dans la réponse terminée.

Choisissez votre modèle

Comparer les modèles

Tous les modèles d’image et de vidéo
ModèleTypePrix par défautLancement
ACE StudioAudio$0.01 / exécution11 mai 2025
ACE StudioAudio$0.02 / exécution11 mai 2025
ACE StudioAudio$0.01 / exécution11 mai 2025
ACE StudioAudio$0.01 / exécution11 mai 2025
ACE StudioAudio$0.01 / exécution8 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.