الانتقال إلى المحتوى الرئيسي
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.

نظرة عامة

أرسل إدخالًا إضافيًا عندما تُرجع مهمة Action القيمة status: "MODAL". هذا مطلوب للعمليات التي تحتاج إلى بيانات إضافية، مثل أقنعة inpainting أو custom zoom prompts.

متى يُستخدم

العمليةما الذي يجب إرساله
Vary (Region) / InpaintmaskBase64 (قناع PNG) + prompt
Custom Zoomprompt (مثل: “your prompt —zoom 2”)
للاطلاع على مثال كامل لتدفق inpaint، راجع Midjourney API Quick Start.

التفويضات

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