sonic
get music
Use the obtained task ID to poll song data. Recommended polling interval: 15s-25s.
Supported Task Types
| Task Type | Description | Response Format |
|---|---|---|
| create_music | Standard music creation | Array of songs |
| extend_music | Extend existing song | Array of songs |
| cover_music | Create cover version | Array of songs |
| upload-extend | Upload + Extend | Array of songs, or paired objects if auto_concat |
| upload-cover | Upload + Cover | Array of songs |
| concat_music | Concatenate songs | Array 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 URLhttps://api.musicapi.ai
- URLhttps://api.musicapi.ai/api/v1/sonic/task/{task_id}
- AuthHTTP bearer
Path parameters
task_idstring required
The task ID returned from create/extend/cover/upload-extend/upload-cover endpoints
Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.