Используйте API CometAPI Submit Editor (POST /mj/submit/edits), чтобы редактировать изображения Midjourney с помощью maskBase64, prompts, необязательных originals и прозрачных правок.
{
"code": 123,
"description": "<string>",
"result": "<string>"
}maskBase64 и prompt, а при необходимости — исходное imageimage и prompt, если хотите получить результат с прозрачным фоном без отдельной маскиОтправьте задачу в editor
Опрашивайте задачу
Продолжите работу с результатом
Bearer token authentication. Use your CometAPI key.
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.
{
"code": 123,
"description": "<string>",
"result": "<string>"
}