Soumettre l’éditeur
Utilisez l’API CometAPI Submit Editor (POST /mj/submit/edits) pour modifier des images Midjourney avec maskBase64, des prompts, des originaux facultatifs et des modifications transparentes.
{
"code": 123,
"description": "<string>",
"result": "<string>"
}Utilisez ce endpoint pour modifier une image Midjourney avec un masque, ou pour générer un résultat avec arrière-plan transparent à partir d’un prompt et d’une image source.Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Deux modes courants
- Modification masquée : envoyez
maskBase64avecprompt, et éventuellement l’imaged’origine - Dessin transparent : envoyez
imageavecpromptlorsque vous voulez un résultat avec arrière-plan transparent sans masque séparé
Flux de tâche
Soumettre la tâche d’édition
Interroger la tâche
Continuer à partir du résultat
Autorisations
Bearer token authentication. Use your CometAPI key.
Corps
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>"
}