Mô tả một hình ảnh bằng Midjourney
Sử dụng CometAPI POST /mj/submit/describe để trích xuất một prompt Midjourney ban đầu từ hình ảnh đã tải lên nhằm remix và lặp lại nhanh hơn.
Route này phù hợp cho việc gì
- Biến một hình ảnh thành các phương án prompt mà bạn có thể remix
- Trích xuất một định hướng hình ảnh trước khi bạn bắt đầu một tác vụ imagine mới
- Xây dựng vòng lặp soạn thảo nhanh hơn khi bạn không muốn tự viết prompt đầu tiên từ đầu
Quy trình tác vụ
Gửi hình ảnh
task id được trả về.Thăm dò tác vụ describe
Tái sử dụng prompt đã tạo
Ủy quyền
Bearer token authentication. Use your CometAPI key.
Nội dung
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.
Phản hồi
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.