Midjourney
Tạo một tác vụ modal Midjourney
Sử dụng POST /mj/submit/modal để gửi đầu ra modal 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.
POST
cURL
Tổng quan
Gửi dữ liệu đầu vào bổ sung khi một tác vụ Action trả vềstatus: "MODAL". Điều này là bắt buộc đối với các thao tác cần thêm dữ liệu, chẳng hạn như mặt nạ inpainting hoặc Prompt zoom tùy chỉnh.
Khi nào nên sử dụng
Ủy quyền
Bearer token authentication. Use your CometAPI key.
Nội dung
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.