Manage and optimize usage for Image Optimization
Learn how to understand the different charts in the Vercel dashboard, how usage relates to billing, and how to optimize your usage of resources.The Image Optimization section shows the following charts:
Image Usage | Hobby Included | Pro Included | Pro/Enterprise Additional |
---|---|---|---|
Image transformations | 3K/month | 10K/month | $0.05 - $0.0812 per 1K |
Image cache reads | 180K/month | 600K/month | $0.40 - $0.64 per 1M |
Image cache writes | 60K/month | 200K/month | $4.00 - $6.40 per 1M |
To help you minimize image optimization usage costs, you can use the following tips:
-
Image Cache Max Age: If your images do not change in less than a month, set
max-age=2592000
(30 days) in theCache-Control
header or setminimumCacheTTL
tominimumCacheTTL:2592000
in Next.js configuration to reduce the number of transformations and revalidation costs. Using static imports can also help as they set theCache-Control
header to 1 year. -
Utilize remote and local patterns: Configure remote and local allowlist patterns in Next.js to identify which images should be optimized so that you can limit unnecessary transformations.
-
Set quality settings: Configure the images.qualities allowlist in Next.js configuration to reduce possible transformations.
-
Image sizes: Define size related allowlists for images to avoid excessive resizing. Set the
imageSizes
anddeviceSizes
in Next.js configuration to match your audience and reduce the number of transformations. -
Use
unoptimized
property: For images that transformations will not benefit from optimization such as small images, vector images (SVG) and animated images (GIF), use theunoptimized
property in Next.js.
Was this helpful?