Get Task Image
Midjourney task result image endpoint
Fetches the result image of a Midjourney task directly as a binary stream, suitable for <img> tags or direct browser access. Authentication is required, and you can only fetch images of tasks owned by your account.
Retention & expiry
Result images are retained for 2 hours only. After expiry the endpoint returns 410 (midjourney_image_expired). Tasks finished before this feature shipped (no local copy and the original is no longer available) also return 410.
Authorization
BearerAuth
使用你在 OmwAI 中创建的 API 令牌认证。
格式: Authorization: Bearer sk-xxxxxx
只能获取当前令牌所属账号下的任务图片。
In: header
Path Parameters
提交任务时返回的任务 ID(jobId)
Response Body
image/png
application/json
application/json
application/json
curl -X GET "https://www.omwai.xyz/mj/image/24e93809-e443-46c5-9ecc-06fdadd8c09b""string"{
"error": "midjourney_task_not_found"
}{
"error": "invalid token"
}{
"error": "midjourney_image_expired"
}Note
Tasks that do not belong to your account always return 400 (midjourney_task_not_found), identical to a missing task, so task existence cannot be probed. For the four individual grid images, use the images field of Query Task Result.
How is this guide?
Last updated on