upscale
command from the official Midjourney.public
means this task will be processed under PAYG mode.private
means this task will be processed under HYA mode.{
"model": "midjourney",
"task_type": "upscale",
"input": {
"origin_task_id": "ee6f1989-5de2-4e4a-b860-b059ad57a023",
"index": "3"
},
"config": {
"service_mode": "",
"webhook_config": {
"endpoint": "",
"secret": ""
}
}
}
curl --location --request POST 'https://api.piapi.ai/api/v1/task' \
--header 'X-API-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "midjourney",
"task_type": "upscale",
"input": {
"origin_task_id": "ee6f1989-5de2-4e4a-b860-b059ad57a023",
"index": "3"
},
"config": {
"service_mode": "",
"webhook_config": {
"endpoint": "",
"secret": ""
}
}
}'
{
"code": 200,
"data": {
"task_id": "f82d8ace-xxxx-xxxx-xxxx-xxxxxx72038d",
"model": "midjourney",
"task_type": "upscale",
"status": "pending",
"config": {
"service_mode": "public",
"webhook_config": {
"endpoint": "",
"secret": ""
}
},
"input": {},
"output": {
"image_url": "",
"image_urls": null,
"temporary_image_urls": null,
"discord_image_url": "",
"actions": [],
"progress": 0,
"intermediate_image_urls": null
},
"meta": {},
"detail": null,
"logs": [],
"error": {
"code": 0,
"raw_message": "",
"message": "",
"detail": null
}
},
"message": "success"
}