# ACE Studio ACE-Step Audio Outpaint API

> ACE-Step Audio Outpaint extends an existing song before its start, after its end, or both, generating up to 107 seconds on each side from genre tags and lyrics.

Source: https://www.sandbase.ai/models/ace/ace-step/audio-outpaint
API reference: https://www.sandbase.ai/models/ace/ace-step/audio-outpaint#api

## Facts

- Provider: ACE Studio
- Type: Audio model
- Model ID: `ace/ace-step/audio-outpaint`
- Price: From $0.02 per run
- Capabilities: audio to audio
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "ace/ace-step/audio-outpaint",
  "tags": "lofi, hiphop, drum and bass, trap, chill",
  "audio": "https://storage.googleapis.com/falserverless/example_inputs/ace-step-audio-to-audio.wav",
  "extend_after_duration": 30,
  "extend_before_duration": 0
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call ACE Studio ACE-Step Audio Outpaint through SandBase?

Create a SandBase API key, then send requests with the model ID "ace/ace-step/audio-outpaint" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate ACE Studio account?

No. One SandBase API key and balance gives you access to ACE Studio ACE-Step Audio Outpaint and the other models in the catalog; you do not need to sign up with ACE Studio separately.

## README

### ACE-Step Audio Outpaint

ACE-Step Audio Outpaint adds new music before and/or after a song, up to 107 seconds on each side.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `audio` | audio file or URL, required | — | Source song. |
| `tags` | string, required | — | Style for the new parts. |
| `lyrics` | string | `""` | Lyrics for the new parts. |
| `extend_before_duration` | number 0–107 | 0 | Seconds to add at the start. |
| `extend_after_duration` | number 0–107 | 30 | Seconds to add at the end. |
| `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 assumes the output is the source plus the added seconds; the final charge uses the output length.

| Source + added | Price |
|---|---|
| 60 s + 30 s | $0.018 |
| 120 s + 60 s | $0.036 |
| 30 s + 214 s | $0.0488 |

Failed runs are not charged.

#### Prompting

- Use tags close to the source so the new parts match.

#### Also on SandBase

Related: `ace/ace-step`, `ace/ace-step/prompt-to-audio`, `ace/ace-step/audio-to-audio`, `ace/ace-step/audio-inpaint`.
