Midjourney
Modal (Thiết kế lại vùng & Zoom)
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.
POST
Modal (Area Redesign & Zoom)
Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
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 dùng
| 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”) |
Ủ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.
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.