Gebruik CometAPI POST /mj/submit/action om Midjourney-acties toe te passen—upscale, variation, reroll, zoom en meer—op afbeeldingen die via imaging zijn gegenereerd.
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 van de oorspronkelijke of meest recente Midjourney-taakcustomId uit de nieuwste buttons-array die wordt teruggegeven door Fetch Single TaskcustomId is niet stabiel. Hardcode het nooit. Lees het altijd uit de nieuwste polling-respons.U1 tot U4: upscale één afbeelding uit het rasterV1 tot V4: genereer variaties vanaf één afbeeldingspositieMaak de vervolgtask aan
taskId en customId, en sla vervolgens de nieuw geretourneerde task-id op.Poll de nieuwe task
Verwerk acties die alleen modal zijn
MODAL bereikt, ga dan verder met Modal om de extra invoer te leveren.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>"
}
}