Can I use a different CDN with ShortPixel Adaptive Images?

Important note: ShortPixel Adaptive Images works correctly out-of-the-box, so configuring it to work with your own CDN should only be done if you have good technical knowledge.

If you want to use a different CDN than the default when using ShortPixel Adaptive Images, then please:

  1. Edit your DNS records to add a CNAME from "" to "". This step might be slightly different depending on what CDN you use. Below you can see some examples, but we recommend you to contact your CDN provider so they can help you set this up.
    1. On the previous URL, replace "" with your actual domain name.
    2. If "" is already being used on your DNS records, you can change it to whatever you want, like "" or "".
  2. Make sure the new record ( works as expected with an online tool like this one:
  3. Go to Settings > ShortPixel AI > Behaviour > API URL and enter the following URL:
    1. Replace "" with your actual domain name.
    2. Replace the "cdn" part if your subdomain is different, like configured above.
    3. Please note that if you're not using Cloudflare as CDN, then your CDN should be able to handle the SSL certificate so you can have the API URL with "https". If they cannot handle this, a certificate error will occur and your API URL should be "http" instead of "https".


Here you will find instructions on how to do the previous steps for the most important CDN providers.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us