Progress
GET
https://api.imaginepro.ai/api/v1/midjourney/images
Retrieve a list of generated images from the last 24 hours.
GET /api/v1/midjourney/images
Request Param
Name | Location | Type | Required | Description |
---|---|---|---|---|
page | query | number | false | the page number to retrieve, defaults to 1 |
size | query | number | false | the number of images to retrieve, defaults to 10 |
Sample Response
{
"images": [
{
"id": "string",
"type": "string",
"button": "string",
"prompt": "string",
"uri": "string",
"createdAt": "string"
}
]
}
Response Body
Name | Type | Required | Description |
---|---|---|---|
images | object[] | true | the list of images |
images.id | string | true | the messageId |
images.type | string | true | the action that was used to generate the image |
images.button | string | true | the button label of the action that was used to generate the image |
images.prompt | string | true | the prompt used to generate the image |
images.uri | string | true | the image URL |
images.createdAt | string | true | the timestamp when the image was created |
Examples
const axios = require("axios")
const config = {
method: "get",
url: "https://api.imaginepro.ai/api/v1/midjourney/images",
headers: {
Authorization: "Bearer <your-token>",
},
}
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data))
})
.catch(function (error) {
console.log(error)
})