Действие (Upscale, Variation, Reroll, Zoom)
Используйте CometAPI POST /mj/submit/action, чтобы применять действия Midjourney — upscale, variation, reroll, zoom и другие — к изображениям, сгенерированным через imaging.
Используйте этот endpoint после того, как задача Midjourney вернёт кнопки действий. Он запускает новую последующую задачу, такую как upscale, variation, reroll, zoom или pan.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.
Вам понадобятся два значения
taskIdиз исходной или самой последней задачи MidjourneycustomIdиз последнего массиваbuttons, возвращённого методом Fetch Single Task
Распространённые действия
U1toU4: увеличить одно изображение из сеткиV1toV4: сгенерировать вариации из одной позиции изображения- Reroll: заново сгенерировать всю сетку
- Zoom and Pan: расширить существующую композицию
После отправки действия
Создайте последующую задачу
taskId и customId, затем сохраните новый возвращённый id задачи.Опросите новую задачу
Обработайте действия только с modal
MODAL, продолжите с Modal, чтобы передать дополнительный ввод.Авторизации
Bearer token authentication. Use your CometAPI key.
Тело
Action id taken from the latest buttons array returned by the fetch endpoint.
Midjourney task id you want to continue from.
Custom state string. Returned as-is in the task result and webhook callback for your own tracking.
Whether to force remix mode when the current action supports it.
Whether to prefer the same channel account used by the current task.