> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sunor.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# ACE Music Model

> Generate music with ACE Music v1 or v1.1 through the Sunor API. Supports prompt generation and style plus lyrics generation.

# ACE Music Model

> [!WARNING]
>
> **Third-party integration** — Sunor provides API access to ACE Music. Sunor is not affiliated with Timedomain, ACE Music, or ACE Studio.

Sunor's `ace` model supports two ACE Music versions through `input.model_version`:

| `input.model_version` | ACE Music model | Public behavior |
| - | - | - |
| `"v1"` (default) | ACE Music v1 | Prompt or style and lyrics generation |
| `"v1.1"` | ACE Music v1.1 | The same public prompt or style and lyrics surface with the selected model version |

Omit `input.model_version` to use `"v1"`. Both versions use the same Sunor task contract. Sunor does not expose additional model-specific controls through this route. **ACE-Step 1.5 is a separate model family and is not available through Sunor's `ace` route.**

## Pricing and output count

| Task Type | Credits | USD equivalent | Description |
| - | -: | -: | - |
| `music` | 8 | \$0.08 | Generate two song versions from an idea or from your own style and lyrics |

The 8-credit price is per Sunor task/request, not per returned song. A normal request returns two song versions, which is an effective 4 credits per returned song when both results are delivered. Failed or timed-out tasks are refunded by Sunor's normal task settlement flow.

## Prompt generation

Use `prompt` when you want ACE Music to generate from an idea:

```json theme={null}
{
  "model": "ace",
  "task_type": "music",
  "input": {
    "prompt": "Warm indie pop about finding your way home, clear female vocal, acoustic guitar"
  }
}
```

`prompt` is limited to 2,000 characters. It cannot be combined with `style`, `lyrics`, or `instrumental`.

## Style and lyrics generation

Use `style` with optional `lyrics` when you want to control the musical direction or provide your own words:

```json theme={null}
{
  "model": "ace",
  "task_type": "music",
  "input": {
    "model_version": "v1.1",
    "style": "warm indie pop, acoustic guitar, clear female vocal",
    "lyrics": "[Verse]\nMorning light across the room\n[Chorus]\nI will find my way back home"
  }
}
```

Supported custom fields:

| Field | Type | Limits and behavior |
| - | - | - |
| `model_version` | string | Optional: `v1` or `v1.1`; defaults to `v1` |
| `style` | string | Required when `prompt` is omitted; up to 1,000 characters |
| `lyrics` | string | Optional; up to 5,000 characters |
| `instrumental` | boolean | Set `true` for an instrumental; do not send non-empty `lyrics` with it |

For an instrumental, send `style` and `instrumental: true`:

```json theme={null}
{
  "model": "ace",
  "task_type": "music",
  "input": {
    "style": "minimal piano and strings, reflective documentary ending",
    "instrumental": true
  }
}
```

## Deliberate route limits

The public `ace` route accepts ordinary prompt and style/lyrics generation only. It does not expose references, images, covers, remixes, edits, mashups, titles, duration controls, negative prompts, style influence, score or MIDI inputs, account selectors, or webhooks.

## Asynchronous output

ACE Music tasks are asynchronous. Create a task, then poll [Get Task](https://docs.sunor.cc/api-reference/get-task.md) until it reaches a terminal state. A normal successful task contains two entries in `output.result`.

Each result is normalized into the usual Sunor `output.result` array. A track can include:

* `audio_url` — the generated audio URL;
* `id` — the Sunor result identifier;
* `title` and `duration` — metadata when returned by the service;
* `image_url` — cover art when available;
* `model` — the ACE Music model used for the result.

Inside the normalized `output` object, `requested_model` records the internal ACE Music model selected from `input.model_version`, and `model_used` records the model identity reported by the engine. During processing, `model_used` can be `null`; on successful completion it must match `requested_model`. If the service reports completion before the complete two-song pair is visible, Sunor keeps the task in progress and waits for the pair instead of settling a partial success.

## Provider and commercial terms

Sunor manages the model connection for this API. Customers do not need a separate ACE Studio account or supplier subscription to call the `ace` model. Availability, quotas, pricing, and commercial usage terms can change; follow the current [Sunor Terms](https://sunor.cc/terms) and Sunor pricing page for applicable conditions.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.