Skip to main content
POST
cURL

概覽

Action 任務回傳 status: "MODAL" 時,提交額外輸入。這對於需要額外資料的操作是必要的,例如 inpainting 遮罩或自訂縮放 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