Skip to main content
POST
cURL

Visão geral

Envie entradas adicionais quando uma tarefa de Action retornar status: "MODAL". Isso é necessário para operações que exigem dados extras, como máscaras de inpainting ou prompts de zoom personalizados.

Quando usar

Para um exemplo completo do fluxo de inpaint, consulte Começar com a API do Midjourney.

Autorizações

Authorization
string
header
obrigatório

Bearer token authentication. Use your CometAPI key.

Corpo

application/json
taskId
string
padrão:<task_id>
obrigatório

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

customId
string
obrigatório

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.

Resposta

200 - application/json

Success

code
integer
obrigatório

The status of the task

description
string
obrigatório
properties
object
obrigatório
result
integer
obrigatório

The task ID of the returned task

Última modificação em 23 de junho de 2026