Heads-up
Ghost (Pro) has its own CDN; the swiftimg story is strongest for self-hosted Ghost or for content you want to reuse across newsletters and other sites.
Step by step
1. Get a swiftimg API key
Sign up and create an API key on /account.
2. Upload images via the REST API
From a small Node script or a Ghost custom integration, POST each image to /v1/images and store the returned URL on the post.
Upload curl -F file=@hero.jpg -H "Authorization: Bearer YOUR_KEY" https://swiftimg.com/v1/images3. Replace image URLs in the post body
Run a small migration over `posts` rows to rewrite the in-content image URLs to swiftimg.
Ghost — FAQ
Is there a Ghost integration?
Not officially — but the REST API is small enough to wire from a Ghost custom integration or a server-side hook in a few lines of JS.
Will Ghost's own image-resize work?
Ghost generates size variants for in-content images via a request-time resize. With swiftimg, resize happens on the CDN instead.
Can I keep some images in Ghost's content/images?
Yes — mix and match. New posts can push to swiftimg, older posts can stay where they are.
See also
Image hosting for WordPress
Host WordPress media on swiftimg to cut origin load, serve automatic WebP, and get on-the-fly resizing without an enterprise CDN bill.
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.
Image hosting for Email newsletters
Host newsletter images on swiftimg. Stable URLs, global delivery, automatic WebP, and no per-send overage — embed the same image across every send.
swiftimg vs Optimole
An Optimole alternative for image optimization & CDN — beyond just WordPress.
Ready to host your Ghost images?
Start free, then unlock the full API, transforms, signed URLs, and a custom domain on the Developer plan.