跳轉到主要內容
POST
/
mj
/
submit
/
describe
Describe (image -> text)
curl --request POST \
  --url https://api.cometapi.com/mj/submit/describe \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "base64": "data:image/png;base64,xxx"
}
'
{
  "code": 123,
  "description": "<string>",
  "properties": {},
  "result": 123
}
使用此端點可從輸入圖片中擷取 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
預設值:example
必填

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
必填
description
string
必填
properties
object
必填
result
integer
必填