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

# Music generation best practices

> Write prompts that describe the sound, structure lyrics, set the length, and refine a track instead of restarting.

How to get the track you hear in your head out of AudioMusic: pick Song or Compose, describe the sound precisely, write singable lyrics, and refine instead of starting over.

## Song or Compose

Music Studio has two modes.

* **Song** makes a finished recording. Use it for most tracks: a song from a description, your own lyrics, instrumentals, rap, sound effects, an exact length, or a remix of existing audio.
* **Compose** writes the song as an editable score first. You change it in plain English ("make the chorus higher"), then record the version you like. Use it when you care about the melody and structure and want to iterate before you record.

Compose has no length setting. The length follows the lyrics. If you need an exact length, use Song.

Over the API, Song is `/api/v1/music/...` and Compose is `/api/v1/music/v3/...`. Call `GET /api/v1/music/v3/availability` first and hide Compose if `available` is false.

## Describe the sound, not just the genre

Name the instruments, the mood, the era, the vocal and the production feel.

Do: `warm upright bass, brushed drums, smoky late-night jazz, breathy female vocal`
Don't: `jazz`

* Texture words work: `warm`, `crisp`, `airy`, `punchy`, `lo-fi`.
* Don't mix styles that pull against each other (`calm ambient, aggressive metal`). Pick one, or describe a change over time: `starts as a soft piano ballad, builds into a full band`.
* Fewer details leave more room for surprises. More details give more control.
* Say what the vocal should be (`gravelly male vocal`, `choir`), or ask for no vocal.

Length limits: in Song, a style description (`caption`) can be up to 2,048 characters, and a Simple description (`query`) up to 1,000. In Compose, the style can be up to 2,000 characters.

## Tempo, key and time signature

* Leave them out for everyday use. AudioMusic picks values that fit the description.
* When you need a specific value, set it in the dedicated field instead of only writing it in the description: `bpm` (30 to 300), `keyscale` (for example `F# minor`) and `timesignature` (`2`, `3`, `4` or `6` for 2/4, 3/4, 4/4 or 6/8). A value you set always wins.
* Keep them consistent with the description. A `slow ballad` at 180 BPM confuses the result.
* Common tempos (roughly 60 to 180 BPM) and 4/4 give the most reliable results. Treat the value as a target; the track lands close to it.

## Lyrics

* Mark sections with tags on their own lines: `[verse]`, `[pre-chorus]`, `[chorus]`, `[bridge]`, `[intro]`, `[outro]`. Leave a blank line between sections.
* One short descriptor is fine (`[chorus - anthemic]`). Don't stack several tags; extra tags can end up sung as words.
* Lyrics are sung word for word. Write them the way they should be sung.
* Keep lines short and singable, about 6 to 10 syllables, with similar line lengths in matching sections. A chorus that repeats is easier to hear as a chorus.
* Keep the lyrics and the style in agreement. Sad lyrics over `upbeat party pop` give a muddled track.
* For an instrumental, leave lyrics empty and turn on **Instrumental** (`instrumental: true`), or make the whole lyric sheet `[Instrumental]`.

```text theme={null}
[verse]
Packing up the morning, coffee in a paper cup

[chorus]
We're leaving on the early train, and we're not looking back
```

Lyric limits: 4,096 characters on `text2music`, 10,000 on the vocals and rap routes, and 20,000 in Compose.

### Lyric helpers

In Song's Custom view, **Write lyrics for me** writes a full song from a short description, and **Enhance** improves lyrics you already have. They are available in the dashboard only.

AudioPod writes original songs. A request to reproduce the words of an existing song is refused. Describe the topic, mood and genre instead.

## Song mode

* **Simple**: one description box. AudioPod writes the lyrics and makes every other choice. Over the API, use `POST /api/v1/music/simple` with `query`.
* **Custom**: Title, Style and Lyrics. Over the API, use `POST /api/v1/music/text2music` with `caption` and `lyrics`.
* **Start from a style** offers **Rap**, **Vocals only**, **Instrumental** and **Sound effect**. Rap and Vocals only need lyrics.
* **Start from audio** offers **Cover** (keep the song's structure, change its style) and **Edit a section** (replace a time range).

### Length

* Leave `duration` at `-1` (auto) to let the length follow the lyrics.
* Or set 1 to 600 seconds (up to 10 minutes). Sound effects and samples go up to 120 seconds (`audio_duration`).
* Lengths from 30 seconds to about 4 minutes are the most stable. Very long tracks can repeat themselves or lose structure. For a longer piece, generate a strong core and extend it.

### Covers

`audio_cover_strength` runs from 0.0 to 1.0 (default 0.7). Higher stays close to the original; lower gives a looser interpretation. The source must be an uploaded audio file or a direct `https://` link to one. YouTube and streaming links are refused.

## Compose mode

1. **Write the score.** Describe the song (we write the lyrics) or paste your own lyrics, and give a style. Over the API, `POST /api/v1/music/v3/plan` takes `style` and either `description` (up to 1,000 characters) or `lyrics`, not both. With a description, `target_seconds` (30 to 300) sizes the lyrics; it is a guide, not a guarantee.
2. **Revise in plain English.** One change per request works best: `make the chorus higher`, `add a bridge after the second chorus`. Limit it to one section (`section: "chorus 2"`) or a bar range when you can. Over the API, `POST /api/v1/music/v3/revise` takes an `instruction` of up to 500 characters. Each revision is a new score; the original is kept.
3. **Record it.** `POST /api/v1/music/v3/edit` renders the score. Recording is a new take: sections you didn't change are still performed afresh.

* Tempo stays fixed unless you set `allow_tempo_change: true`. An accidental tempo change is the most common reason an edit sounds unrelated.
* `cfg_scale` (1 to 10, default 3) sets how literally the recording follows your style text. Higher is more literal and less inventive.
* To keep the tune but change the style or the words, record the same score with a new `style` or `lyrics`.

## Refine, don't restart

* Generate a few versions and compare them before you change the prompt.
* Fix the `seed` while you change one thing, so you hear only that change. Change the seed when you want new ideas.
* Change one thing at a time.
* On a finished Song track, use **Refine**: **retake** for another interpretation, **extend** to add up to 60 seconds at the start or end, **repaint** to regenerate one time range, and **remix** for a new style or new words over the same track.
* Repaint works best on short sections. For a long fix, repaint it in pieces.

Credits and plans: see [audiopod.ai/pricing](https://audiopod.ai/pricing).


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