Skip to main content
POST
cURL
使用此端点可从输入图像中提取 Midjourney 风格的 Prompt 建议。

此路由适合什么场景

  • 将图像转换为可供你混编的 Prompt 候选
  • 在开始全新的 imagine 任务之前提取视觉方向
  • 当你不想从零开始编写第一个 Prompt 时,构建更快的创作循环

任务流程

1

提交图像

上传或引用你希望 Midjourney 描述的图像,并保存返回的任务 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
必填