Hành động (Upscale, Variation, Reroll, Zoom)
Sử dụng CometAPI POST /mj/submit/action để áp dụng các hành động Midjourney—upscale, variation, reroll, zoom, và nhiều thao tác khác—trên các hình ảnh được tạo qua imaging.
Sử dụng endpoint này sau khi một tác vụ Midjourney trả về các nút hành động. Endpoint này sẽ bắt đầu một tác vụ tiếp theo như upscale, variation, reroll, zoom hoặc 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.
Bạn cần hai giá trị
taskIdtừ tác vụ Midjourney gốc hoặc gần nhấtcustomIdtừ mảngbuttonsmới nhất được trả về bởi Fetch Single Task
Các hành động phổ biến
U1đếnU4: upscale một hình ảnh từ lướiV1đếnV4: tạo các variation từ một vị trí hình ảnh- Reroll: tạo lại toàn bộ lưới
- Zoom và Pan: mở rộng bố cục hiện có
Sau khi bạn gửi một action
Poll tác vụ mới
Xử lý các action chỉ dành cho modal
MODAL, tiếp tục với Modal để cung cấp dữ liệu đầu vào bổ sung.Ủy quyền
Bearer token authentication. Use your CometAPI key.
Nội dung
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.