Documentation
Get History of Generated Images

Progress

GET
https://api.mymidjourney.ai/api/v1/midjourney/images

Retrieve a list of generated images from the last 24 hours.

GET /api/v1/midjourney/images

Request Param

NameLocationTypeRequiredDescription
pagequerynumberfalsethe page number to retrieve, defaults to 1
sizequerynumberfalsethe 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

NameTypeRequiredDescription
imagesobject[]truethe list of images
images.idstringtruethe messageId
images.typestringtruethe action that was used to generate the image
images.buttonstringtruethe button label of the action that was used to generate the image
images.promptstringtruethe prompt used to generate the image
images.uristringtruethe image URL
images.createdAtstringtruethe timestamp when the image was created

Examples

const axios = require("axios")
 
const config = {
  method: "get",
  url: "https://api.mymidjourney.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)
  })