업데이트: 2026-06-06
작업 상태 조회
단일 작업 조회
GET /mj/task/{id}/fetch
요청 예시
curl https://api.crazyrouter.com/mj/task/task_1234567890/fetch \
-H "Authorization: Bearer YOUR_API_KEY"
import requests
response = requests.get(
"https://api.crazyrouter.com/mj/task/task_1234567890/fetch",
headers={"Authorization": "Bearer YOUR_API_KEY"}
)
print(response.json())
응답 예시 (진행 중)
{
"id": "task_1234567890",
"action": "IMAGINE",
"status": "IN_PROGRESS",
"prompt": "a beautiful sunset over the ocean --ar 16:9 --v 6",
"promptEn": "a beautiful sunset over the ocean --ar 16:9 --v 6",
"progress": "65%",
"submitTime": 1709123456000,
"startTime": 1709123457000,
"imageUrl": "",
"failReason": "",
"buttons": []
}
응답 예시 (완료됨)
{
"id": "task_1234567890",
"action": "IMAGINE",
"status": "SUCCESS",
"prompt": "a beautiful sunset over the ocean --ar 16:9 --v 6",
"promptEn": "a beautiful sunset over the ocean --ar 16:9 --v 6",
"progress": "100%",
"submitTime": 1709123456000,
"startTime": 1709123457000,
"finishTime": 1709123520000,
"imageUrl": "https://cdn.discordapp.com/attachments/.../image.png",
"failReason": "",
"buttons": [
{"customId": "MJ::JOB::upsample::1::abc123", "emoji": "U1", "label": "U1", "style": 2},
{"customId": "MJ::JOB::upsample::2::abc123", "emoji": "U2", "label": "U2", "style": 2},
{"customId": "MJ::JOB::upsample::3::abc123", "emoji": "U3", "label": "U3", "style": 2},
{"customId": "MJ::JOB::upsample::4::abc123", "emoji": "U4", "label": "U4", "style": 2},
{"customId": "MJ::JOB::variation::1::abc123", "emoji": "V1", "label": "V1", "style": 2},
{"customId": "MJ::JOB::variation::2::abc123", "emoji": "V2", "label": "V2", "style": 2},
{"customId": "MJ::JOB::variation::3::abc123", "emoji": "V3", "label": "V3", "style": 2},
{"customId": "MJ::JOB::variation::4::abc123", "emoji": "V4", "label": "V4", "style": 2}
],
"properties": {}
}
일괄 작업 조회
POST /mj/task/list-by-condition
요청 파라미터
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
ids | array | 아니오 | 작업 ID 목록 |
요청 예시
cURL
curl -X POST https://api.crazyrouter.com/mj/task/list-by-condition \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"ids": ["task_1234567890", "task_0987654321"]
}'
응답 예시
[
{
"id": "task_1234567890",
"action": "IMAGINE",
"status": "SUCCESS",
"progress": "100%",
"imageUrl": "https://cdn.discordapp.com/attachments/.../image1.png"
},
{
"id": "task_0987654321",
"action": "IMAGINE",
"status": "IN_PROGRESS",
"progress": "40%",
"imageUrl": ""
}
]
폴링 간격은 35초를 권장합니다. 작업은 일반적으로 30120초 내에 완료되며, 구체적인 시간은 Midjourney 서비스 부하에 따라 달라집니다.