# Stability AI Stable Audio 3 Medium Audio Outpainting API

> Stable Audio 3 Medium by Stability AI extends an existing clip with new audio before or after it, guided by a text prompt.

Source: https://www.sandbase.ai/models/stability-ai/stable-audio/3/medium/audio-outpainting
API reference: https://www.sandbase.ai/models/stability-ai/stable-audio/3/medium/audio-outpainting#api

## Facts

- Provider: Stability AI
- Type: Audio model
- Model ID: `stability-ai/stable-audio/3/medium/audio-outpainting`
- Price: $0.04 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": "stability-ai/stable-audio/3/medium/audio-outpainting",
  "audio": "https://storage.googleapis.com/falserverless/model_tests/diffrythm/rock_en.wav",
  "prompt": "soft strings continue the melody",
  "output_format": "mp3",
  "extend_seconds_after": 30,
  "extend_seconds_before": 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 Stability AI Stable Audio 3 Medium Audio Outpainting through SandBase?

Create a SandBase API key, then send requests with the model ID "stability-ai/stable-audio/3/medium/audio-outpainting" 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 Stability AI account?

No. One SandBase API key and balance gives you access to Stability AI Stable Audio 3 Medium Audio Outpainting and the other models in the catalog; you do not need to sign up with Stability AI separately.

## README

### Stable Audio 3 Medium Audio Outpainting

Extends a source clip before and/or after it with new audio from a prompt (up to 380 s each side).

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Text description of the extension content. |
| `audio` | audio file or URL, required | — | Source audio file or URL to extend. |
| `extend_seconds_after` | number 0–380 | 0 | New audio appended after the source, in seconds. |
| `extend_seconds_before` | number 0–380 | 0 | New audio prepended before the source, in seconds. |
| `output_format` | `mp3` / `wav` / `flac` / `ogg` / `opus` / `m4a` / `aac` | `mp3` | Output file format. |
| `negative_prompt` | string | — | What to avoid. |
| `seed` | integer | random | Fix it to compare prompt changes. |

#### Billing

$0.0446 per generation, regardless of duration or settings.

| Request | Price |
|---|---|
| One track | $0.0446 |
| 10 tracks | $0.446 |

Failed runs are not charged.

#### Prompting

- Describe how the music or sound should continue; set at least one of `extend_seconds_after` / `extend_seconds_before` above 0.

#### Also on SandBase

Related: `stability-ai/stable-audio/3/medium/text-to-audio`, `stability-ai/stable-audio/3/medium/audio-to-audio`, `stability-ai/stable-audio/3/medium/audio-inpainting`, `stability-ai/stable-audio/3/medium/base/audio-outpainting`.
