# Stability AI Stable Audio 3 Small Music Base Text to Audio API

> Stable Audio 3 Small Music Base by Stability AI generates music up to 2 minutes from a text prompt. It runs the non-distilled base checkpoint (50 sampling steps), which is slower and costs more than the post-trained version.

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

## Facts

- Provider: Stability AI
- Type: Audio model
- Model ID: `stability-ai/stable-audio/3/small/music/base/text-to-audio`
- Price: $0.03 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/base/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 Base Text to Audio through SandBase?

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

## README

### Stable Audio 3 Small Music Base Text to Audio

Generates music up to 2 minutes (120 s) from a text prompt. It uses the non-distilled base checkpoint (50 sampling steps).

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Text description of the audio to generate. |
| `duration` | integer 1–120 | 30 | Length of the generated audio 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.0281 per generation, regardless of duration or settings.

| Request | Price |
|---|---|
| One track | $0.0281 |
| 10 tracks | $0.281 |

Failed runs are not charged.

#### Prompting

- Name genre, instruments, tempo, and mood.

#### Also on SandBase

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