إنشاء مهمة Midjourney imagine
استخدم POST /mj/submit/imagine في CometAPI لإنشاء مهام Midjourney imagine مع معاملات Discord الكاملة، وتتبع حالة task_id، وتمكين تأثيرات الحركة من الصورة إلى الفيديو.
ما الذي تمنحك إياه الاستجابة الأولى
resultهو معرّف المهمة الذي ستقوم باستطلاعه بعد ذلك- يمكن أن يكون
codeرمز نجاح حتى عندما لا يكون200بأسلوب HTTP
سير العمل الأساسي
إرسال مهمة imagine
الاستطلاع حتى تنتهي المهمة
SUCCESS أو MODAL أو FAILURE.المتابعة بالمعالجة اللاحقة
نمط Prompt اختياري للفيديو
إذا كنت تريد حركة من صورة مصدر، فأضف URL للصورة مع علامات فيديو Midjourney في الـ Prompt، مثل--video و --motion.التفويضات
Bearer token authentication. Use your CometAPI key.
الجسم
Text prompt for the generation. Supports standard Midjourney parameters such as --v, --ar, --stylize, etc.
"a paper boat floating on calm water at sunrise --v 6.1"
Bot type to use. MID_JOURNEY for Midjourney (default), NIJI_JOURNEY for Niji.
MID_JOURNEY, NIJI_JOURNEY Filter which Midjourney account modes may be used for this task.
Base64-encoded reference images. Each item should be a data URI such as data:image/png;base64,xxx.
Custom state string. Returned as-is in the task result and webhook callback for your own tracking.
الاستجابة
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.
Task id returned after submission.