Reference

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.
Table of Contents

The Image Optimization section shows the following charts:

Image UsageHobby IncludedPro IncludedPro/Enterprise Additional
Image transformations3K/month10K/month$0.05 - $0.0812 per 1K
Image cache reads180K/month600K/month$0.40 - $0.64 per 1M
Image cache writes60K/month200K/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 the Cache-Control header or set minimumCacheTTL to minimumCacheTTL:2592000 in Next.js configuration to reduce the number of transformations and revalidation costs. Using static imports can also help as they set the Cache-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 and deviceSizes 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 the unoptimized property in Next.js.

Last updated on December 19, 2024