Skip to main content

PhotoVariation Model

A PhotoVariation is a structured configuration that describes how a generated photo should look. It controls the simulated camera, framing, paper condition, capture artifacts, damage, and failure modes. When generating a photo, the variation is serialized to JSON and sent to Gemini alongside the clean document image and a fixed system instruction.

All Fields

Stain Model

The Stain dataclass configures document contamination:

Built-in Presets

Penquify ships with 8 presets covering common operational capture scenarios:

Full JSON Example

You don’t need to specify every field. Defaults are designed for a reasonable operational photo. Override only what you need.