---
title: "Submit Editor"
method: POST
path: "/mj/submit/edits"
---

# Submit Editor

`POST /mj/submit/edits`

## Request body

- object
  - `prompt` string, required — Text prompt describing the desired edit.
  - `image` string, required — Image to edit. Pass a public URL or a base64-encoded data URI.
  - `state` string — Custom state string. Returned as-is in the task result and webhook callback for your own tracking.
  - `notifyHook` string — Webhook URL to receive task status updates. Falls back to your account-level webhook if omitted.
  - `noStorage` boolean — When `true`, return the original provider image URL instead of a CometAPI-proxied link.

## Response `200`

Success

- object
  - `code` integer — 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.
  - `description` string
  - `result` string

---

[API](https://skmtc.net/cometapi/apis/create-api-key.md) · [All operations](https://skmtc.net/cometapi/apis/create-api-key/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cometapi/create-api-key/versions/0863102dbf34/schema)
