Hey everyone. I’m currently facing an issue with images in my api generated presentations. In the InputText I’m sending the content with images wrapped in <img /> tag. In the generated presentation it shows the images at first, but when I refresh the page, the images are gone. I noticed that when uploading the image manually in Gamma it works, but when embedding images from our own cdn or somewhere else, it does not. Anything I’m missing?
Hey Patrick! A couple things likely going on here:
The API doesn't support <img /> HTML tags in inputText. Instead, paste the raw image URLs directly into your content — they can be inline with your text or on their own line, both work. So instead of <img src="https://yourcdn.com/image.jpg" />, just put https://yourcdn.com/image.jpg in your content.
For images to work, the URLs need to:
Be HTTPS (http won't be picked up)
End with a recognized image extension (.jpg, .jpeg, .png, .gif, .webp, .svg, .heic, .heif, .avif)
Be publicly accessible — no auth headers, no signed/expiring tokens, no hotlink protection
That last point is likely why your images show up initially but disappear on refresh. Gamma fetches and re-hosts your images during generation via a background process — if your CDN blocks that fetch (auth, hotlink protection, expiring URLs), the image won't persist. A quick way to test: open your image URLs in an incognito browser window. If you can see the image without logging in, Gamma can access it too.
If you want only your provided images (no AI-generated ones), set imageOptions.source to "noImages" so Gamma doesn't add extra images on top of yours.
Could you share one of the full image URLs you're using? That'll help confirm whether it's a format or accessibility issue on the CDN side.
