Skip to main content
This function provides a download link for an image. Normally, you can’t download images using public links, but this allows you to generate a downloadable link.
You should initialize InitLummi before using this method.

Props

string
required
The ID of the image to download.
object
Filters for free images only if true. Includes both free and pro by default.
enum
original | small | medium | large | xlarge | ultra
enum
jpg | png

Return Props

string | null
The downloand url of the image if success, otherwise null.
boolean
true if the request was successful, otherwise false.
string
A message describing the result of the request.
number
200, 400, 401, 403, 404, 500.
Read more about status codes and what they mean.