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

# Analysis & Export

> midi transcription, bpm analysis, alignedLyrics timing, download/wav, generateMp4

```
POST https://toapis.com/v1/music/generations/{operation}
```

**model** `string` *required*

Fixed `"suno"`

**task\_id** `string` *required*

Source task ID

**audio\_index** `number`

Source track index

## midi — MIDI transcription (\$0.05)

Transcribes a song into per-instrument note data in `result.instruments[]`:

**instruments** `array`

**Instrument track**

**name** `string`

Instrument name, e.g. `Electric Piano 1`

**program** `integer`

General MIDI program number

**is\_drum** `boolean`

Drum track (pitch is a drum-note number, not a key)

**notes** `array`

Note list: `start`/`end` (seconds), `pitch` (MIDI note 0-127), `velocity` (0-1)

## bpm — BPM analysis (\$0.0008)

Returns `avg_bpm` / `max_bpm` / `min_bpm` in `result`.

## alignedLyrics — lyrics timing (\$0.0008)

Returns per-line / per-word timing alignment.

## download — multi-format download (\$0.0016)

**formats** `array`

Format list: `mp3` / `m4a` / `wav`

**format** `string`

Single format (provide `formats` or `format`, at least one)

Returns `result.files[]`; files are mirrored to our CDN.

## generateMp4 — lyric video (\$0.004)

Generates an MP4 with lyrics; returns `result.videoUrl` (mirrored to CDN).

## wav — WAV download (\$0.0016, legacy)

> [!TIP]
>
> Deprecated — use `download` with `format: "wav"` instead.

## Response

**task\_id** `string`

Task ID

**status** `string`

`submitted`


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