Actie (Upscale, Variation, Reroll, Zoom)
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.
Gebruik dit endpoint nadat een Midjourney-taak actieknoppen heeft teruggegeven. Het start een nieuwe vervolgtask, zoals upscale, variation, reroll, zoom of pan.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.
Je hebt twee waarden nodig
taskIdvan de oorspronkelijke of meest recente Midjourney-taakcustomIduit de nieuwstebuttons-array die wordt teruggegeven door Fetch Single Task
Veelvoorkomende acties
U1totU4: upscale één afbeelding uit het rasterV1totV4: genereer variaties vanaf één afbeeldingspositie- Reroll: genereer het volledige raster opnieuw
- Zoom en Pan: breid de bestaande compositie uit
Nadat je een actie hebt ingediend
Maak 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.Autorisaties
Bearer token authentication. Use your CometAPI key.
Body
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.