Skip to main content
POST
cURL
استخدم نقطة النهاية هذه بعد أن تُرجع مهمة Midjourney أزرار الإجراءات. فهي تبدأ مهمة لاحقة جديدة مثل upscale أو variation أو reroll أو zoom أو pan.

تحتاج إلى قيمتين

  • taskId من مهمة Midjourney الأصلية أو الأحدث
  • customId من أحدث مصفوفة buttons مُعادة بواسطة جلب مهمة واحدة
customId غير ثابت. لا تقم أبدًا بترميزه بشكل ثابت. اقرأه دائمًا من أحدث استجابة polling.

الإجراءات الشائعة

  • U1 إلى U4: upscale لصورة واحدة من الشبكة
  • V1 إلى V4: إنشاء variations من موضع صورة واحد
  • Reroll: إعادة إنشاء الشبكة بالكامل
  • Zoom وPan: توسيع التكوين الحالي

بعد إرسال إجراء

1

إنشاء المهمة اللاحقة

أرسل taskId وcustomId، ثم خزّن id المهمة الجديد المُعاد.
2

الاستعلام عن المهمة الجديدة

نفّذ استعلام جلب مهمة واحدة مرة أخرى حتى يكتمل الإجراء.
3

التعامل مع الإجراءات الخاصة بـ modal فقط

إذا وصلت المهمة الجديدة إلى MODAL، فتابع باستخدام Modal لتقديم الإدخال الإضافي.

التفويضات

Authorization
string
header
مطلوب

Bearer token authentication. Use your CometAPI key.

الجسم

application/json
customId
string
مطلوب

Action id taken from the latest buttons array returned by the fetch endpoint.

taskId
string
مطلوب

Midjourney task id you want to continue from.

state
string

Custom state string. Returned as-is in the task result and webhook callback for your own tracking.

enableRemix
boolean

Whether to force remix mode when the current action supports it.

chooseSameChannel
boolean

Whether to prefer the same provider account used by the current task.

الاستجابة

200 - application/json

Action task accepted.

code
integer
مطلوب

Submission status code. 1 = submitted successfully (result carries the task id). 21 = the action opened a confirmation modal; continue with /mj/submit/modal using the returned task id. 4 = parameter error; description explains the cause.

description
string
مطلوب
result
string
مطلوب

New Midjourney task id created for the action.

properties
object