# stability-ai Stable Audio 3 Small Music API

> Stable Audio 3 Small Music by Stability AI is a fast, low-cost music generator producing tracks up to 2 minutes from a text prompt.

Source: https://www.sandbase.ai/models/stability-ai/stable-audio/3/small/music/text-to-audio
API reference: https://www.sandbase.ai/models/stability-ai/stable-audio/3/small/music/text-to-audio/docs

## Facts

- Provider: stability-ai
- Type: Audio model
- Model ID: `stability-ai/stable-audio/3/small/music/text-to-audio`
- Price: $0.02 per run
- Capabilities: text to music
- 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/small/music/text-to-audio",
  "prompt": "An anthemic Pop Rock instrumental that fills your head with nostalgic thoughtfulness",
  "duration": 30,
  "output_format": "mp3"
}'
```

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 Small Music through SandBase?

Create a SandBase API key, then send requests with the model ID "stability-ai/stable-audio/3/small/music/text-to-audio" 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 Small Music and the other models in the catalog; you do not need to sign up with stability-ai separately.

## README

### Stable Audio 3 Small Music

Stable Audio 3 Small Music: fast, low-cost music tracks up to 2 minutes.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Text instruction. |
| `duration` | integer 1–120 | 30 | Length in seconds (1–120). |
| `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.0217 per generation.

| Request | Price |
|---|---|
| One track | $0.0217 |

Failed runs are not charged.

#### Prompting

- Name genre, instruments, tempo, and mood.

#### Also on SandBase

Related: `stability-ai/stable-audio/3/medium/text-to-audio`.
