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. 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. 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/images3. 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.
See also
Image hosting for Ghost
Host Ghost post images on swiftimg. Stable URLs, automatic WebP, and on-the-fly resize — without configuring an S3 + CloudFront pipeline.
Image hosting for Docusaurus
Host Docusaurus screenshots and diagrams on swiftimg. Keeps the docs repo lean, gives you permanent URLs, and adds on-the-fly resize.
swiftimg vs Optimole
An Optimole alternative for image optimization & CDN — beyond just WordPress.
Ready to host your WordPress images?
Start free, then unlock the full API, transforms, signed URLs, and a custom domain on the Developer plan.