使用 CometAPI 的 POST /mj/submit/describe 从上传的图像中提取初始 Midjourney Prompt,以便快速 remix 和迭代。
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
}Bearer token authentication. Use your CometAPI key.
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.
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
}