Skip to main content
POST
cURL

概述

当某个 Action 任务返回 status: "MODAL" 时,提交额外输入。这对于需要附加数据的操作是必需的,例如局部重绘蒙版或自定义缩放 Prompt。

何时使用

完整的局部重绘流程示例,请参阅 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