How to use KeyCDN with ShortPixel Adaptive Images

To use KeyCDN as your CDN when using ShortPixel Adaptive Images, instead of ShortPixel's CDN, follow these steps:

  1. Create an account with KeyCDN if you have not already done so:
  2. Go to Zones to create a new zone.
  3. Enter the following data:
    1. Zone Name: "spaimg" for example, or whatever you feel it can represent this zone used to deliver your images through our plugin.
    2. Zone Status: active
    3. Zone Type: pull
    4. Origin URL: ""
    5. Image Processing: disabled
    6. Expand the General settings and look for the SSL option. Select "letsencrypt".

      Main options
  4. Save the new zone.
  5. Think about a name for the subdomain you want the images to be delivered from. For example, if your domain is, you could choose If "img" is already used by another CNAME, think of something else, like or
  6. Go now to Zone Aliases and click on Add Zone Alias.
  7. Enter the alias you want, which will be what you have thought of in step #5. For example, "". Remember that should be changed to your actual domain.
  8. Choose the zone you created previously.

  9. Go back to Zones and copy the zone URL.

  10. In the DNS editor of your domain (ask your domain provider if you don't know where it is), add a new CNAME record from to the zone URL.

    Remember that should be changed to your actual domain.

  11. Wait 5 minutes for your domain provider to complete all technical tasks in the background.
  12. Check with this tool if your CNAME is propagated correctly. If not, wait 24h-48h.
  13. Take any image URL from your website, append it to and make sure that the new URL can be accessed. Example:
    1. If your website is called, your new CNAME is, and your sample image is,
    2. try to access this URL:
    3. Can you view it without errors? Proceed to the next step.
  14. You have done everything on KeyCDN. Now go to your WordPress website and change the API URL of ShortPixel AI.
    1. Go to Settings > ShortPixel AI > Behaviour and enter in the API URL field.
    2. Replace with your actual domain name.
    3. Replace the img part if your subdomain is different, like configured above.

  15. Clear your WordPress cache: How to clear WordPress cache
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