Gebruik CometAPI POST /mj/submit/describe om een initiële Midjourney-prompt uit een geüploade afbeelding te halen voor snel remixen en itereren.
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
}Dien de afbeelding in
Poll de describe-taak
Hergebruik de gegenereerde 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
}