GumletGumlet logo
Pricing
Login
Book a Demo
Signup

Image Delivery

3 min read

How to reduce Vercel data transfer costs

Reduce data transfer on Vercel and optimize images for quick loading with Gumlet.

Vercel and its 500% markup

Aditya Patadia 

Updated on Oct 15, 2024
How to reduce Vercel data transfer costs

Share this Article

Let's get straight to the point. Vercel's CDN costs are crazy high. Here is a snapshot of their "Fast Data Transfer" cost which is essentially just a regular CDN.

Vercel's data transfer cost for CDN - Singapore Region

Let's compare the cost of this to CloudFront - a world-class CDN.

CloudFront CDN cost

You can see that Vercel's cost of $0.3 per GB is almost 3x of what CloudFront charges. This article focuses on how to reduce the data transfer on Vercel as well as how to divert big traffic away to cheaper CDN.

High Data Transfer?

If you are seeing high data transfer bills on Vercel, chances are that you are having a lot of images on your web application. Text data can be compressed very well and it's very unlikely to cross that 1TB FREE tier of Vercel just with text data.

Once you take a closer look, you will realise that it's images which are consuming that data. One quick option you have in Vercel is to use their image optimization service. It resizes images so output bandwidth is reduced. However, it comes with its own cost. 🙁

Vercel's image optimization service price

Move Images Away

The only and best solution is to move that image data transfer away from Vercel. The basic and simplest thing to do is to start using CDN like CloudFront to deliver images and reduce the cost by 3x!

There is even a better way to handle this. Gumlet provides an image optimization service for which there is no extra charge like "Master Image Pricing" and the only price you pay is going to be the optimized bandwidth price. The cherry on top? Gumlet uses the same CloudFront as CDN to deliver images.

Gumlet's pricing is even cheaper than CloudFront at just $0.08 per GB. This means you not only reduce GBs because of optimized images but also save 20% more compared to just barebone CloudFront.

Integrating Gumlet

Gumlet is extremely easy to integrate with Next.js. All you have to do is create an image source on Gumlet and provide your image base path as input for that source. For example, if your Next.js application is hosted on www.example.com, add https://www.example.com as the base URL in the source setup.

Once the source is created, you need to edit next.config.js like this:

/** @type {import('next').NextConfig} */
const nextConfig = {
  distDir: 'build',
  images: {
    loader: 'custom',
    loaderFile: './utils/imageloader.js',
  },
  //... other config
}

module.exports = nextConfig

You also need to create a new file in ./utils/imageloader.js

export default function gumletLoader({ src, width, quality }) {
    if(src.includes("<CURRENT_IMAGE_DOMAIN>")){
        let parsedUrl = new URL(src);
        parsedUrl.hostname = "<GUMLET_SUBDOMAIN>.gumlet.io";
        parsedUrl.searchParams.set("w", width);
        parsedUrl.searchParams.set("q", quality || 80);
        return parsedUrl.toString();
    } else {
        return `${src}?w=${width}&q=${quality || 80}`;
    }
}

Just replace <CURRENT_IMAGE_DOMAIN> and <GUMLET_SUBDOMAIN> in the above code and you are done. Now, all images in your application will be delivered via Gumlet in the correct size, format and quality.

This ends up reducing data transfer on Vercel and gives you a way better price per GB for your image data transfer.

I hope this helps you save those precious dollars 😄

Similar readings

image-63d27ea7e394c3000f5a4a9d
Say Hello to Gumlet
Posted on Feb 01, 2019
image-63d27ea7e394c3000f5a4aa0
Why News and Media publications need image optimisation right away
Posted on Dec 21, 2018
image-63d27ea7e394c3000f5a4a9e
Gumlet launched multiple image processing facilities
Posted on Nov 09, 2018
Images or videos loading slow?

We compress them so that your users don't need to wait.

Try Gumlet

Images or videos loading slow?We compress them so that your users don't need to wait.  Try Gumlet →

Ready to get started?

Sign up and start optimizing your videos by up to 57% with Gumlet. No credit card required. Reach out to contact sales or to get a custom pricing estimate that fits your needs.

Start now Contact sales →
Optimizing videos is hard, but our pricing is not
Simple per-minute pricing with no hidden fees.
Pricing details →
Effortlessly integrate Gumlet into your existing stack
Upload with API and set webhooks for output in minutes.
Integragtion guide →

Footer

Gumlet Company logo
USA

Gumlet LLC
8 The Green, Dover, DE 19901

Singapore

Gumlet Pte Ltd
20A, Tanjong Pagar Road, Singapore (088 443)

Gumlet aicp logoGumlet soc2 logoGumlet iso logo
PRODUCT
  • Video Overview
  • Video Analytics
  • DRM Video Protection
  • Video CMS
  • Video Protection
  • Video Player Customization
  • Video Streaming
  • Video Transcoding
  • Video DRM
  • Online Video Hosting
  • Image Optimization
  • No-code Integration
  • Wordpress
  • Vimeo Alternative
  • Cloudinary Alternative
  • Imgix Alternative
  • Wistia Alternative
RESOURCES
  • Blog
  • Learn
  • Glossary
  • Tools
  • Startup Credits
  • Why Gumlet
  • Webinars
  • Documentation
  • Howdrm.works
SUPPORT
  • Product Updates
  • Feedback
  • Community
  • Become an Affiliate
  • Contact Us
  • Service Status
COMPANY
  • Pricing
  • About Us
  • Customers
  • Careers
  • Press Kit

© 2025 Gumlet Pte. Ltd.

Privacy Policy

Terms of Service