Midjourney
Створити modal task Midjourney
Використовуйте POST /mj/submit/modal, щоб надіслати modal output Midjourney із zoom або redesign області та продовжити наступний крок редагування зображення в CometAPI.
POST
cURL
Огляд
Надішліть додаткові вхідні дані, коли task Action повертаєstatus: "MODAL". Це потрібно для операцій, яким потрібні додаткові дані, наприклад маски inpainting або власні Prompt для zoom.
Коли використовувати
Авторизації
Bearer token authentication. Use your CometAPI key.
Тіло
application/json
Task id from the parent task whose modal action you are continuing.
The button customId that opened the modal, such as MJ::Inpaint::1::xxxx::SOLO from the Vary (Region) button. Required.
Base64-encoded mask image for partial inpainting. White areas are repainted; black areas are preserved.
Text prompt describing the desired change for the selected region.