メインコンテンツへスキップ
POST
/
mj
/
submit
/
modal
Modal (Area Redesign & Zoom)
curl --request POST \
  --url https://api.cometapi.com/mj/submit/modal \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "taskId": "14001934816969359"
}
'
{
  "code": 123,
  "description": "<string>",
  "properties": {},
  "result": 123
}

概要

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

使用するタイミング

操作送信する内容
Vary (Region) / InpaintmaskBase64(PNG マスク) + prompt
Custom Zoomprompt(例: “your prompt —zoom 2”)
完全なインペイントのフロー例については、Midjourney API クイックスタート を参照してください。

承認

Authorization
string
header
必須

Bearer token authentication. Use your CometAPI key.

ボディ

application/json
taskId
string
デフォルト:example
必須

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

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