Options
Storage

storage

storage is an optional property that generates a URL for the generated screenshot, so you don't need to save it anywhere. By default, storage mode is set to true.

api/routes/screenshot.ts
const { UrlToImage } from '@url2image/sdk'
 
const { data, success, message } = await UrlToImage({
    url: 'URL_TO_SCREENSHOT',
    token: 'YOUR_API_KEY',
    options: {
        storage: false
    }
})