v1

latestOpenAPI 3.1.02026-07-267724480.0 KB

Submit Editor

post/mj/submit/edits

Request body

promptstring required

Text prompt describing the desired edit.

imagestring required

Image to edit. Pass a public URL or a base64-encoded data URI.

statestring

Custom state string. Returned as-is in the task result and webhook callback for your own tracking.

notifyHookstring

Webhook URL to receive task status updates. Falls back to your account-level webhook if omitted.

noStorageboolean

When true, return the original provider image URL instead of a CometAPI-proxied link.

Response

Success

codeinteger

Submission status code. 1 = submitted successfully (result carries the task id). 21 = the action opened a confirmation modal; continue with /mj/submit/modal using the returned task id. 4 = parameter error; description explains the cause.

descriptionstring
resultstring