Skip to main content
POST
cURL

Обзор

Отправьте дополнительный ввод, когда задача Action возвращает status: "MODAL". Это требуется для операций, которым нужны дополнительные данные, например маски inpainting или custom zoom Prompt.

Когда использовать

Полный пример процесса 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