sonic

get music

Use the obtained task ID to poll song data. Recommended polling interval: 15s-25s.

Supported Task Types

Task TypeDescriptionResponse Format
create_musicStandard music creationArray of songs
extend_musicExtend existing songArray of songs
cover_musicCreate cover versionArray of songs
upload-extendUpload + ExtendArray of songs, or paired objects if auto_concat
upload-coverUpload + CoverArray of songs
concat_musicConcatenate songsArray of songs

Response Format

  • Standard tasks: data is an array of song objects
  • Tasks with auto_concat: true: data is an array of paired objects [{extended, full}, ...]

For detailed auto_concat response examples, see:

  • upload-extend-music
  • upload-cover-music

State Values

  • pending - Task queued
  • running - Processing
  • succeeded - Completed successfully
  • failed - Task failed
get/api/v1/sonic/task/{task_id}

Request

  • Base URL
    https://api.musicapi.ai
  • URL
    https://api.musicapi.ai/api/v1/sonic/task/{task_id}
  • Auth
    HTTP bearer

Path parameters

task_idstring required

The task ID returned from create/extend/cover/upload-extend/upload-cover endpoints

Response

Success

codeinteger required

Response code (200 for success)

messagestring required

Response message

Changes

No recorded changes to this operation across all 1 revision of this API.