Progress
GET
https://api.imaginepro.ai/api/v1/midjourney/message/{messageId}
Retrieve progress and response from a message you've sent in a previous request.
GET /api/v1/midjourney/message/{messageId}
Request Param
Name | Location | Type | Required | Description |
---|---|---|---|---|
messageId | path | string | true | the message ID from the previous request |
Sample Response
{
"messageId": "your-button-message-id",
"prompt": "A little cat running on the grass",
"originalUrl": "https://cdn.discordapp.com/attachments/123/123/123.png",
"uri": "https://cdn.imaginepro.ai/storage/123/123/123.png",
"progress": 100,
"status": "DONE",
"createdAt": "2023-08-01T14:03:01.817Z",
"updatedAt": "2023-08-01T14:03:01.817Z",
"buttons": [
"U1",
"U2",
"U3",
"U4",
"🔄",
"V1",
"V2",
"V3",
"V4",
"Zoom Out 2x",
"Zoom Out 1.5x",
"Vary (Strong)",
"Vary (Subtle)"
],
"originatingMessageId": "your-message-id",
"ref": ""
}
Response Body
Name | Type | Required | Description |
---|---|---|---|
messageId | string | true | the messageId for the button process |
prompt | string | true | the original prompt for the task |
createdAt | string | true | timestamp |
updatedAt | string | true | timestamp |
originalUrl | string | false | the original image URL in the Discord server, only valid for 24 hours |
uri | string | false | the generated image URL in our CDN |
progress | number | false | task progress, out of 100 |
status | string | false | the status of the task, either PROCESSING , QUEUED , DONE , FAIL |
error | string | false | Midjourney error message, if any |
buttons | string[] | false | buttons for follow up actions |
originatingMessageId | string | false | the originating message ID, if the message is for a follow up button action |
ref | string | false | the reference value you pass earlier |
Examples
const axios = require("axios")
const config = {
method: "get",
url: "https://api.imaginepro.ai/api/v1/midjourney/message/0b5d24af-5c30-4ee5-8755-1e92db47bf2e",
headers: {
Authorization: "Bearer <your-token>",
},
}
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data))
})
.catch(function (error) {
console.log(error)
})