Descrivere un'immagine con Midjourney
Usa CometAPI POST /mj/submit/describe per estrarre un prompt iniziale in stile Midjourney da un’immagine caricata, per remix rapidi e iterazioni veloci.
A cosa serve questa route
- Trasformare un’immagine in candidati di Prompt che puoi remixare
- Estrarre una direzione visiva prima di iniziare una nuova attività imagine
- Creare un ciclo di authoring più veloce quando non vuoi scrivere il primo Prompt da zero
Flusso dell’attività
Invia l'immagine
Interroga il task describe
Riutilizza il prompt generato
Autorizzazioni
Bearer token authentication. Use your CometAPI key.
Corpo
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.
Risposta
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.