# SandBase AI MMAudio V2 Text to Audio API

> MMAudio V2 generates sound effects and ambient audio from a text prompt, up to 30 seconds long. A negative prompt steers the result away from unwanted sounds.

Source: https://www.sandbase.ai/models/sandbase-ai/mmaudio-v2/text-to-audio
API reference: https://www.sandbase.ai/models/sandbase-ai/mmaudio-v2/text-to-audio#api

## Facts

- Provider: SandBase AI
- Type: Audio model
- Model ID: `sandbase-ai/mmaudio-v2/text-to-audio`
- Price: From $0.008 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": "sandbase-ai/mmaudio-v2/text-to-audio",
  "prompt": "Indian holy music",
  "duration": 8
}'
```

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 SandBase AI MMAudio V2 Text to Audio through SandBase?

Create a SandBase API key, then send requests with the model ID "sandbase-ai/mmaudio-v2/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 SandBase AI account?

No. One SandBase API key and balance gives you access to SandBase AI MMAudio V2 Text to Audio and the other models in the catalog; you do not need to sign up with SandBase AI separately.

## README

### MMAudio V2 Text to Audio

MMAudio V2 generates sound effects and ambience from a text prompt, 1 to 30 seconds long.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Sound to generate. |
| `duration` | number 1–30 | 8 | Length in seconds; sets the price. |
| `negative_prompt` | string | empty | What to avoid. |
| `seed` | integer 0–65535 | random | Fix it to compare prompt changes. |

#### Billing

$0.001 per second of generated audio.

| Length | Price |
|---|---|
| 8 s (default) | $0.008 |
| 30 s | $0.03 |

Failed runs are not charged.

#### Prompting

- Describe the sound source and setting in a short phrase.
