Chuyển đến nội dung chính
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
}

Documentation Index

Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt

Use this file to discover all available pages before exploring further.

Tổng quan

Gửi dữ liệu đầu vào bổ sung khi một tác vụ Action trả về status: "MODAL". Điều này là bắt buộc đối với các thao tác cần thêm dữ liệu, chẳng hạn như mặt nạ inpainting hoặc Prompt zoom tùy chỉnh.

Khi nào nên dùng

Thao tácNội dung cần gửi
Vary (Region) / InpaintmaskBase64 (mặt nạ PNG) + prompt
Custom Zoomprompt (ví dụ: “your prompt —zoom 2”)
Để xem ví dụ đầy đủ về quy trình inpaint, hãy xem Midjourney API Quick Start.

Ủy quyền

Authorization
string
header
bắt buộc

Bearer token authentication. Use your CometAPI key.

Nội dung

application/json
taskId
string
mặc định:example
bắt buộc

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.

Phản hồi

200 - application/json

Success

code
integer
bắt buộc

The status of the task

description
string
bắt buộc
properties
object
bắt buộc
result
integer
bắt buộc

The task ID of the returned task