Skip to main content
GET
이 엔드포인트는 모든 Midjourney submit 호출 후에 사용하세요. imagine, action, modal, blend, editor 워크플로를 위한 기본 폴링 엔드포인트입니다.

먼저 확인할 필드

  • 전체 작업 상태를 나타내는 status
  • 현재 완료 신호를 나타내는 progress
  • 에셋이 준비되었을 때의 imageUrl 또는 videoUrl
  • 다음에 사용할 수 있는 customId 값을 확인하기 위한 buttons

폴링 규칙

  • 작업이 SUCCESS, MODAL, 또는 FAILURE에 도달할 때까지 계속 폴링하세요
  • 후속 작업의 기준 정보로 buttons 배열을 사용하세요
  • 완성된 그리드 또는 업스케일 결과가 필요할 때 imageUrl을 사용하세요

인증

Authorization
string
header
필수

Bearer token authentication. Use your CometAPI key.

경로 매개변수

id
string
필수

Midjourney task id.

응답

200 - application/json

Current task state.

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.

status
string
필수

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

progress
string
필수

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

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.

action
string

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

customId
string

Button customId that created this task, when the task came from an action.

botType
string

Bot that handled the task, MID_JOURNEY or NIJI_JOURNEY, when reported.

prompt
string

Original prompt as submitted.

promptEn
string

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

description
string

Human-readable submission status message.

state
string

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

submitTime
integer

Submission time as a Unix timestamp in milliseconds.

startTime
integer

Processing start time as a Unix timestamp in milliseconds.

finishTime
integer

Completion time as a Unix timestamp in milliseconds.

videoUrl
string

Generated video link for VIDEO tasks.

failReason
string

Failure reason when status is FAILURE.

maskBase64
string

Mask attached to the task when a region edit created it.

properties
object

Additional task metadata, such as finalPrompt.