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

# Making music

> Generate songs and instrumentals, master a take, and export a release kit.

Generate songs and instrumentals with AI, master them, and export a ZIP kit for a music distributor. Clients can only listen and download.

> [!NOTE]
>
> The company owner's plan must include **Music**, or creating anything answers `402` with `"feature": "music"`. Existing music can still be played, downloaded and deleted.

## From idea to release

### 1. Pick an engine

```bash cURL theme={null}
curl --globoff "https://api.followr.ai/api/music/catalog?company_id=1287" \
  --header "Authorization: Bearer $FOLLOWR_API_KEY" \
  --header "Accept: application/json"
```

The [catalog](https://docs.followr.ai/api-reference/music/retrieve-the-music-catalog.md) lists each engine, what it makes and its price in media credits. Use one with `available: true`.

### 2. Check the price

Optional. Add `?estimate=1` to the generation request: you get the price per take and the total in `credits`, and nothing starts.

```bash cURL theme={null}
curl --request POST "https://api.followr.ai/api/companies/1287/music/tracks?estimate=1" \
  --header "Authorization: Bearer $FOLLOWR_API_KEY" \
  --header "Accept: application/json" \
  --header "Content-Type: application/json" \
  --data '{
    "style_id": 640,
    "about": "A warm acoustic song about the first coffee of a winter morning",
    "language": "en",
    "variations": 2
  }'
```

### 3. Generate

Send the same body without `estimate`:

```bash cURL theme={null}
curl --request POST https://api.followr.ai/api/companies/1287/music/tracks \
  --header "Authorization: Bearer $FOLLOWR_API_KEY" \
  --header "Accept: application/json" \
  --header "Content-Type: application/json" \
  --data '{
    "style_id": 640,
    "about": "A warm acoustic song about the first coffee of a winter morning",
    "language": "en",
    "variations": 2
  }'
```

* Describe the sound with at least one of `style_id` (one of your styles), `builtin_style` or `style` (free text). Don't send `style_id` and `builtin_style` together.
* A song with vocals needs `lyrics`, or `about` to have them written for you.

You get `201` with one `pending` track per take (1 to 4), all sharing a `batch` ID. Credits for every take are reserved at once. A failed take costs nothing.

### 4. Wait for the takes

A take needs 30 seconds to a few minutes. Poll the batch every 10 seconds or more until each take is `completed` or `failed` (see `status_message`):

```bash cURL theme={null}
curl --globoff "https://api.followr.ai/api/companies/1287/music/tracks?filter[batch]=7c3e9a52-4b1d-4f0e-9a6b-2f8d1c5e7a90" \
  --header "Authorization: Bearer $FOLLOWR_API_KEY" \
  --header "Accept: application/json"
```

### 5. Pick a take and master it

Listen through `audio_url`, then mark the take you keep:

```bash cURL theme={null}
curl --request PUT https://api.followr.ai/api/music/tracks/7710 \
  --header "Authorization: Bearer $FOLLOWR_API_KEY" \
  --header "Accept: application/json" \
  --header "Content-Type: application/json" \
  --data '{"favorite": true, "title": "Morning Pour"}'
```

Master it with `streaming` (the loudness streaming services expect) or `loud`. Mastering is free, and optional: an export masters every track anyway.

```bash cURL theme={null}
curl --request POST https://api.followr.ai/api/music/tracks/7710/master \
  --header "Authorization: Bearer $FOLLOWR_API_KEY" \
  --header "Accept: application/json" \
  --header "Content-Type: application/json" \
  --data '{"preset": "streaming"}'
```

You get `202`. Poll `GET /music/tracks/7710` until `master.status` is `ready`.

### 6. Download

```bash cURL theme={null}
curl "https://api.followr.ai/api/music/tracks/7710/download?format=wav" \
  --header "Authorization: Bearer $FOLLOWR_API_KEY" \
  --header "Accept: application/json"
```

You get a `filename` and a `url` valid for 1 hour. `format` is `mp3` (default), `wav` (the master) or `lossless` (FLAC, when the track has `lossless: true`). `409` means the file isn't ready yet.

### 7. Build a release

```bash cURL theme={null}
curl --request POST https://api.followr.ai/api/companies/1287/music/releases \
  --header "Authorization: Bearer $FOLLOWR_API_KEY" \
  --header "Accept: application/json" \
  --header "Content-Type: application/json" \
  --data '{
    "title": "Morning Pour",
    "artist": "Northside Sessions",
    "genre": "Acoustic",
    "release_date": "2026-12-22",
    "tracks": [
      {
        "track_id": 7710,
        "credits": [
          {"name": "Alex Rivera", "role": "composer"},
          {"name": "Alex Rivera", "role": "lyricist"}
        ]
      }
    ]
  }'
```

The answer's `checks` lists what is missing. Errors (often: no cover, no artist, rights not confirmed) block the export. Warnings don't.

Add a cover with [`POST /music/releases/{id}/cover`](https://docs.followr.ai/api-reference/music-releases/set-a-release-cover) and exactly one of `asset_id` (a library picture, 750 px or more on its short side), `ai_result_id` (a finished image) or `generate`. Poll the release until `cover.status` is `ready`.

Confirm the rights once you hold them:

```bash cURL theme={null}
curl --request PUT https://api.followr.ai/api/music/releases/5120 \
  --header "Authorization: Bearer $FOLLOWR_API_KEY" \
  --header "Accept: application/json" \
  --header "Content-Type: application/json" \
  --data '{"rights_confirmed": true}'
```

Repeat until `checks.ready` is `true`.

### 8. Export the kit

```bash cURL theme={null}
curl --request POST https://api.followr.ai/api/music/releases/5120/export \
  --header "Authorization: Bearer $FOLLOWR_API_KEY" \
  --header "Accept: application/json" \
  --header "Content-Type: application/json" \
  --data '{"master_preset": "streaming", "include_mp3": true}'
```

You get `202`, or `422` listing what blocks the export. Poll `GET /music/releases/5120` until `export.status` is `ready`, then download `export.url` (signed, valid 12 hours from each read). If `export.stale` is `true`, the release changed: export again.

The ZIP holds WAV masters, tagged MP3s, a 3000 px cover, lyrics and metadata ([full layout](https://docs.followr.ai/api-reference/music-releases/export-a-release-kit.md)). Followr doesn't upload to stores: send the kit to your distributor.

## Limits and costs

* 1 to 4 takes per request, and at most 8 tracks in progress per company.
* Titles up to 150 characters, styles 600, lyrics 3,000, `about` 600.
* A release holds up to 30 tracks of 30 seconds or more, 120 minutes in total.
* Tracks use media credits, like images and video. Lyrics and style suggestions use AI words. Masters and exports are free.

> [card] [Music tracks](https://docs.followr.ai/api-reference/music-tracks/list-music-tracks.md)
>
> Every field for takes, masters and downloads.

> [card] [Music releases](https://docs.followr.ai/api-reference/music-releases/list-music-releases.md)
>
> Metadata, covers, checks and exports.


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