Tạo một tác vụ chỉnh sửa Midjourney
Sử dụng API Submit Editor của CometAPI (POST /mj/submit/edits) để chỉnh sửa hình ảnh Midjourney với maskBase64, prompt, ảnh gốc tùy chọn và chỉnh sửa nền trong suốt.
Hai chế độ phổ biến
- Chỉnh sửa có mask: gửi
maskBase64cùng vớiprompt, và có thể tùy chọn gửiimagegốc - Vẽ trong suốt: gửi
imagecùng vớipromptkhi bạn muốn nhận kết quả có nền trong suốt mà không cần mask riêng
Luồng tác vụ
Gửi tác vụ chỉnh sửa
Thăm dò tác vụ
Tiếp tục từ kết quả
Ủy quyền
Bearer token authentication. Use your CometAPI key.
Nội dung
Text prompt describing the desired edit.
Image to edit. Pass a public URL or a base64-encoded data URI.
Custom state string. Returned as-is in the task result and webhook callback for your own tracking.
Webhook URL to receive task status updates. Falls back to your account-level webhook if omitted.
When true, return the original provider image URL instead of a CometAPI-proxied link.
Phản hồi
Success