Skip to main content
POST
cURL
使用此端點可從輸入圖片中擷取 Midjourney 風格的 prompt 建議。

這個路由適合用來做什麼

  • 將圖片轉成可供你混編的 prompt 候選
  • 在開始全新的 imagine 任務前,先擷取視覺方向
  • 當你不想從零撰寫第一個 prompt 時,建立更快速的創作流程

任務流程

1

提交圖片

上傳或引用你希望 Midjourney 描述的圖片,並儲存回傳的 task id。
2

輪詢 describe 任務

使用 取得單一任務,直到任務完成並回傳類似 prompt 的輸出。
3

重用產生的 prompt

取用符合你意圖的 prompt 候選,然後透過 Imagine 繼續進行新一輪生成。

授權

Authorization
string
header
必填

Bearer token authentication. Use your CometAPI key.

主體

application/json
base64
string
預設值:data:image/png;base64,<your-image-base64>
必填

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.

botType
enum<string>

Bot type to use. MID_JOURNEY for Midjourney (default), NIJI_JOURNEY for Niji.

可用選項:
NIJI_JOURNEY,
MID_JOURNEY
state
string

Custom state string. Returned as-is in the task result and webhook callback for your own tracking.

回應

200 - application/json

Success

code
integer
必填

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.

description
string
必填
properties
object
必填
result
integer
必填