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

get music

GET
https://api.musicapi.ai/api/v1/riffusion/task/{task_id}
If the generation is complete, two songs will be returned. If you only receive one song, you can continue to poll.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
task_id
string 
required

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 GET 'https://api.musicapi.ai/api/v1/riffusion/task/'

Responses

🟢200success
application/json
Body
code
integer 
required
data
array [object {11}] 
required
clip_id
string 
required
title
string 
required
lyrics
string 
required
image_url
string 
required
audio_url
string 
required
video_url
null 
required
created_at
string 
required
mv
string 
required
duration
number 
required
timestamp
object 
required
state
string 
required
message
string 
required
Example
{
    "code": 200,
    "data": [
        {
            "clip_id": "3b497e86-c6cf-4598-b999-94a1bfa912f6",
            "title": "Harbor",
            "lyrics": "[Verse 1]\nYou walk around like you've got it all figured out\nActing like you see right through me\nBut baby, there's so much you don't know about\nThe way I feel when you're not here with me\nYou think I'm fine when I laugh at your jokes\nYou think I'm strong when I don't cry\nBut underneath all these smiles that I show\nThere's a whole other person you've never tried\n[Pre-Chorus]\nTo understand, to really see\nWhat's hiding underneath\nAll the walls that I put up\nWhen you're standing next to me\n[Chorus]\nYou don't know how I count the hours\nTill you text me back again\nYou don't know I save all your voicemails\nPlay them over and again\nYou think you know me so well\nBut there's so much I don't tell\nYou don't know, you don't know\nHow deep these feelings go\n(Oh, oh, oh)\nYou don't know, you don't know\n(Yeah, yeah)\n[Verse 2]\nI practice conversations in my head at night\nAll the things I wish I could say\nBut when you're here everything just feels so right\nI forget the words anyway\nYou see the girl who's got her life together\nYou see the one who's always fine\nBut if you looked a little closer, you'd discover\nThere's a mess I'm trying to hide\n[Pre-Chorus]\nBehind the mask, behind the smile\nI've been wearing for a while\nAll the fears I never show\nWhen you're standing next to me\n[Chorus]\nYou don't know how I count the hours\nTill you text me back again\nYou don't know I save all your voicemails\nPlay them over and again\nYou think you know me so well\nBut there's so much I don't tell\nYou don't know, you don't know\nHow deep these feelings go\n(Oh, oh, oh)\nYou don't know, you don't know\n(Yeah, yeah)\n[Rap]\nListen up, let me break it down for you real quick\nYou see the surface but you're missing all the tricks\nI pull to keep myself together when you're around\nActing cool but inside I'm falling to the ground\nEvery word you say I analyze for hours\nLooking for a sign that you might feel the power\nOf this thing between us that I can't define\nBut I'm too scared to cross that line\nYou think I'm independent, think I'm doing fine\nBut I check my phone a hundred times\nHoping that you'll call, hoping that you'll see\nThere's so much more to loving me\nThan what you think you know about the girl you see\nI'm deeper than the ocean, wider than the sea\nBut I keep it locked away, I keep it out of sight\n'Cause I don't want to scare you with how hard I fight\nTo keep these feelings buried, keep them underground\nBut they're getting louder, they're a thunderous sound\n[Bridge]\nMaybe someday I'll be brave enough\nTo show you all the parts of me\nThat I've been hiding, that I've been fighting\nMaybe then you'll finally see\n(La, la, la, la)\nAll the love I've been denying\n(La, la, la, la)\nAll the truth beneath the lying\n[Chorus]\nYou don't know how I count the hours\nTill you text me back again\nYou don't know I save all your voicemails\nPlay them over and again\nYou think you know me so well\nBut there's so much I don't tell\nYou don't know, you don't know\nHow deep these feelings go\n(Oh, oh, oh)\nYou don't know, you don't know\n(Yeah, yeah)\n[Outro]\nBut maybe that's okay for now",
            "image_url": "https://storage.googleapis.com/corpusant-app-public/riffs/d8cd7397-e02c-4da6-a6b6-dce42c5a45b7/image/3b497e86-c6cf-4598-b999-94a1bfa912f6.jpg",
            "audio_url": "https://storage.googleapis.com/corpusant-app-public/riffs/d8cd7397-e02c-4da6-a6b6-dce42c5a45b7/audio/3b497e86-c6cf-4598-b999-94a1bfa912f6.m4a",
            "video_url": null,
            "created_at": "2025-06-19T06:41:43.107472Z",
            "mv": "FUZZ-1.1 Pro",
            "duration": 205.82167800453516,
            "timestamp": {
                "words": [
                    {
                        "text": "[Verse",
                        "start": 4.458231292517007,
                        "end": 4.458231292517007,
                        "line_index": 0,
                        "index_range": null,
                        "wav2vec2_format": null
                    },
                    {
                        "text": "1]",
                        "start": 4.458231292517007,
                        "end": 4.458231292517007,
                        "line_index": 0,
                        "index_range": null,
                        "wav2vec2_format": null
                    },
                    {
                        "text": "You",
                        "start": 4.458231292517007,
                        "end": 4.458231292517007,
                        "line_index": 1,
                        "index_range": null,
                        "wav2vec2_format": null
                    },
                    {
                        "text": "walk",
                        "start": 4.458231292517007,
                        "end": 5.20126984126984
Modified at 2025-06-27 04:34:18
Previous
upload
Next
Studio Instructions
Built with