Maak een Midjourney imagine-taak aan
Gebruik POST /mj/submit/imagine in CometAPI om Midjourney imagine-taken aan te maken met volledige Discord-parameters, de status van task_id te volgen en image-to-video motion-effecten in te schakelen.
Wat de eerste response je geeft
resultis de task id die je hierna gaat pollencodekan nog steeds een succescode zijn, zelfs wanneer deze niet de HTTP-stijl200heeft
Kernworkflow
Dien de imagine-taak in
Poll tot de taak is voltooid
SUCCESS, MODAL of FAILURE bereikt.Ga verder met nabewerking
Optioneel video-promptpatroon
Als je beweging wilt vanuit een bronafbeelding, voeg dan een image URL plus Midjourney-videoflags toe aan de prompt, zoals--video en --motion.Autorisaties
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.