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

# Suno

> Suno music generation: complete songs with vocals and instrumentation from a description or lyrics, plus tools to extend, cover, separate stems, write lyrics, make music videos and more.

Suno is an AI music company based in Cambridge, Massachusetts, building a future where anyone can make music. From a one-line description or a set of lyrics, Suno's models create songs with vocals, instrumentation and a full song structure across pop, rock, electronic, folk, classical, hip-hop and many other styles, and can also make instrumentals.

On DreamTo, Suno song generation, extension, covers, section replacement, added vocals / instrumentals, vocal and instrument stems, MIDI, WAV conversion, lyrics and timestamped lyrics, music videos, Personas and custom voices are offered through one asynchronous task API.

## Model versions

Endpoints that take a model version set it in `input.model`. The three V6 versions are available; the discontinued V4–V5\_5 are no longer supported:

| `model` | Description |
| - | - |
| `V6` | Suno V6: greater musical expression, more natural vocals and richer detail |
| `V6_MINI` | Suno V6 Mini: lightweight and fast, balancing quality and speed |
| `V6_WILD` | Suno V6 Wild: pushes creative boundaries for bolder, more distinctive expression |

## Endpoints

Each endpoint is one `model` value; all of them create tasks with `POST /api/v1/jobs/createTask` and return results through `GET /api/v1/jobs/recordInfo`.

### Songs

