Skip to main content

Overview

Instead of manually constructing PhotoVariation JSON, you can describe what you want in plain English. The text_to_variation() function uses Gemini 2.5 Flash to convert your description into a valid config.

Usage

Output:

Example Descriptions

The generated config follows the exact PhotoVariation schema. You can use it directly or modify specific fields before generating photos.