MusicAPI
HomeDocs
HomeDocs
  1. riffusion
  • Introduction
  • Credits Usage Guide
  • Music API FAQ & Troubleshooting
  • Special Scenarios
  • Error handling
  • sonic
    • Sonic Instructions
    • create music
      POST
    • extend music
      POST
    • concat music
      POST
    • cover music
      POST
    • create persona
      POST
    • create music with persona
      POST
    • upload music
      POST
    • get music
      GET
  • riffusion
    • Riffusion instructions
    • create music (with lyrics)
      POST
    • create music (with description)
      POST
    • cover music
      POST
    • extend music
      POST
    • replace music section
      POST
    • swap music sound
      POST
    • swap music vocals
      POST
    • upload
      POST
    • get music
      GET
  • studio(Unavailable)
    • Studio Instructions
    • description mode (Use case1)
      POST
    • extend mode (Use case2)
      POST
    • custom mode (Use case3)
      POST
    • instrumental mode (Use case4)
      POST
    • get music
      GET
  • lyrics generation
    • Make Lyrics
  • nuro
    • Nuro Instruction
    • Error handling
    • create vocal music
    • create instrument music
    • get music
  • get-credits
    GET
  1. riffusion

Riffusion instructions

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 TypeCredit Usage
upload tasks2 credits
create tasks12 credits

📡 API Parameters#

FieldTypeRequiredDescription
custom_modeboolean✅ YesSet to true to use lyrics-based generation, false for prompt-based.
lyricsstring❌ NoLyrics input (used only when custom_mode is true).
titlestring❌ NoTitle of the song (metadata, optional, only with custom_mode).
make_instrumentalboolean✅ YesWhether to generate instrumental-only music.
promptstring❌ NoPrompt or theme for the song (used only when custom_mode is false).
soundstring❌ NoStyle and sound design (genre, voice style, etc., only with custom_mode).
mvenum✅ YesModel version. Options: "FUZZ-1.1 Pro", "FUZZ-1.1", "FUZZ-1.0 Pro", "FUZZ-1.0".
task_typestring❌ NoTask 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_idstring❌ NoThe clip ID of the original song to operate on (uploaded clip or previously generated one).
continue_atnumber❌ NoStarting second for extension (extend task types only).
replace_start_timenumber❌ NoStart time (in seconds) of the segment to replace.
replace_end_timenumber❌ NoEnd 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
Previous
get music
Next
create music (with lyrics)
Built with