swiftimg

Offload WordPress media to a fast image CDN

WordPress's default media library serves images from your origin host. Pointing the media URL at swiftimg moves delivery to a global CDN and gives you automatic WebP variants and on-the-fly resize.

Try swiftimg freeSee the API

Heads-up

If you depend on a one-click WordPress plugin (Optimole, ShortPixel, etc.), swiftimg is more of a roll-your-own setup — better fit for a developer who wants a clean API than a hands-off plugin.

Step by step

  1. 1. Get a swiftimg API key

    Sign up and create an API key on /account. The Developer plan gives you the API, transforms, and a custom domain.

  2. 2. Upload media via the REST API

    From a plugin or a small migration script, POST each image to /v1/images and store the returned URL on the WordPress post.

    Upload
    curl -F file=@upload.jpg -H "Authorization: Bearer YOUR_KEY" https://swiftimg.com/v1/images
  3. 3. Use a srcset for responsive delivery

    Generate small/medium/large variants with on-the-fly resize, then output a standard srcset from your theme.

WordPress — FAQ

Is there a WordPress plugin?

Not officially — but the REST API is small enough to wire from a custom plugin or a wp-cli script in an afternoon.

Will WordPress's image-size handling still work?

Replace the local size pipeline with on-the-fly transforms. Smaller WP install, fewer scaled copies on disk.

What about media already in WP's library?

Bulk-upload the existing files via the API and rewrite post content URLs. A few lines of wp-cli usually does it.

Go ad-free with Pro

Remove ads & unlock more — from $3/mo.

See Pro

See also

Hosting for WordPress works on the free plan — see swiftimg pricing and plan limits for what each tier includes, or read the image hosting API documentation to upload from your own code instead of the browser.

Ready to host your WordPress images?

Start free, then unlock the full API, transforms, signed URLs, and a custom domain on the Developer plan.