This function allows you to retrieve a specific image by its ID. Useful when a user views a specific image and you need its full details.

You should initialize InitLummi before using this method.

import { GetImage } from 'lummi'
import { imageId } from '@/data'

const { data, success, message } = await DownloandImage({
    id: imageId
})

Props

id
string
required

The ID of the image to list.

Return Props

data
Image | null

The downloand url of the image if success, otherwise null.

Check the Image Interface and what promps it includes.
success
boolean

true if the request was successful, otherwise false.

message
string

A message describing the result of the request.

code
number

200, 400, 401, 403, 404, 500.

Read more about status codes and what they mean.