Zoom Out
tool 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": "outpaint",
"input": {
"origin_task_id": "741ca8f8-be31-45cd-a33f-c21b8bff8ad8",
"zoom_ratio": "2",
"prompt": "flying night city",
"aspect_ratio": "16:9",
"skip_prompt_check": false
},
"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": "outpaint",
"input": {
"origin_task_id": "741ca8f8-be31-45cd-a33f-c21b8bff8ad8",
"zoom_ratio": "2",
"prompt": "flying night city",
"aspect_ratio": "16:9",
"skip_prompt_check": false
},
"config": {
"service_mode": "",
"webhook_config": {
"endpoint": "",
"secret": ""
}
}
}'
{
"code": 200,
"data": {
"task_id": "672eced8-11fc-4dad-830a-688a6bf91435",
"model": "midjourney",
"task_type": "outpaint",
"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"
}