# ACE Step Edit · Audio Inpaint

Edit and transform audio with ACE Step Edit · Audio Inpaint from fal through one Spiral API key. It runs in the background and returns audio. Pay as you go, with no subscription.

- Provider: fal
- Category: Audio
- Runs: In the background
- Returns: audio
- Tool id: `fal` / `fal-ai/ace-step/audio-inpaint`
- Page: https://spiral.ai/tools/fal/fal-ai/ace-step/audio-inpaint

## Pricing

Up to $0.0156 per run at the default inputs for 60 seconds of input.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 30 minutes
- Longest run, end to end: 255 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `audio_url` (required) | URL or file |  | — | URL of the audio file to be inpainted. |
| `start_time_relative_to` | one of | start, end | start | Whether the start time is relative to the start or end of the audio. |
| `start_time` | number | 0 to 240 | 0 | start time in seconds for the inpainting process. |
| `end_time_relative_to` | one of | start, end | start | Whether the end time is relative to the start or end of the audio. |
| `end_time` | number | 0 to 240 | 30 | end time in seconds for the inpainting process. |
| `tags` (required) | text |  | — | Comma-separated list of genre tags to control the style of the generated audio. Can also be supplied as `prompt`. |
| `lyrics` | text |  |  | 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. |
| `variance` | number | 0 to 1 | 0.5 | Variance for the inpainting process. Higher values can lead to more diverse results. |
| `number_of_steps` | number (whole) | 3 to 60 | 27 | Number of steps to generate the audio. |
| `seed` | number (whole) |  | — | Random seed for reproducibility. If not provided, a random seed will be used. |
| `scheduler` | one of | euler, heun | euler | Scheduler to use for the generation process. |
| `guidance_type` | one of | cfg, apg, cfg_star | apg | Type of CFG to use for the generation process. |
| `granularity_scale` | number (whole) | -100 to 100 | 10 | Granularity scale for the generation process. Higher values can reduce artifacts. |
| `guidance_interval` | number | 0 to 1 | 0.5 | Guidance interval for the generation. 0.5 means only apply guidance in the middle steps (0.25 * infer_steps to 0.75 * infer_steps) |
| `guidance_interval_decay` | number | 0 to 1 | 0 | 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. |
| `guidance_scale` | number | 0 to 200 | 15 | Guidance scale for the generation. |
| `minimum_guidance_scale` | number | 0 to 200 | 3 | Minimum guidance scale for the generation after the decay. |
| `tag_guidance_scale` | number | 0 to 10 | 5 | Tag guidance scale for the generation. |
| `lyric_guidance_scale` | number | 0 to 10 | 1.5 | Lyric guidance scale for the generation. |

## Example

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "fal-ai/ace-step/audio-inpaint",
    "input": {
      "audio_url": "https://storage.googleapis.com/falserverless/example_inputs/ace-step-audio-to-audio.wav",
      "tags": "lofi, hiphop, drum and bass, trap, chill"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=fal&model=fal-ai%2Face-step%2Faudio-inpaint

## Common questions

### ACE Step Edit · Audio Inpaint

**How much does ACE Step Edit · Audio Inpaint cost?**

Up to $0.0156 per run at the default inputs for 60 seconds of input. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use ACE Step Edit · Audio Inpaint through an API?**

Send `POST /v1/runs` with `"provider": "fal"`, `"model": "fal-ai/ace-step/audio-inpaint"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with fal to use ACE Step Edit · Audio Inpaint?**

No. Spiral runs it on its own fal account and charges your Spiral balance.

**Can my AI agent use ACE Step Edit · Audio Inpaint?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

