About this endpoint
What it does
Compresses an uploaded audio file to a smaller size and returns it as an MP3. The size is reached by choosing a bitrate between 32 and 320 kbps, so very small or very large targets are limited to that range. Different targets give different file sizes.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | File | Yes | The audio file. Up to 30 MB. |
| targetFileSize | String | No | The size you want the file to end up at, for example 2MB, 500KB or a number of bytes. Default: about half the original size. A target at or above the original size is treated as 99% of it. |
Response
Returns the compressed audio as a binary MP3 file in the response body.
| Parameter | Type | Description |
|---|---|---|
| binary | String | The response body is binary data containing the compressed MP3 audio. |



