Descreva uma imagem com Midjourney
Use o CometAPI POST /mj/submit/describe para extrair um prompt inicial no estilo Midjourney de uma imagem enviada para remixagem e iteração rápidas.
Para que esta rota é útil
- Transformar uma imagem em candidatos de prompt que você pode remixar
- Extrair uma direção visual antes de iniciar uma nova tarefa imagine
- Criar um fluxo de criação mais rápido quando você não quiser escrever o primeiro prompt do zero
Fluxo da tarefa
Envie a imagem
Consulte a tarefa de descrição
Reutilize o prompt gerado
Autorizações
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.
Resposta
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.