music-cover
How to Make a Call
API Schemas
Generate music sample
post
Body
modelstring · enumRequiredPossible values:
promptstring · min: 10 · max: 2000Required
A description of the music, specifying style, mood, and scenario. Length: 10–2000 characters.
reference_audio_urlstring · uriRequired
A URL or a Base64-encoded of the reference audio. Reference audio constraints:
- Duration: 6 seconds to 6 minutes
- Size: max 50 MB
- Format: common audio formats (mp3, wav, flac, etc.)
lyricsstring · min: 10 · max: 3000Optional
Responses
200Success
application/json
idstringRequiredExample:
The ID of the generated audio.
60ac7c34-3224-4b14-8e7d-0aa0db708325statusstring · enumRequiredExample:
The current status of the generation task.
completedPossible values: post
/v2/generate/audio200Success
Retrieve the generated music sample from the server
get
Authorizations
AuthorizationstringRequired
Bearer key
Query parameters
generation_idstringRequiredExample:
<REPLACE_WITH_YOUR_GENERATION_ID>Responses
200Success
application/json
idstringRequiredExample:
The ID of the generated audio.
60ac7c34-3224-4b14-8e7d-0aa0db708325statusstring · enumRequiredExample:
The current status of the generation task.
completedPossible values: get
/v2/generate/audio200Success
Quick Code Examples
Arrangement Replacement
Replacing the Lyrics
Last updated
Was this helpful?