Buat task imagine Midjourney
Gunakan POST /mj/submit/imagine di CometAPI untuk membuat task imagine Midjourney dengan parameter Discord lengkap, melacak status task_id, dan mengaktifkan efek gerakan image-to-video.
Apa yang diberikan oleh respons pertama
resultadalah task id yang akan Anda poll berikutnyacodetetap bisa berupa kode sukses meskipun bukan200bergaya HTTP
Alur kerja inti
Submit the imagine task
Poll until the task finishes
SUCCESS, MODAL, atau FAILURE.Continue with post-processing
Pola prompt video opsional
Jika Anda ingin gerakan dari gambar sumber, tambahkan URL gambar beserta flag video Midjourney dalam prompt, seperti--video dan --motion.Otorisasi
Bearer token authentication. Use your CometAPI key.
Body
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.
Respons
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.