music-2.0
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.
lyricsstring Β· min: 10 Β· max: 3000RequiredExample:
Lyrics of the song. Use ( ) to separate lines. You may add structure tags like [Intro], [Verse], [Chorus], [Bridge], [Outro] to enhance the arrangement. Length: 10β3000 characters.
[Verse] Streetlights flicker, the night breeze sighs Shadows stretch as I walk alone An old coat wraps my silent sorrow Wandering, longing, where should I go [Chorus] Pushing the wooden door, the aroma spreads In a familiar corner, a stranger gazesResponses
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 Example
Last updated
Was this helpful?