/imagine
command from the offical Midjourney.{
"prompt": "a cute puppy",
"process_mode": "relax",
"aspect_ratio": "4:3",
"webhook_endpoint": "",
"webhook_secret": ""
}
curl --location --request POST 'https://api.piapi.ai/mj/v2/imagine' \
--header 'X-API-KEY: {{x-api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "a cute puppy",
"process_mode": "relax",
"aspect_ratio": "4:3",
"webhook_endpoint": "",
"webhook_secret": ""
}'
{
"task_id": "5b01d63a**************812323adf8e1",
"status": "success",
"message": ""
}