Google Flow provides access to Google's video model, Veo, and its image model, Imagen. Google exposes these models through a web interface. gflow-cli brings them to your terminal.
gflow-cli is an unofficial Python command-line interface. It uses a reverse-engineered private REST API to drive image and video generations. You can script, batch, and pipe your creative workflows.
Before you begin, ensure you have:
- Python 3.11 or newer.
- The
uvpackage manager. - A Google account with access to Google Flow.
- A desktop environment to complete the one-time authentication.
Install the CLI tool using uv:
uv tool install gflow-cliDownload the Chromium browser binary for Playwright:
uv tool run --from gflow-cli playwright install chromiumThis download requires 150 MB of disk space.
Authenticate your Google account. Run the following command:
gflow auth loginThis command opens a Chrome window. Google rejects any browser that advertises automation (navigator.webdriver) — not Playwright as such — and both the default auto and an explicit --browser chrome launch with the flags that keep it false. Log in to your Google account. Solve any CAPTCHA challenges.
Keep going until the Flow editor itself loads. gflow detects the completed sign-in and closes Chrome for you; closing the window yourself also works. The CLI saves your cookies in a user-local directory (for example, %LOCALAPPDATA%\gflow-cli\ on Windows or ~/Library/Application Support/gflow-cli/ on macOS).
Verify your session status:
gflow auth statusThe output confirms your cookie status.
Generate images using the image t2i command. Define your prompt and select an aspect ratio:
gflow image t2i "a serene mountain lake at dawn" --model nano-pro --aspect 16:9Supported aspect ratios are 9:16, 16:9, 1:1, 4:3, and 3:4.
Model choices:
nano2: Fast generation with balanced quality. This is the default.nano-pro: Higher quality.image4: Photorealistic outputs.
The command saves the files to a date-partitioned folder inside your output directory. You can specify a custom output directory:
gflow image t2i "neon cyberpunk alley" --aspect 16:9 --out ./my-imagesGenerate a video using Google Veo with the video t2v command:
gflow video t2v "a steam locomotive moving through the snow at dusk" --aspect 16:9 --seed 4242The --seed flag provides reproducibility. The command returns a standard .mp4 file in your output directory.