使用 POST /mj/submit/modal 提交来自缩放或区域重绘的 Midjourney modal 输出,并在 CometAPI 中继续下一步图像编辑流程。
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
}status: "MODAL" 时,提交额外输入。这是某些需要额外数据的操作所必需的,例如局部重绘蒙版或自定义缩放 Prompt。
| 操作 | 需要提交的内容 |
|---|---|
| Vary (Region) / Inpaint | maskBase64(PNG 蒙版)+ prompt |
| Custom Zoom | prompt(例如 "your prompt --zoom 2") |
Bearer token authentication. Use your CometAPI key.
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
}