Riffusion Audios Generation API
POSThttps://api.acedata.cloud/riffusion/audios
Riffusion AI music generation API, generates 1 song per request.
Request Headers
acceptstring
Specify the format of the response returned by the server. If not specified, the default format is `application/json`; if specified as `application/x-ndjson`, the response will be returned in a block-streaming format of JSON (ndjson) separated by newline characters.
Please select
authorizationstring
Bearer token
Request Body
actionstringRequired parameter
The type of operation for generating audio. If it is `generate`, then generate audio based on the prompt.
modelstring
The model used for generating music is `FUZZ-1.0` by default.
Please select
instrumentalboolean
If set to `true`, the generated audio will contain only pure music, without any vocal lyrics.
Please select
lyricstringRequired parameter
Lyrics content for generating audio.
continue_atnumber
Specify the time point in seconds from which to continue writing the song.
vocal_variationnumber
Adjust the amplitude of the human voice relative to the original sound. The higher the value, the greater the change.
replace_section_startnumber
Replace the starting time point of the segment, in seconds.
promptstring
Prompts for generating music audio, not exceeding 200 characters in length.
audio_idstring
The unique ID of the reference song.
replace_section_endnumber
Replace the end time point of the segment, in seconds.
stylestring
Style parameters used in music generation to describe the musical style or genre of a song.
customboolean
A flag indicating whether it is a custom mode. If `true`, the audio will be generated based on the lyrics (`lyric`); otherwise, it will be generated based on the prompt (`prompt`).
Please select
titlestring
Title used for generating songs.
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

Integration guide
Kind reminder: For streaming requests, the above code may not be fully applicable. Please refer to the integration documentation for changes.
Riffusion 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.