AI image mocks for frontend work

Use image mocks for static pages and demo data.

A lightweight image API for landing pages, static sites, prototypes, and UI mock data. Fetch assets by ID or tag, resize on demand, and plug the URL straight into HTML.

Aerial view of a tropical island
51+AI-generated sample assets
for pages and mock data
Simple for demos

One endpoint,
enough for page mocks and sample data.

The endpoint returns image content directly and is designed for frontend demos, static pages, and mock environments. Generate a URL below and place it in ``.

  • GET /imgSingle mock image endpoint that returns binary image content
  • tagavatar / 头像 / cover / 封面 / product / 商品 / animal / 动物 / anime / 二次元 / scenery / 风景 / photo / 写真
  • w / hResize proportionally for cards, banners, and static page modules
  • dprKeep previews sharp on DPR 1, 2, and 3 displays
https://tupian.garden/img?tag=product&w=800&h=600
API preview

The preview loads the mock image returned by the endpoint directly. Use the copied URL in static pages, demo environments, or placeholder datasets.

Reference

Parameters

ParameterTypeDescriptionExample
idintegerUnique mock image ID; picks a random asset when omittedid=32
tagstringMock asset tag with Chinese and English aliases: avatar/头像, cover/封面, product/商品, animal/动物, anime/二次元, scenery/风景, photo/写真tag=scenery
w, hintegerOutput width and height as positive integers; preserve aspect ratio when only one is providedw=1200&h=675
dpr1 | 2 | 3Device pixel ratio for sharper mock previews, defaults to 1dpr=2
i0 | 1 | 2 | 3Cache-busting variant parameter; changing the value helps bypass cached image responsesi=2