Skip to main content
POST
cURL

Огляд

Надішліть додаткові вхідні дані, коли task Action повертає status: "MODAL". Це потрібно для операцій, яким потрібні додаткові дані, наприклад маски inpainting або власні Prompt для zoom.

Коли використовувати

Для повного прикладу процесу inpaint дивіться Start with Midjourney API.

Авторизації

Authorization
string
header
обов'язково

Bearer token authentication. Use your CometAPI key.

Тіло

application/json
taskId
string
за замовчуванням:<task_id>
обов'язково

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

customId
string
обов'язково

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.

Відповідь

200 - application/json

Success

code
integer
обов'язково

The status of the task

description
string
обов'язково
properties
object
обов'язково
result
integer
обов'язково

The task ID of the returned task