Skip to main content
POST
cURL
Gebruik dit endpoint nadat een Midjourney-taak actieknoppen heeft teruggegeven. Het start een nieuwe vervolgstap, zoals upscale, variation, reroll, zoom of pan.

Je hebt twee waarden nodig

  • taskId van de oorspronkelijke of meest recente Midjourney-taak
  • customId uit de meest recente buttons-array die is teruggegeven door Fetch Single Task
customId is niet stabiel. Hardcode het nooit. Lees het altijd uit de meest recente polling-respons.

Veelvoorkomende acties

  • U1 tot U4: één afbeelding uit het raster upscalen
  • V1 tot V4: variaties genereren vanuit één afbeeldingspositie
  • Reroll: het volledige raster opnieuw genereren
  • Zoom en Pan: de bestaande compositie uitbreiden

Nadat je een actie hebt verzonden

1

Maak de vervolgstap aan

Verzend taskId en customId, en sla vervolgens de nieuwe geretourneerde task id op.
2

Poll de nieuwe taak

Raadpleeg Fetch Single Task opnieuw totdat de actie is voltooid.
3

Verwerk acties die alleen modal zijn

Als de nieuwe taak MODAL bereikt, ga dan verder met Modal om de extra invoer aan te leveren.

Autorisaties

Authorization
string
header
vereist

Bearer token authentication. Use your CometAPI key.

Body

application/json
customId
string
vereist

Action id taken from the latest buttons array returned by the fetch endpoint.

taskId
string
vereist

Midjourney task id you want to continue from.

state
string

Custom state string. Returned as-is in the task result and webhook callback for your own tracking.

enableRemix
boolean

Whether to force remix mode when the current action supports it.

chooseSameChannel
boolean

Whether to prefer the same provider account used by the current task.

Respons

200 - application/json

Action task accepted.

code
integer
vereist

Submission status code. 1 = submitted successfully (result carries the task id). 21 = the action opened a confirmation modal; continue with /mj/submit/modal using the returned task id. 4 = parameter error; description explains the cause.

description
string
vereist
result
string
vereist

New Midjourney task id created for the action.

properties
object