Skip to main content
POST
cURL

نظرة عامة

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

متى تستخدمه

للاطلاع على مثال كامل لتدفق inpaint، راجع Start with Midjourney API.

التفويضات

Authorization
string
header
مطلوب

Bearer token authentication. Use your CometAPI key.

الجسم

application/json
taskId
string
افتراضي:<task_id>
مطلوب

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

customId
string
مطلوب

The button customId that opened the modal, such as MJ::Inpaint::1::xxxx::SOLO from the Vary (Region) button. Required.

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