SandBase is live — $1 in free credits on signupStart free ›
Use in agentace models

ace modelsaudio generation api

ace/ace-step/audio-inpaint

Ace Step Audio Inpaint by ace - advanced AI model for audio-to-audio. Delivers high-quality results with fast inference, suitable for both creative and production workflows.

Input
URL of the audio file to be inpainted.
Lyrics to be sung in the audio. If not provided or if [inst] or [instrumental] is the content of this field, no lyrics will be sung. Use control structures like [verse], [chorus] and [bridge] to control the structure of the song.
0200
Guidance scale for the generation. Range: 0 to 200.
Random seed for reproducibility. If not provided, a random seed will be used.
Type of CFG to use for the generation process. Allowed values: cfg, apg, cfg_star.
Comma-separated list of genre tags to control the style of the generated audio.
-100100
Granularity scale for the generation process. Higher values can reduce artifacts. Range: -100 to 100.
Scheduler to use for the generation process. Allowed values: euler, heun.
01
Guidance interval for the generation. 0.5 means only apply guidance in the middle steps (0.25 * infer_steps to 0.75 * infer_steps) Range: 0 to 1.
0200
Minimum guidance scale for the generation after the decay. Range: 0 to 200.
0240
start time in seconds for the inpainting process. Range: 0 to 240.
010
Lyric guidance scale for the generation. Range: 0 to 10.
360
Number of steps to generate the audio. Range: 3 to 60.
01
Variance for the inpainting process. Higher values can lead to more diverse results. Range: 0 to 1.
0240
end time in seconds for the inpainting process. Range: 0 to 240.
01
Guidance interval decay for the generation. Guidance scale will decay from guidance_scale to min_guidance_scale in the interval. 0.0 means no decay. Range: 0 to 1.
Whether the start time is relative to the start or end of the audio. Allowed values: start, end.
010
Tag guidance scale for the generation. Range: 0 to 10.
Whether the end time is relative to the start or end of the audio. Allowed values: start, end.
Idle

Example output — click Run to generate your own

API README

ACE-Step

ACE-Step Audio Inpaint regenerates a selected time region inside an existing audio file while keeping the surrounding material as context. It is intended for repairing or rewriting a musical passage without rebuilding the entire track from the beginning.

Creators can define the replacement interval relative to the start or end, then guide the new passage with tags, lyrics, and a variance setting. The broader ACE-Step sampling and guidance controls remain available for balancing continuity with creative change.

Highlights

Time-range regeneration. Replaces a chosen region inside existing audio instead of regenerating the whole track.

Context-aware continuity. Uses the surrounding recording to help the repaired section connect with adjacent music.

Controllable variation. A variance control balances faithfulness to the source against a more substantial rewrite.

Music-aware guidance. Tags, lyrics, seed, scheduler, and separate guidance scales shape the inserted passage.

Pricing

Billing unitPrice
Per generated second$0.0002

When to Use

✅ Good fit❌ Consider alternatives
A selected time region in existing audio needs regenerationThe entire track should be recomposed
A managed asynchronous result is suitable for the production pipelineA synchronous, interactive editor is essential
The documented controls cover the required duration, framing, or formatThe project needs controls outside this endpoint's schema
Creative iteration benefits from a repeatable request structureExact deterministic pixels, frames, geometry, or samples are mandatory
A finished downloadable media asset is the desired deliverableEditable source layers or a native project file are required

Prompt Guide

For music generation, state the intended result first, then add the subject or source treatment, progression, style, and delivery constraints. Keep one creative variable per phrase, use the documented field names for controls, and change one setting at a time when comparing results.

{
  "audio": "https://static.sandbase.ai/examples/ace/ace-step/audio-inpaint/input_audio_0.wav"
}

Technical Specs

SpecValue
Model IDace/ace-step/audio-inpaint
Inputsaudio, end_time, end_time_relative_to, granularity_scale, guidance_interval, guidance_interval_decay, guidance_scale, guidance_type, lyric_guidance_scale, lyrics, minimum_guidance_scale, number_of_steps, scheduler, seed, start_time, start_time_relative_to, tag_guidance_scale, tags, variance
Required inputsNone
Output fieldscontent_type, url
ExecutionAsync (submit, then poll for result)

Related Models

Related Models