Ana içeriğe atla
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.

Genel bakış

Bir Action görevi status: "MODAL" döndürdüğünde ek girdi gönderin. Bu, inpainting maskeleri veya özel zoom prompt’ları gibi ek veri gerektiren işlemler için gereklidir.

Ne zaman kullanılır

İşlemNe gönderilmeli
Vary (Region) / InpaintmaskBase64 (PNG maskesi) + prompt
Custom Zoomprompt (ör. “your prompt —zoom 2”)
Eksiksiz bir inpaint akışı örneği için Midjourney API Quick Start belgesine bakın.

Yetkilendirmeler

Authorization
string
header
gerekli

Bearer token authentication. Use your CometAPI key.

Gövde

application/json
taskId
string
varsayılan:example
gerekli

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.

Yanıt

200 - application/json

Success

code
integer
gerekli

The status of the task

description
string
gerekli
properties
object
gerekli
result
integer
gerekli

The task ID of the returned task