Skip to main content
POST
cURL
Bu endpoint’i, bir Midjourney görselini maskeyle düzenlemek veya prompt artı kaynak görselden şeffaf arka planlı bir sonuç üretmek için kullanın.

İki yaygın mod

  • Maskeli düzenleme: maskBase64 ile birlikte prompt gönderin ve isteğe bağlı olarak orijinal image görselini ekleyin
  • Şeffaf çizim: ayrı bir maskeye gerek olmadan şeffaf arka planlı bir sonuç istediğinizde image ile birlikte prompt gönderin

Görev akışı

1

Editör görevini gönderin

Düzenleme modunu seçin, prompt’u ve kaynak verileri gönderin, ardından döndürülen görev kimliğini saklayın.
2

Görevi yoklayın

Görev son durumlardan birine ulaşana kadar Fetch Single Task kullanın.
3

Sonuçtan devam edin

Nihai varlığı doğrudan kullanın veya düzenlenen sonuçta devam düğmeleri gösteriliyorsa Action tetikleyin.

Yetkilendirmeler

Authorization
string
header
gerekli

Bearer token authentication. Use your CometAPI key.

Gövde

application/json
prompt
string
varsayılan:Change to white background
gerekli

Text prompt describing the desired edit.

image
string
varsayılan:https://your-image-host/source.png
gerekli

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.

Yanıt

200 - application/json

Success

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