MusicAPI
HomeDocs
HomeDocs
  1. sonic
  • Introduction
  • Credits Usage Guide
  • Music API FAQ & Troubleshooting
  • Common 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
  • 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
      POST
  • nuro
    • Nuro Instruction
    • Error handling
    • create vocal music
      POST
    • create instrument music
      POST
    • get music
      GET
  1. sonic

get music

GET
https://api.musicapi.ai/api/v1/sonic/task/{task_id}

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/sonic/task/'

Responses

🟢200success
application/json
Body
code
integer 
required
data
array [object {12}] 
required
clip_id
string 
required
title
string 
required
tags
string 
required
lyrics
string 
required
image_url
string 
required
audio_url
string 
required
video_url
string 
required
created_at
string 
required
mv
string 
required
gpt_description_prompt
null 
required
duration
integer 
required
state
string 
required
pending;running;succeeded
message
string 
required
Example
{
  "code": 200,
  "data": [
    {
      "clip_id": "26c9c592-0566-46cf-bb71-91ac1deaa7b5",
      "state": "succeeded",
      "title": "Starts",
      "tags": "pop",
      "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",
      "image_url": "https://cdn2.sonic.ai/image_26c9c592-0566-46cf-bb71-91ac1deaa7b5.jpeg",
      "audio_url": "https://cdn1.sonic.ai/26c9c592-0566-46cf-bb71-91ac1deaa7b5.mp3",
      "video_url": "https://cdn1.sonic.ai/26c9c592-0566-46cf-bb71-91ac1deaa7b5.mp4",
      "created_at": "2024-11-27T10:26:46.552Z",
      "mv": "sonic-v3-5",
      "gpt_description_prompt": null,
      "duration": 179
    },
    {
      "clip_id": "626f2fb1-b1cb-43e3-aabd-7ef64e1ab6b0",
      "state": "succeeded",
      "title": "Starts",
      "tags": "pop",
      "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",
      "image_url": "https://cdn2.sonic.ai/image_626f2fb1-b1cb-43e3-aabd-7ef64e1ab6b0.jpeg",
      "audio_url": "https://cdn1.sonic.ai/626f2fb1-b1cb-43e3-aabd-7ef64e1ab6b0.mp3",
      "video_url": "https://cdn1.sonic.ai/626f2fb1-b1cb-43e3-aabd-7ef64e1ab6b0.mp4",
      "created_at": "2024-11-27T10:26:46.552Z",
      "mv": "sonic-v3-5",
      "gpt_description_prompt": null,
      "duration": 208
    }
  ],
  "message": "success"
}
Previous
upload music
Next
Studio Instructions
Built with