# ACE Studio ACE-Step Prompt to Audio API

> ACE-Step Prompt to Audio turns a plain-language music brief into a complete song up to 4 minutes, writing the genre tags and lyrics for you, or an instrumental track.

Source: https://www.sandbase.ai/models/ace/ace-step/prompt-to-audio
API reference: https://www.sandbase.ai/models/ace/ace-step/prompt-to-audio#api

## Facts

- Provider: ACE Studio
- Type: Audio model
- Model ID: `ace/ace-step/prompt-to-audio`
- Price: From $0.01 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": "ace/ace-step/prompt-to-audio",
  "prompt": "A lofi hiphop song with a chill vibe about a sunny day on the boardwalk.",
  "duration": 60,
  "instrumental": false
}'
```

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 ACE Studio ACE-Step Prompt to Audio through SandBase?

Create a SandBase API key, then send requests with the model ID "ace/ace-step/prompt-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 ACE Studio account?

No. One SandBase API key and balance gives you access to ACE Studio ACE-Step Prompt to Audio and the other models in the catalog; you do not need to sign up with ACE Studio separately.

## README

### ACE-Step Prompt to Audio

ACE-Step Prompt to Audio writes a full song up to 4 minutes from a plain-language brief; it generates the tags and lyrics itself.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Genre, mood, and what the song is about. |
| `instrumental` | boolean | false | Generate without vocals. |
| `duration` | number 5–240 | 60 | Length in seconds. |
| `seed` | integer | random | Fix it to compare prompt changes. |

#### Output

| Field | Notes |
|---|---|
| `url` | WAV file. |
| `tags` | Genre tags ACE-Step wrote. |
| `lyrics` | Lyrics ACE-Step wrote. |
| `seed` | Seed used; pass it back to reproduce. |

#### Billing

$0.0002 per second of generated audio.

| Length | Price |
|---|---|
| 30 s | $0.006 |
| 60 s | $0.012 |
| 240 s | $0.048 |

Failed runs are not charged.

#### Prompting

- Say what the song is about; the returned `tags` and `lyrics` can be edited and sent to `ace/ace-step`.

#### Also on SandBase

Related: `ace/ace-step`, `ace/ace-step/audio-to-audio`, `ace/ace-step/audio-inpaint`, `ace/ace-step/audio-outpaint`.
