- Introduction
- Credits Usage Guide
- Music API FAQ & Troubleshooting
- Special Scenarios
- Error handling
- sonic
- riffusion
- studio(Unavailable)
- lyrics generation
- nuro
- get-creditsGET
extend music
POST
https://api.musicapi.ai/api/v1/riffusion/create
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
custom_mode
boolean
required
lyrics
string
required
title
string
optional
sound
string
required
continue_at
integer
required
continue_clip_id
string
required
task_type
enum<string>
required
Allowed values:
create_musicextend_musiccover_musicextend_upload_musiccover_upload_musicreplace_musicswap_music_soundswap_music_vocalsreplace_upload_musicswap_upload_music_soundswap_upload_music_vocals
mv
enum<string>
required
Allowed values:
FUZZ-1.1 ProFUZZ-1.0 ProFUZZ-1.1FUZZ-1.0
Example
{
"custom_mode": true,
"lyrics": "[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way",
"title": "Starts",
"sound": "pop",
"continue_at":10,
"continue_clip_id": "f524dd12-cb7a-4eb6-b2fb-780f0ed07d9c",
"task_type":"extend_music",
"mv": "FUZZ-1.1 Pro"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.musicapi.ai/api/v1/riffusion/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"custom_mode": true,
"lyrics": "[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way",
"title": "Starts",
"sound": "pop",
"continue_at":10,
"continue_clip_id": "f524dd12-cb7a-4eb6-b2fb-780f0ed07d9c",
"task_type":"extend_music",
"mv": "FUZZ-1.1 Pro"
}'
Responses
🟢200sucess
application/json
Body
message
string
required
task_id
string
required
Example
{
"message": "success",
"task_id": "6d7253ac-916e-49a8-b288-91ffa7f8a8cd"
}
Modified at 2025-06-26 18:49:39