Buat task editor Midjourney
Gunakan API Submit Editor CometAPI (POST /mj/submit/edits) untuk mengedit gambar Midjourney dengan maskBase64, prompt, original opsional, dan edit transparan.
Dua mode umum
- Edit bermask: kirim
maskBase64plusprompt, dan secara opsionalimageasli - Gambar transparan: kirim
imagepluspromptsaat Anda menginginkan hasil berlatar belakang transparan tanpa mask terpisah
Alur task
Kirim task editor
Poll task
Lanjutkan dari hasil
Otorisasi
Bearer token authentication. Use your CometAPI key.
Body
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.
Respons
Success