Skip to main content
POST
cURL

Genel bakış

Bir Action görevi status: "MODAL" döndürdüğünde ek girdi gönderin. Bu, inpainting maskeleri veya özel zoom prompt’ları gibi ek veri gerektiren işlemler için zorunludur.

Ne zaman kullanılmalı

Tam bir inpaint akışı örneği için Midjourney API ile başlayın sayfasına bakın.

Yetkilendirmeler

Authorization
string
header
gerekli

Bearer token authentication. Use your CometAPI key.

Gövde

application/json
taskId
string
varsayılan:<task_id>
gerekli

Task id from the parent task whose modal action you are continuing.

customId
string
gerekli

The button customId that opened the modal, such as MJ::Inpaint::1::xxxx::SOLO from the Vary (Region) button. Required.

maskBase64
string

Base64-encoded mask image for partial inpainting. White areas are repainted; black areas are preserved.

prompt
string

Text prompt describing the desired change for the selected region.

Yanıt

200 - application/json

Success

code
integer
gerekli

The status of the task

description
string
gerekli
properties
object
gerekli
result
integer
gerekli

The task ID of the returned task