{"id":874,"date":"2024-05-07T11:44:50","date_gmt":"2024-05-07T11:44:50","guid":{"rendered":"https:\/\/kb.shortpixel.com\/docs\/spai-api-url\/"},"modified":"2025-09-09T06:50:50","modified_gmt":"2025-09-09T06:50:50","password":"","slug":"spai-api-url","status":"publish","type":"docs","link":"https:\/\/kb.shortpixel.com\/knowledge-base\/article\/spai-api-url\/","title":{"rendered":"Settings &#8211; API URL"},"content":{"rendered":"\n<p><strong>Careful! Do not modify this unless you know what you are doing!<\/strong><\/p>\n\n\n\n<p>As you probably know, the way ShortPixel Adaptive Images (SPAI) works is it edits the URLs of your images on-the-fly, when your visitor loads the page (<a href=\"https:\/\/shortpixel.com\/knowledge-base\/article\/how-shortpixel-adaptive-images-work\/\" target=\"_blank\" rel=\"noreferrer noopener\">How does ShortPixel Adaptive Images work?<\/a>). It does that because the optimized images are served from our CDN. These URLs look like this: <code>https:\/\/cdn.shortpixel.ai\/spai\/q_lossy+w_794+to_webp+ret_img\/https:\/\/www.example.com\/wp-content\/uploads\/2018\/06\/IMG_0169-1.jpg<\/code>\u00a0<\/p>\n\n\n\n<p>The API URL is the first part of the URL (<code>https:\/\/cdn.shortpixel.ai\/spai<\/code>), and it basically tells SPAI where to look for the optimized images. If you decide you want to use a different CDN to deliver the optimized images, you&#8217;ll have to change this field.\u00a0For more information about this, check <a href=\"https:\/\/shortpixel.com\/knowledge-base\/article\/can-i-use-a-different-cdn-with-shortpixel-adaptive-images\/\" target=\"_blank\" rel=\"noreferrer noopener\">this\u00a0article<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Careful! Do not modify this unless you know what you are doing! As you probably know, the way ShortPixel Adaptive Images (SPAI) works is it edits the URLs of your images on-the-fly, when your visitor loads the page (How does ShortPixel Adaptive Images work?). It does that because the optimized images are served from our [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[35],"glossaries":[],"doc_tag":[],"class_list":["post-874","docs","type-docs","status-publish","hentry","doc_category-shortpixel-adaptive-images"],"blocksy_meta":[],"year_month":"2026-04","word_count":138,"total_views":"2082","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin","author_nicename":"admin_mdli53m5","author_url":"https:\/\/kb.shortpixel.com\/author\/admin_mdli53m5\/"},"doc_category_info":[{"term_name":"ShortPixel Adaptive Images","term_url":"https:\/\/kb.shortpixel.com\/knowledge-base\/category\/shortpixel-adaptive-images\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/874","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/comments?post=874"}],"version-history":[{"count":3,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/874\/revisions"}],"predecessor-version":[{"id":2691,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/874\/revisions\/2691"}],"wp:attachment":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/media?parent=874"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_category?post=874"},{"taxonomy":"glossaries","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/glossaries?post=874"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_tag?post=874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}