# Stability AI Stable Audio 2.5 Text to Audio API

> Stable Audio 2.5 by Stability AI generates music, ambience and sound effects up to 190 seconds from a text prompt.

Source: https://www.sandbase.ai/models/stability-ai/stable-audio/2.5/text-to-audio
API reference: https://www.sandbase.ai/models/stability-ai/stable-audio/2.5/text-to-audio#api

## Facts

- Provider: Stability AI
- Type: Audio model
- Model ID: `stability-ai/stable-audio/2.5/text-to-audio`
- Price: $0.20 per run
- Capabilities: text 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/2.5/text-to-audio",
  "prompt": "A beautiful piano arpeggio grows into a grand orchestral climax",
  "duration": 190
}'
```

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 2.5 Text to Audio through SandBase?

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

## README

### Stable Audio 2.5 Text to Audio

Generates music, ambience, and sound effects up to 190 seconds from a text prompt.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Text description of the audio to generate. |
| `duration` | integer 1–190 | 190 | Length of the generated audio in seconds (1–190). |
| `seed` | integer | random | Fix it to compare prompt changes. |

#### Billing

$0.20 per generation, regardless of duration or settings.

| Request | Price |
|---|---|
| One track | $0.20 |
| 10 tracks | $2.00 |

Failed runs are not charged.

#### Prompting

- Name genre, instruments, tempo, and mood.

#### Also on SandBase

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