Use CometAPI POST /mj/submit/describe to extract an initial Midjourney prompt from an uploaded image for fast remixing and iteration.
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
}Use this endpoint to extract Midjourney-style prompt suggestions from an input image.Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Submit the image
Poll the describe task
Reuse the generated prompt
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
}