Skip to main content
POST
cURL

概要

Action タスクが status: "MODAL" を返したときに、追加の入力を送信します。これは、インペイントマスクやカスタムズームプロンプトなど、追加データが必要な操作に必須です。

使用するタイミング

完全なインペイントフローの例については、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