SuperAPIAI Directory

gflow-cli

github.com · AI video

Drive Google Flow with your Google account: Veo text-to-video, image-to-video and clip extension, Imagen text-to-image, reusable characters and scenes.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

gflow-cli is a Python command-line tool and MCP server for driving Google Flow from the terminal, invoking Veo (image-to-video, text-to-video) and Imagen (text-to-image) capabilities. It is aimed at users who need batch, scripted, pipeline-integratable workflows, and also lets coding AI agents control the generation process via MCP.

Purpose and Positioning

This project lets users with Google accounts that have Flow access perform programmatically the generation operations that would otherwise require manual clicking in the web interface. The official description states it is suitable for: batch-generating images from a shell loop; using Veo's t2v / i2v / r2v as well as video extend beyond Flow's 8-second limit; creating reusable characters (face and body references) via character to maintain subject consistency; using --tool creative-director to rewrite short prompts according to Google's five-element formula; and connecting Veo to content automation, AI video stacks, or batch experiments.

Main Capabilities

  • Images: text-to-image, image-to-image, upload, upscale, batch processing; supports Nano Banana 2.1 (nano2) / 2 Lite / Pro, five aspect ratios (16:9, 4:3, 1:1, 3:4, 9:16), count 1–4. The migrated frontend supports marking characters with @Name.
  • Video: t2v, i2v, r2v, chain, extend, upscale; provides a selector for 5 Veo models as well as --duration and --count.
  • Beyond single generation: gflow movie renders multi-scene manifests; gflow instructions manages persistent Agent-Mode briefing cards (does not consume credits); gflow character handles reusable subjects; gflow scene performs free server-side stitching; --tool applies prompt rewriting tools.
  • Agent integration: the MCP server (gflow mcp run stdio / gflow serve Streamable HTTP) exposes core capabilities to AI agents, and there is a CI-enforced CLI and MCP feature parity contract. Four agent entry points are provided, which can be selected according to tool reading order; after installing the Claude Code plugin, the defaultDisabled by default; enable manually, or register it yourself with gflow mcp run --no-spend to avoid exposing tools that consume credits. Codex users can use codex plugin marketplace add and codex plugin add gflow@gflow-cli.

Usage

After running gflow auth login on first use, you can stay in the terminal to operate; output is written by default to $GFLOW_CLI_OUTPUT_DIR, and can be routed to S3, MinIO, or Google Cloud Storage via GFLOW_CLI_STORAGE_URI. The official docs provide a 60-second quick start and a 10-minute user guide (USER_GUIDE: Journey 1). The first call requires a 30–90 second wait for Chromium to warm up, after which the hot session is reused. --browser chrome is the only policy that marks the profile as a real Chrome profile; when installing from a local checkout, uv tool install <path> ignores uv.lock and resolves dependencies from the ranges in pyproject.toml, which may bring in an untested Playwright version, so the locked version must be pinned explicitly; installing from PyPI (uv tool install gflow-cli) is unaffected.

Applicable scenarios and limitations

Applicable scenarios: users who have Flow permissions and Veo credits and need real batch jobs; developers who want to integrate Veo into content automation or experimental pipelines; teams that let coding agents programmatically invoke generation capabilities. Limitations and risks (explicitly stated by the official project): the project is in alpha and is a reverse-engineered implementation, not affiliated with Google; it drives a headed browser through a persistent Playwright Chromium profile, automation is subject to Google's Terms of Service, and endpoints and UI may change at any time; video generation consumes the account's Flow credits, while image and composition operations are free; when the UI drifts it fails fast with different exit codes (e.g., selector drift is exit 23), and batch items are recorded locally before submission to avoid consuming credits in a stale state. The document ACCOUNT_SAFETY.md explains its low-profile approach (real headed Chrome, randomized interaction timing, controlled submission pacing) as well as what it explicitly does not do (does not use proxies, does not do fingerprint spoofing, does not pretend not to be automation). The current pure HTTP transport for video generation is blocked: under non-Chrome browsers the video upload endpoint returns HTTP 401, and there is a reCAPTCHA step that cannot be reproduced headlessly; the three early HTTP strategies are retained only in the research directory.

Other information

The code uses the MIT license (© 2026 Flavio Oliva), covering only the gflow-cli code, and does not grant rights to Flow, Veo model outputs, or any Google service; generated content is subject to Google's own terms. The project is maintained by an individual and accepts sponsorships.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools