Eine Midjourney-Imagine-Task erstellen
Verwende POST /mj/submit/imagine in CometAPI, um Midjourney-Imagine-Tasks mit vollständigen Discord-Parametern zu erstellen, den task_id-Status nachzuverfolgen und Motion-Effekte für Bild-zu-Video zu aktivieren.
Was die erste Antwort liefert
resultist die task id, die du als Nächstes abfragen wirstcodekann weiterhin ein Erfolgs-Code sein, selbst wenn es kein HTTP-artiges200ist
Kern-Workflow
Imagine-Task senden
Abfragen, bis die Task abgeschlossen ist
SUCCESS, MODAL oder FAILURE erreicht.Mit der Nachbearbeitung fortfahren
Optionales Video-Prompt-Muster
Wenn du Bewegung aus einem Quellbild erzeugen möchtest, füge dem Prompt eine Bild-URL sowie Midjourney-Video-Flags wie--video und --motion hinzu.Autorisierungen
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.
Antwort
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.