Tạo một tác vụ hành động Midjourney
Sử dụng CometAPI POST /mj/submit/action để áp dụng các hành động Midjourney—upscale, variation, reroll, zoom và nhiều hơn nữa—lên các hình ảnh đã được tạo.
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 biến thể 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 hành động
Tạo tác vụ tiếp theo
taskId và customId, sau đó lưu task id mới được trả về.Poll tác vụ mới
Xử lý các hành động chỉ hỗ trợ 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 provider account used by the current task.
Phản hồi
Action task accepted.
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.
New Midjourney task id created for the action.