Sử dụng POST /mj/submit/modal để gửi đầu ra modal của Midjourney từ zoom hoặc thiết kế lại vùng và tiếp tục bước chỉnh sửa hình ảnh tiếp theo trong CometAPI.
curl --request POST \
--url https://api.cometapi.com/mj/submit/modal \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"taskId": "14001934816969359"
}
'{
"code": 123,
"description": "<string>",
"properties": {},
"result": 123
}status: "MODAL". Điều này là bắt buộc đối với các thao tác cần dữ liệu bổ sung, chẳng hạn như mặt nạ inpainting hoặc Prompt zoom tùy chỉnh.
| Thao tác | Nội dung cần gửi |
|---|---|
| Vary (Region) / Inpaint | maskBase64 (mặt nạ PNG) + prompt |
| Custom Zoom | prompt (ví dụ: “your prompt —zoom 2”) |
Bearer token authentication. Use your CometAPI key.
Task id from the parent task whose modal action you are continuing.
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.
curl --request POST \
--url https://api.cometapi.com/mj/submit/modal \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"taskId": "14001934816969359"
}
'{
"code": 123,
"description": "<string>",
"properties": {},
"result": 123
}