跳转到主要内容
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 建议。

这个路由适合什么场景

  • 将图像转换为可供你 remix 的 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
默认值: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
必填