메인 콘텐츠로 건너뛰기
GET
/
mj
/
task
/
{id}
/
fetch
Fetch a Midjourney task
curl --request GET \
  --url https://api.cometapi.com/mj/task/{id}/fetch \
  --header 'Authorization: Bearer <token>'
{
  "id": "1773314942177684",
  "status": "SUCCESS",
  "progress": "100%",
  "imageUrl": "https://api.cometapi.com/mj/image/1773314942177684",
  "videoUrl": "",
  "buttons": [
    {
      "customId": "MJ::JOB::upsample::1::example",
      "emoji": "",
      "label": "U1",
      "type": 2,
      "style": 1
    }
  ]
}
모든 Midjourney submit 호출 후 이 엔드포인트를 사용하세요. imagine, action, modal, blend, editor 워크플로를 위한 기본 폴링 엔드포인트입니다.

먼저 확인할 필드

  • 전체 작업 상태는 status
  • 현재 완료 신호는 progress
  • 에셋이 준비되면 imageUrl 또는 videoUrl
  • 다음에 사용할 수 있는 customId 값은 buttons

폴링 규칙

  • 작업이 SUCCESS, MODAL, FAILURE에 도달할 때까지 계속 폴링하세요
  • 후속 작업의 기준 정보로 buttons 배열을 사용하세요
  • 완성된 그리드 또는 업스케일 결과가 필요할 때는 imageUrl을 사용하세요
2026-03-12의 라이브 검증에서는 FAST imagine 작업에 대해 SUCCESS, progress: 100%, imageUrl, 그리고 9개의 action 버튼이 반환되었습니다.

인증

Authorization
string
header
필수

Bearer token authentication. Use your CometAPI key.

경로 매개변수

id
string
필수

Midjourney task id.

응답

200 - application/json

Current task state.

id
string
필수
imageUrl
string
필수
status
string
필수
progress
string
필수
buttons
object[]
필수
action
string
customId
string
botType
string
prompt
string
promptEn
string
description
string
state
string
submitTime
integer
startTime
integer
finishTime
integer
videoUrl
string
failReason
string
maskBase64
string
properties
object