Udio Audios Generation API
POSThttps://api.acedata.cloud/udio/audios
Udio AI music generation API, generates 2 songs per request.
Request Headers
acceptstring
The response format returned by the specified server should be set to application/json.
Please select
authorizationstring
Bearer token
Request Body
actionstringRequired parameter
Types of operations for generating audio.
modelstringRequired parameter
The model used for generating audio, with a default value of udio32-v1.5.
lyrics_typestringRequired parameter
Lyric generation type, default value is `user`. Optional values: `user` (use lyrics provided by the user), `instrumental` (pure music, no lyrics), `generate` (automatically generate lyrics).
promptstringRequired parameter
Prompts for generating audio.
lyricsstring
Custom lyrics text for the song. When `lyrics_type` is `user`, this field is used to pass in user-defined lyrics.
lyrics_strengthnumber
Lyric intensity, with a value range of [0, 1].
negative_promptstring
Negative prompt words, used to exclude unwanted music elements, up to 200 characters (optional).
prompt_strengthnumber
Prompt strength, with a value range of [0, 1].
clarity_strengthnumber
Clarity intensity, with a value range of [0, 1].
song_section_endnumber
The ending position of the song segment ranges from [0, 1].
song_section_startnumber
The starting position of the song segment ranges from [0, 1].
lyrics_placement_endnumber
The ending position of the lyrics placement ranges from [0, 1].
lyrics_placement_startnumber
The starting position for the lyrics placement ranges from [0, 1].
qualitynumber
The quality parameters for music generation have a value range of [-1, 1].
callback_urlstring
The callback URL that will be called after the audio generation is complete.
asyncboolean
Whether to process in asynchronous mode. When set to `true`, the interface immediately returns `task_id`, without the need to provide `callback_url`, and then the result can be obtained by polling the corresponding task query interface; if `callback_url` is also provided, the result will be pushed to that callback address.
Please select
Response
Udio Music Generation
Allow Use General Balance
When 'Allow General Balance' is enabled, the general balance is used automatically if an app's balance is insufficient.
Kind reminder: For streaming requests, the above code may not be fully applicable. Please refer to the integration documentation for changes.
