AI Music API
Home
Home
  1. riffusion
  • Introduction
  • Credits Usage Guide
  • Error handling
  • suno
    • Suno Instructions
    • create music
      POST
    • extend music
      POST
    • concat music
      POST
    • cover music
      POST
    • stems basic
      POST
    • stems full
      POST
    • create persona
      POST
    • create music with persona
      POST
    • upload music
      POST
    • get wav
      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
  • nuro
    • Nuro Instruction
    • Error handling
    • create vocal music
      POST
    • create instrument music
      POST
    • get music
      GET
  • lyrics generation
    • Make Lyrics
  • 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 tasks10 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.
vocal_variationnumber❌ NoDegree of variation in vocals or instruments (used only in cover_music, swap_music_vocals, and swap_music_sound task types).

πŸ” 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-07-22 20:36:08
Previous
get music
Next
create music (with lyrics)
Built with