CreateTask
description
Create a Music-Generator task
Usage
URL
https://www.vmagic.app/api/create_music_generator_api
Header
{
'Content-Type': 'application/json',
'Authorization': `Bearer ${token}`
}
Params
{
lyrics: string,
style_prompt: string, // pop/rock/classic etc...
ref_style_audio: string // ref audio url
duration:string // "285" or "85"
webhook_url?: string
}
Response
{
data?: {
task_id: string // task_id, query the status of the task by this id, or receive a webhook
},
success: boolean,
errorMsg: string,
error_code: number
}