Beschrijf een afbeelding met Midjourney
Gebruik CometAPI POST /mj/submit/describe om een eerste Midjourney-prompt uit een geüploade afbeelding te halen voor snel remixen en itereren.
Waar deze route goed voor is
- Een afbeelding omzetten in promptkandidaten die je kunt remixen
- Een visuele richting halen voordat je aan een nieuwe imagine-taak begint
- Een snellere authoring-loop bouwen wanneer je de eerste prompt niet helemaal vanaf nul wilt schrijven
Taakstroom
Dien de afbeelding in
Poll de describe-taak
Hergebruik de gegenereerde prompt
Autorisaties
Bearer token authentication. Use your CometAPI key.
Body
Base64-encoded image to describe. Use a data URI such as data:image/png;base64,xxx. Provide either base64 or link.
URL of the image to describe. Provide either link or base64.
Bot type to use. MID_JOURNEY for Midjourney (default), NIJI_JOURNEY for Niji.
NIJI_JOURNEY, MID_JOURNEY Custom state string. Returned as-is in the task result and webhook callback for your own tracking.
Respons
Success
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.