Imagine
Use POST /mj/submit/imagine no CometAPI para criar tarefas imagine do Midjourney com parâmetros completos do Discord, acompanhar o status do task_id e habilitar efeitos de movimento de imagem para vídeo.
Use este endpoint para iniciar o fluxo principal do Midjourney. Todas as etapas posteriores, incluindo upscale, variation e custom zoom, começam com uma tarefa imagine bem-sucedida.Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
O que a primeira resposta fornece
resulté o id da tarefa que você consultará em seguidacodeainda pode ser um código de sucesso mesmo quando não for um200no estilo HTTP
Fluxo principal
Poll until the task finishes
SUCCESS, MODAL ou FAILURE.Continue with post-processing
Padrão opcional de prompt para vídeo
Se você quiser movimento a partir de uma imagem de origem, adicione uma URL de imagem mais flags de vídeo do Midjourney no prompt, como--video e --motion.Autorizações
Bearer token authentication. Use your CometAPI key.
Corpo
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.