# ACE Studio ACE-Step API

> ACE-Step generates a complete song up to 4 minutes from genre tags and optional lyrics, with vocals or as an instrumental.

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

## Facts

- Provider: ACE Studio
- Type: Audio model
- Model ID: `ace/ace-step`
- 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",
  "tags": "lofi, hiphop, drum and bass, trap, chill",
  "duration": 60
}'
```

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

Create a SandBase API key, then send requests with the model ID "ace/ace-step" 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 and the other models in the catalog; you do not need to sign up with ACE Studio separately.

## README

### ACE-Step

ACE-Step writes a full song up to 4 minutes from genre tags and optional lyrics.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `tags` | string, required | — | Comma-separated genres, moods, instruments. |
| `lyrics` | string | `""` | Lyrics with `[verse]` / `[chorus]` tags; empty or `[inst]` for instrumental. |
| `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 used. |
| `lyrics` | Lyrics used. |
| `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

- Keep tags short and comma-separated, e.g. `lofi, hiphop, chill`.

#### Also on SandBase

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