CreateTask
description
Create a Flux-Image-Generator task
Usage
URL
https://www.vmagic.app/api/create_flux_image_generator_api
Header
{
'Content-Type': 'application/json',
'Authorization': `Bearer ${token}`
}
Params
{
prompt: string,
aspect_radio: string, // Square/Landscape/Portrait
style: string // None/Digital Art/Anime/3D Model/Pixel Art/Comic Book/Photographic
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
}