Skip to main content

Endpoint

Generate photo variations from an existing document image (PNG or PDF).

Request Body

string
required
Absolute path to the source document image (PNG/PDF). Must exist on the server filesystem.
string[]
List of preset names to generate. Options: full_picture, folded_skewed, zoomed_detail, blurry, cropped_header, strong_oblique, coffee_stain, stapled_stack. If omitted, generates all 8 presets.
object[]
Custom variation configs (alternative to presets). Each object follows the PhotoVariation schema.
string
default:""
Key fields to preserve in the photos. Helps the image generator maintain accuracy.

Response

string
Unique identifier for this generation run
array
Array of results, one per variation.

Example

Response