Quickly getting an audio file
Getting the mp3 file using /singleFile
endpoint
/singleFile
endpointWhen requesting for music you can use singleFile endpoint. It accepts different parameters.
singleFile
POST
/singleFile
The endpoint generates a single region MP3 file based on the provided parameters.
Request Body
params
JSON Object
duration
int
Requested composition time in seconds. If no parameter value is passed, the default time value is 60 seconds. Currently, there is a limit set at 1200 seconds.
tags
Array (int)
An array of integers representing tag id's.
Example requests
Simple request with duration and tags
Here's a typical request for 48 seconds of 'dynamic Latin' music (tags nos 11 and 17).
Request with duration, tags and params
This request is for 2 minutes and 2 seconds of 'dreamy electronic ambient' music (tags no 2, 5 and 10). It also includes a manual music parameter setup.
Response handling
Example response
Getting similar music
Last updated
Was this helpful?