إنشاء مهمة إجراء في Midjourney
استخدم CometAPI POST /mj/submit/action لتطبيق إجراءات Midjourney — upscale وvariation وreroll وzoom وغير ذلك — على الصور المُولَّدة.
تحتاج إلى قيمتين
taskIdمن مهمة Midjourney الأصلية أو الأحدثcustomIdمن أحدث مصفوفةbuttonsمُعادة بواسطة جلب مهمة واحدة
الإجراءات الشائعة
U1إلىU4: upscale لصورة واحدة من الشبكةV1إلىV4: إنشاء variations من موضع صورة واحد- Reroll: إعادة إنشاء الشبكة بالكامل
- Zoom وPan: توسيع التكوين الحالي
بعد إرسال إجراء
إنشاء المهمة اللاحقة
taskId وcustomId، ثم خزّن id المهمة الجديد المُعاد.الاستعلام عن المهمة الجديدة
التعامل مع الإجراءات الخاصة بـ modal فقط
MODAL، فتابع باستخدام Modal لتقديم الإدخال الإضافي.التفويضات
Bearer token authentication. Use your CometAPI key.
الجسم
Action id taken from the latest buttons array returned by the fetch endpoint.
Midjourney task id you want to continue from.
Custom state string. Returned as-is in the task result and webhook callback for your own tracking.
Whether to force remix mode when the current action supports it.
Whether to prefer the same provider account used by the current task.
الاستجابة
Action task accepted.
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.
New Midjourney task id created for the action.