메인 콘텐츠로 건너뛰기
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
    }
  ]
}

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.

각 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
필수
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