| Endpoint | `model` | Description |
| - | - | - |
| [Generate music](https://docs.dreamto.ai/en/music/suno/generate.md) | `ai-music-api/generate` | Create songs from a description or lyrics: simple mode takes one line of description, custom mode sets the title, style, lyrics and fine controls; each request makes two songs. |
| [Extend music](https://docs.dreamto.ai/en/music/suno/extend.md) | `ai-music-api/extend` | Continue a generated song from a chosen point, keeping its style and optionally adding new lyrics; each request makes two extended versions. |
| [Upload and cover audio](https://docs.dreamto.ai/en/music/suno/upload-and-cover-audio.md) | `ai-music-api/upload-and-cover-audio` | Upload a track or pick a song you generated and reinterpret it in a new style, with new lyrics or as an instrumental while keeping its melody; each request makes two songs. |
| [Upload and extend audio](https://docs.dreamto.ai/en/music/suno/upload-extend.md) | `ai-music-api/upload-and-extend-audio` | Upload your own audio and continue it from a chosen point in the same style, producing a longer, seamless song; each request makes two songs. |
| [Add instrumental](https://docs.dreamto.ai/en/music/suno/add-instrumental.md) | `ai-music-api/add-instrumental` | Generate an instrumental accompaniment for uploaded audio (such as an a cappella or vocal take) in the styles you choose, producing finished music; each request makes two tracks. |
| [Add vocals](https://docs.dreamto.ai/en/music/suno/add-vocals.md) | `ai-music-api/add-vocals` | Add sung vocals to an existing backing track or instrumental, with your own title, style, lyrics and vocal gender; each request makes two songs. |
| [Get timestamped lyrics](https://docs.dreamto.ai/en/music/suno/timestamped-lyrics.md) | `ai-music-api/timeStamped-lyrics` | Get word-by-word timestamps of a generated song's lyrics plus waveform data, for karaoke-style synchronized lyrics; returned at once, with no callback. |
| [Boost music style](https://docs.dreamto.ai/en/music/suno/boost-style.md) | `ai-music-api/boost-music-style` | Expand a short style description into a detailed music style text ready to use, returned synchronously. |
| [Generate music cover](https://docs.dreamto.ai/en/music/suno/cover.md) | `ai-music-api/cover-generate` | Create personalized cover images for a song you generated; usually two covers in different styles are returned to choose from. |
| [Replace music section](https://docs.dreamto.ai/en/music/suno/replace-section.md) | `ai-music-api/replace-section` | Regenerate a chosen time range (at least 10 seconds) of a song so that it blends with the parts around it; works on a generated song or an uploaded audio file. |
| [Generate Persona](https://docs.dreamto.ai/en/music/suno/persona.md) | `ai-music-api/generate-persona` | Create a Persona (a music character) from one track of a song you generated; pass its `persona_id` to later music tasks to keep that style. |
| [Generate mashup](https://docs.dreamto.ai/en/music/suno/mashup.md) | `ai-music-api/mashup` | Blend elements of two audio tracks into one new song with your own title, style and lyrics; each request makes two songs. |
| [Recover audio](https://docs.dreamto.ai/en/music/suno/recovery-audio.md) | `ai-music-api/suno-recovery-audio` | Get playable audio links again for a music generation task that has already completed; every song of the task is recovered together. |

### WAV conversion

| Endpoint | `model` | Description |
| - | - | - |
| [Convert to WAV format](https://docs.dreamto.ai/en/music/suno/wav.md) | `ai-music-api/convert-to-wav-format` | Convert one generated track (or one separated stem) to an uncompressed WAV file for professional editing and post-production. |

### Music video

| Endpoint | `model` | Description |
| - | - | - |
| [Create music video](https://docs.dreamto.ai/en/music/suno/music-video.md) | `ai-music-api/create-music-video` | Turn a song you generated into an MP4 music video with visualizations, optionally signed with an artist name and branded with a watermark. |

### Lyrics

| Endpoint | `model` | Description |
| - | - | - |
| [Generate lyrics](https://docs.dreamto.ai/en/music/suno/lyrics.md) | `ai-music-api/generate-lyrics` | Write lyrics from a one-line theme; each request returns two or three sets of lyrics with titles and section markers to choose from. |

### Custom voice

| Endpoint | `model` | Description |
| - | - | - |
| [Generate validation phrase](https://docs.dreamto.ai/en/music/suno/voice-validate.md) | `ai-music-api/validation-phrase` | Step 1 of a custom voice: submit a vocal recording and its segment to get a validation phrase the speaker has to read aloud. |
| [Create custom voice](https://docs.dreamto.ai/en/music/suno/voice-create.md) | `ai-music-api/create-voice` | Submit the user's recording of the validation phrase; once verified, a reusable custom voice is created. |
| [Regenerate validation phrase](https://docs.dreamto.ai/en/music/suno/voice-regenerate.md) | `ai-music-api/regenerate-phrase` | Get a new validation phrase for an existing Suno Voice validation task; the new phrase is written back to that task. |
| [Check voice availability](https://docs.dreamto.ai/en/music/suno/voice-check.md) | `ai-music-api/check-voice` | Check whether a custom voice is ready to use; `isAvailable` is returned at once, with no task to poll and no callback. |

### Stems and MIDI

| Endpoint | `model` | Description |
| - | - | - |
| [Vocal and instrument stem separation](https://docs.dreamto.ai/en/music/suno/separate-vocals.md) | `ai-music-api/separate-vocals` | Separate a song into vocals and accompaniment, split it into up to 12 instrument stems, or extract one chosen instrument. |
| [Generate MIDI from audio](https://docs.dreamto.ai/en/music/suno/midi.md) | `ai-music-api/generate-midi-from-audio` | Convert separated audio stems into MIDI note data: for each detected instrument, every note's pitch, start, end and velocity. Free. |

### Sound effects

| Endpoint | `model` | Description |
| - | - | - |
| [Generate sounds](https://docs.dreamto.ai/en/music/suno/sounds.md) | `ai-music-api/sounds` | Create sound effects, ambient sounds or loops from one line of description, with optional seamless looping, tempo (BPM) and key; each request makes two clips. |

### Speech

| Endpoint | `model` | Description |
| - | - | - |
| [Generate speech](https://docs.dreamto.ai/en/music/suno/speech.md) | `ai-music-api/speech` | Create spoken audio with tone, rhythm, emotion and optional background music: simple mode takes one line describing the scene, advanced mode takes the script to speak plus tone, variety, vocal gender and background music; each request makes two clips. |

## Task flow

1. **Create the task**: `POST https://api.dreamto.ai/api/v1/jobs/createTask` with `{"model": "ai-music-api/<endpoint>", "callBackUrl": "...", "input": {...}}`; it returns `data.taskId`.
2. **Get the result**: call `GET https://api.dreamto.ai/api/v1/jobs/recordInfo?taskId=<taskId>` about every 10 seconds. When `data.state` becomes `success`, read the result from `data.response`; when it becomes `fail`, `data.failCode` / `data.failMsg` give the reason.
3. **Or receive a callback**: pass `callBackUrl` when creating the task and DreamTo `POST`s the result there once the task finishes, with no polling.

Every response has HTTP status 200; check `code` in the body. Send the API Key in the `Authorization: Bearer` header.

## Chaining tasks

Extension, covers, section replacement, stem separation, WAV conversion, music videos, timestamped lyrics and other endpoints work on a song generated before: set `input.task_id` to the `taskId` of that task and `input.audio_id` to the `response.data[].id` of one of its songs (a generation usually returns two).

The source task must be a Suno task of this account that succeeded on DreamTo within the last 14 days and be a kind of task the endpoint accepts; otherwise `code: 422` is returned and no task is created or charged. Suno IDs such as `audio_id` are used as they are.

## Result files

Audio, cover image, video, MIDI and other file links in a result are DreamTo download links (`https://api.dreamto.ai/v1/tasks/{task_id}/artifacts/...`) that work without an API Key and support `Range` requests; querying a task again returns the same links. Files are kept for **14 days** after the task is created; after that the links expire and the task can no longer be the source of a chained task, so download the files promptly.

## Callbacks

Pass `callBackUrl` when creating a task and DreamTo `POST`s the result there once the task succeeds or fails, in the format given under Task callback of each endpoint (once, when the task finishes; no intermediate-stage callbacks are sent), signed with the `X-DreamTo-Signature` header. Answer with any `2xx`; on a timeout (10 seconds) or another status it is retried after 1, 5 and 30 minutes, at most 4 deliveries.

## Pricing

Billed per request: each succeeded task is charged once at the endpoint's model price shown in the console. Invalid requests, unusable source tasks and failed tasks are not charged.


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