About Services Tools Blog Contact us

Generated Image Lineage

A gallery of images made with Google Gemini that keeps each prompt and model, with a trail of edits and alternative versions leading back to the original.

  • Image Editing & Compositing
  • Cross-sector
  • Dashboard feature
  • Product
  • Local/private
  • 2026

The problem

Generated images pile up in a folder with no record of the prompt, the model or the earlier picture they came from. An edit and a fresh generation look the same there. So a good version, once passed over, could not be found again.

What it does

Each image is stored with its file, prompt, model, size and an optional task. Later details record the earlier image it came from, the input images, an edit prompt and a version number. The gallery follows the trail back to the original and lists alternative versions of the same image.

Outcomes

  • Any image can be traced to its prompt and model.
  • Edits and alternative versions are kept together in one history.
  • A discarded direction can still be reopened.

Simplified mockup

Interactive preview with sample data. Nothing is sent to a server.

Generated stills

Middle frame selected. Trace walks its parents and siblings.

Stored record

IMG-1904.png edit
PromptGround changed to pale concrete
Modeledit-local
Size1024 × 1024
ParentIMG-1841
InputsIMG-1841
Edit promptChange the ground to pale concrete
Revision2
TaskSpring stills

Revisions on IMG-1841

Children of the root
FileRevParentModelPrompt
IMG-18411nonestill-localWhite sweep, three-quarter jug
IMG-19042IMG-1841edit-localGround changed to pale concrete
IMG-19083IMG-1841edit-localWarmer afternoon light

Siblings share a parent. A later edit can reopen either child without losing the other.

How it works

  1. Store a generated file with its prompt, model and size.
  2. Record the earlier image and the edit prompt when an image is edited.
  3. Number versions that share an original.
  4. Follow the trail back and list alternatives in the history view.
  5. Serve thumbnails from the same record, so the file and its prompt stay together.

Pipeline

flowchart LR
  A["Generated file"] --> B["Store prompt and model"]
  B --> C["Optional parent"]
  C --> D["Revision number"]
  D --> E["Ancestor walk"]
  E --> F["Sibling list"]
  F --> G["Gallery"]

Output