Create a Midjourney editor task
Use CometAPI Submit Editor API (POST /mj/submit/edits) to edit Midjourney images with maskBase64, prompts, optional originals, and transparent edits.
Two common modes
- Masked edit: send
maskBase64plusprompt, and optionally the originalimage - Transparent drawing: send
imagepluspromptwhen you want a transparent-background result without a separate mask
Task flow
Submit the editor task
Poll the task
Continue from the result
Authorizations
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.
Response
Success