Usa CometAPI POST /mj/submit/action para aplicar acciones de Midjourney—upscale, variation, reroll, zoom y más—sobre imágenes generadas mediante imaging.
curl --request POST \
--url https://api.cometapi.com/mj/submit/action \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customId": "MJ::JOB::variation::3::example",
"taskId": "1773314942177684"
}
'{
"code": 123,
"description": "<string>",
"result": "<string>",
"properties": {
"numberOfQueues": 123,
"discordInstanceId": "<string>",
"discordChannelId": "<string>"
}
}taskId de la tarea original o de la tarea más reciente de MidjourneycustomId del último arreglo buttons devuelto por Fetch Single TaskcustomId no es estable. Nunca lo codifiques de forma fija. Léele siempre desde la respuesta de polling más reciente.U1 a U4: upscale de una imagen de la cuadrículaV1 a V4: generar variations desde una posición de imagenCrear la tarea de seguimiento
taskId y customId, y luego guarda el nuevo id de tarea devuelto.Consultar la nueva tarea
Gestionar acciones solo con modal
MODAL, continúa con Modal para proporcionar la entrada adicional.Bearer token authentication. Use your CometAPI key.
Action id taken from the latest buttons array returned by the fetch endpoint.
Midjourney task id you want to continue from.
Custom state string. Returned as-is in the task result and webhook callback for your own tracking.
Whether to force remix mode when the current action supports it.
Whether to prefer the same channel account used by the current task.
curl --request POST \
--url https://api.cometapi.com/mj/submit/action \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customId": "MJ::JOB::variation::3::example",
"taskId": "1773314942177684"
}
'{
"code": 123,
"description": "<string>",
"result": "<string>",
"properties": {
"numberOfQueues": 123,
"discordInstanceId": "<string>",
"discordChannelId": "<string>"
}
}