Ana içeriğe atla
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.

Bu uç noktayı her Midjourney gönderim çağrısından sonra kullanın. imagine, action, modal, blend ve editor iş akışları için temel polling uç noktasıdır.

Önce şu alanları kontrol edin

  • Genel görev durumu için status
  • Mevcut tamamlanma sinyali için progress
  • Varlık hazır olduğunda imageUrl veya videoUrl
  • Sonraki kullanılabilir customId değerleri için buttons

Polling kuralları

  • Görev SUCCESS, MODAL veya FAILURE durumuna ulaşana kadar polling yapmaya devam edin
  • Takip eden işlemler için doğruluk kaynağı olarak buttons dizisini kabul edin
  • Tamamlanmış grid veya upscale sonucu gerektiğinde imageUrl kullanın

Yetkilendirmeler

Authorization
string
header
gerekli

Bearer token authentication. Use your CometAPI key.

Yol Parametreleri

id
string
gerekli

Midjourney task id.

Yanıt

200 - application/json

Current task state.

id
string
gerekli
imageUrl
string
gerekli
status
string
gerekli
progress
string
gerekli
buttons
object[]
gerekli
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