Skip to main content
POST
cURL
Bruk dette endepunktet når du trenger å hente en gruppe Midjourney-oppgaver i stedet for å polle én task id om gangen.

Når du skal bruke det

  • Du sporer mange Midjourney-oppgaver samtidig
  • Du vil filtrere etter oppgavestatus, innsendingstidsvindu eller andre betingelser på serversiden
  • Du trenger et dashbord eller en avstemmingsjobb i stedet for en interaktiv polling av én enkelt oppgave

Spørringsmønster

1

Bruk polling av enkeltoppgave for hot paths

For én aktiv oppgave bør du foretrekke Fetch Single Task, fordi det er enklere og raskere.
2

Bruk betingelsesbasert listing for batch-sjekker

Send filterbetingelsene dine gjennom dette endepunktet når du må undersøke flere Midjourney-oppgaver i én forespørsel.
3

Følg opp interessante oppgaver

Når batch-resultatet viser oppgaver som trenger nærmere undersøkelse eller videreføring, bytter du tilbake til Fetch Single Task og Action.
Bruk denne ruten for overvåkings- og avstemmingsjobber; bruk Fetch Single Task for hovedløpet for interaktiv polling.

Autorisasjoner

Authorization
string
header
påkrevd

Bearer token authentication. Use your CometAPI key.

Kropp

application/json
ids
string[]
påkrevd

Array of Midjourney task ids to retrieve. Returns the current status and result for each.

Svar

200 - application/json

Success

action
string

Task type: IMAGINE, UPSCALE, VARIATION, DESCRIBE, BLEND, VIDEO, or another action name.

buttons
object[]

Action buttons available on the finished task. Send a button's customId together with this task's id to /mj/submit/action to upscale, vary, zoom, or pan.

description
string

Human-readable submission status message.

failReason
string

Failure reason when status is FAILURE.

finishTime
integer

Completion time as a Unix timestamp in milliseconds.

id
string

Task id.

imageUrl
string

Stable CometAPI-proxied image link (https://api.cometapi.com/mj/image/{id}). Prefer this link; entries in image_urls point at provider storage and can expire.

progress
string

Progress percentage string such as 58% while the task runs and 100% when finished.

prompt
string

Original prompt as submitted.

promptEn
string

Prompt after translation to the provider language. For DESCRIBE tasks, the extracted prompt suggestions arrive here.

properties
object

Additional task metadata, such as finalPrompt.

startTime
integer

Processing start time as a Unix timestamp in milliseconds.

state
string

Custom state string echoed back from the submission for your own tracking.

status
string

Task lifecycle state: NOT_START, SUBMITTED, IN_PROGRESS, SUCCESS, or FAILURE.

submitTime
integer

Submission time as a Unix timestamp in milliseconds.

Sist endret 23. juni 2026