CreateTask
description
Create a Lyrics-Generator task
Usage
URL
https://www.vmagic.app/api/create_lyrics_generator_api
Header
{
'Content-Type': 'application/json',
'Authorization': `Bearer ${token}`
}
Params
{
theme: string,
style: string, // pop/rock/classic etc...
language: string // English or Chinese
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
}