Images can be uploaded using either a base64 encoded string, web url or Buffer.

const imageAsBase64 = fs.readFileSync('./someimage.png', 'base64')

await client.Image.upload(imageAsBase64)

If a web url is being uploaded, it must be specified in the type option. Other options can be specified here including title and description. See the imgur docs for more.

await client.Image.upload('https://example.com/image.png', { type: 'url' })

See Client.Image.upload for more information.