PDF Generator
render_html
Document to an HTML string using a Jinja2 template.
html_to_png
.page element to screenshot; falls back to full viewport.
html_to_pdf
generate_document_files
{"html": path, "png": path, "pdf": path}.
Files are named {doc_type}_{doc_number}.{ext}.
Photo Generator
generate_photo
gemini-3.1-flash-image-preview with IMAGE response modality and 3:4 aspect ratio.
generate_dataset
variations is None, uses preset_names or all presets.
Photos are saved as photo_{variation_name}.png.
Verified Generators
generate_verified_photo
generate_verified_dataset
ground_truth.json, dataset_summary.json, and per-image _verification.json and _occlusion.json files.
Config Generator
text_to_variation
PhotoVariation JSON config using Gemini 2.5 Flash.