Riffusion AI Music Generation API#
Riffusion is a cutting-edge AI music creation platform similar to Suno or Udio, now offering one of the most efficient and high-quality music generation on the market.đ Why Riffusion?#
đĩ Near Suno v4.5 Quality: Delivers studio-level music quality, including vocals and instrumentals.
đ Unique Swap Capabilities: Swap vocals or sound style in any music clip â a feature unmatched by other platforms.
⥠Fast Generation: Produces 3â4 minute songs in under 60 seconds.
đ¸ Affordable & Stable: Low cost per track and reliable performance at scale.
đ§ Flexible Features: Supports lyrics-based, prompt-based, instrumental, and remix workflows.
đ Commercial License: All generated content is licensed for commercial use.
đ Credit Consumption#
Action Type | Credit Usage |
---|
upload tasks | 2 credits |
create tasks | 12 credits |
đĄ API Parameters#
Field | Type | Required | Description |
---|
custom_mode | boolean | â
Yes | Set to true to use lyrics-based generation, false for prompt-based. |
lyrics | string | â No | Lyrics input (used only when custom_mode is true ). |
title | string | â No | Title of the song (metadata, optional, only with custom_mode ). |
make_instrumental | boolean | â
Yes | Whether to generate instrumental-only music. |
prompt | string | â No | Prompt or theme for the song (used only when custom_mode is false ). |
sound | string | â No | Style and sound design (genre, voice style, etc., only with custom_mode ). |
mv | enum | â
Yes | Model version. Options: "FUZZ-1.1 Pro" , "FUZZ-1.1" , "FUZZ-1.0 Pro" , "FUZZ-1.0" . |
task_type | string | â No | Task type: create_music , extend_music , cover_music , extend_upload_music , replace_music , replace_upload_music , swap_music_sound , swap_upload_music_sound , swap_music_vocals , swap_upload_music_vocals . |
continue_clip_id | string | â No | The clip ID of the original song to operate on (uploaded clip or previously generated one). |
continue_at | number | â No | Starting second for extension (extend task types only). |
replace_start_time | number | â No | Start time (in seconds) of the segment to replace. |
replace_end_time | number | â No | End time (in seconds) of the segment to replace. |
đ Response & Polling Notes#
Riffusion generates full tracks quickly (typically under 1 minute). There is no intermediate status, so when a generation is in progress, the API will return:{
"type": "processing",
"message": "processing generation, please try again later."
}
âšī¸ Additional Notes#
âą Recommended polling interval: every 10 seconds.
â ī¸ When using an uploaded clip_id
, ensure the task_type
is the correct upload variant (e.g., extend_upload_music
, swap_upload_music_sound
, etc.).
đ There is no intermediate progress â keep polling until the final result is returned.
Modified at 2025-06-26 18:39:51