← tteg.kushalsm.com

Fix dead source.unsplash.com URLs in AI-built websites

April 2026

A lot of starter kits, README snippets, and generated pages still point at source.unsplash.com. The layout renders, but the image URL is dead or unreliable. The result is a page that looks half-finished even though the code is done.

The concrete problem: your agent built the page, but the visuals are still placeholders, broken hotlinks, or fake stock-image plumbing that nobody wants to fix manually.

The safer fix

Do not keep hotlinking a dead demo URL. Save a real photo into the repo so the page has a stable asset path and your agent can keep working with a normal file:

uv tool install tteg

tteg save "modern saas dashboard hero" ./public/hero --orientation landscape

That gives you a real image file like ./public/hero.jpg. No API key setup. No manual stock hunt. No external demo URL living forever in the codebase.

When you need more than one image

Most AI-built sites need a hero, founder shot, team image, testimonial backdrop, and maybe a blog header. Use the batch command and fill the whole set in one pass:

tteg batch landing-page-images.json

That is the right fix when the project already exists and the remaining weak spot is believable real-world imagery.

If you still need remote URLs

There is also a free HTTP API if you need to swap a broken URL in the browser or build pipeline without saving the file first:

curl "https://tteg-api-53227342417.asia-south1.run.app/search?q=coffee+shop&n=1"

But for production pages, saving assets into the repo is usually the cleaner move.

Try tteg in your browser — no install needed

Source on GitHub