Producer Audios Generation API
POSThttps://api.acedata.cloud/producer/audios

Producer AI music generation API, generates 1 song per request.

Request Headers

acceptstring
Specify the response format returned by the server.
Please select
authorizationstring
Bearer token

Request Body

actionstringRequired parameter
Types of audio generation operations. Supported values include `generate` (generate based on prompts), `cover` (cover song), `extend` (continue writing), `variation` (variant), `swap_vocals` (replace vocals), `swap_instrumentals` (replace instrumentals), `replace_section` (replace section), `stems` (separate tracks).
modelstring
The model used for generating music is `FUZZ-2.0` by default.
Please select
instrumentalboolean
If `true`, the generated audio will only contain the accompaniment, without vocal lyrics.
Please select
lyricstringRequired parameter
Lyrics content for generating audio.
weirdnessnumber
The degree of uniqueness of style can be selected between 0 and 1, with a default value of 0.5.
continue_atnumber
Specify the time point (in seconds) from which to continue writing the song.
sound_strengthnumber
The impact intensity of the audio prompt words can be selected between 0.2 and 1, with a default value of 0.5.
lyrics_strengthnumber
The degree of influence of lyrics on audio generation can be selected between 0 and 1, with a default value of 0.5.
replace_section_startnumber
Replace the starting time point of the segment (seconds).
promptstringRequired parameter
Prompts for generating audio should not exceed 200 characters in length.
audio_idstring
The unique ID of the reference song.
replace_section_endnumber
Replace the end time point of the segment (seconds).
customboolean
Is it a custom mode? If `true`, the audio will be generated based on the `lyric`; otherwise, it will be generated based on the `prompt`.
Please select
titlestring
Title used for generating songs.
seedstring
Random seed used for audio generation.
callback_urlstring
The callback URL that will be called after the audio generation is completed.
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

Producer 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.

Shell

Python

JavaScript

Java

Go

PHP

Kind reminder: For streaming requests, the above code may not be fully applicable. Please refer to the integration documentation for changes.