Skip to main content
POST
cURL

Resumen

Envía entrada adicional cuando una tarea de Action devuelve status: "MODAL". Esto es obligatorio para operaciones que requieren datos adicionales, como máscaras de inpainting o prompts de zoom personalizados.

Cuándo usarlo

Para ver un ejemplo completo del flujo de inpaint, consulta Start with Midjourney API.

Autorizaciones

Authorization
string
header
requerido

Bearer token authentication. Use your CometAPI key.

Cuerpo

application/json
taskId
string
predeterminado:<task_id>
requerido

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

customId
string
requerido

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.

Respuesta

200 - application/json

Success

code
integer
requerido

The status of the task

description
string
requerido
properties
object
requerido
result
integer
requerido

The task ID of the returned task