gflow-cli
gflow-cli's MCP server exposes 27 tools to generate, inspect, and manage Google Flow media, characters, projects, prompts, and local post-production workflows.
Generate images from prompts with Nano Banana/Imagen models, 1–4 outputs, aspect ratios, saved @asset mentions, or uploaded reference images.
Generate videos in text-to-video, image-to-video, or reference-to-video modes with Veo/Omni models, durations, start/end frames, references, batch count, and optional max-credit caps.
Upscale generated images to 2K/4K and videos to 1080p/720p/GIF; download an already-billed video by media ID.
List, show, and create Flow Characters; list preset voices; use character entity IDs/names as references.
Manage Agent-Mode instruction cards: list, add, enable/disable, remove, toggle the master switch, or full-sync a project brief.
Inspect models, prompt tools, projects, credits, auth status, and local usage stats.
Do local, credit-free media work: assemble clips with music/voiceover, synthesize narration, transcribe to SRT, and burn captions.
Move generated media to Trash or restore it, with explicit confirmation for trash.
Use wait=false background jobs with task polling/cancel, per-profile auth, and output-path confinement.
Generates images and videos via Google Flow's Veo and Imagen models, supporting batch generation, character consistency, and prompt rewriting.
Routes generated outputs to Google Cloud Storage buckets for persistent storage and retrieval.
Routes generated outputs to MinIO (S3-compatible) object storage for persistent storage and retrieval.
gflow-cli: MCP server and CLI for Google Flow (Veo 3.1, Omni, Nano Banana)
gflow-cli is an open-source MCP server and command-line tool that automates Google Flow. It generates Veo 3.1 and Omni video and Nano Banana and Imagen images from Claude Code, Claude Desktop, Cursor, Codex, VS Code or your terminal, billed to your own Google account's Flow credits. Install it from PyPI with
uv tool install gflow-cli(MIT, macOS, Windows and Linux).
An independent project, not affiliated with Google. It drives your own signed-in Flow session in a real Chrome window, so Google's terms apply to your account: read the DISCLAIMER and ACCOUNT_SAFETY.
gflow-cli at a glance
What it is | One Python package that is both a CLI ( |
Agent surface | 27 MCP tools plus resources and prompts, over stdio and Streamable HTTP; listed in the official MCP Registry as |
Terminal surface | 70+ commands with typed exit codes, most with |
Video models | Veo 3.1 Lite, Fast and Quality; Omni Flash and Omni 1.2 Flash (up to 15 s, up to 7 reference images) |
Image models | Nano Banana 2.1, Nano Banana Pro, Nano Banana 2 Lite, Imagen 4 |
Works with | Claude Code (plugin), Claude Desktop, Cursor, VS Code, Codex, any MCP client, shell scripts and CI |
Cost | Free and MIT-licensed. Video bills your own Flow credits; images spend no credits (they count against a daily image quota) |
Maturity | 130+ releases since May 2026; every release since v0.54.0 is live-verified against real Google Flow before it ships |
Related MCP server: Google Flow MCP
What can gflow-cli do?
Generate video: text-to-video, image-to-video with a start and an end frame, and reference-to-video, on Veo 3.1 and Omni (
gflow video t2v | i2v | r2v, orgflow video generateto pick the mode for you).Make long videos:
gflow video extend --segments Ncontinues a clip past Flow's 8 s limit with a continuous join,gflow video chainlinks shots frame to frame, andgflow scene createstitches clips server-side for free.Generate images: text-to-image and image-to-image, 1–4 per call, five aspect ratios (
gflow image t2i | i2i).Keep characters consistent:
gflow character createmakes a reusable Flow Character (face, body, voice), and prompts can mention it as@Name.Upscale: video to 1080p (or a GIF), images to 2K, or 4K on an Ultra plan.
Run batches and pipelines: JSON batch runs where a row can build on an earlier row (
gflow run), multi-scene films from a manifest (gflow movie run), and persistent Agent-Mode briefs (gflow instructions).Rewrite prompts:
--tool creative-directorand two other built-in prompt tools (reverse-engineer,storyboard), or your own (TOOLS).Track spend and media: the Veo credit balance (
gflow credits), a local media catalog (gflow data), a health check (gflow doctor), and output to S3, MinIO or Google Cloud Storage.
Features on the way are tracked in #1367.
How do I connect Claude Code, Cursor or Codex to Google Flow?
Install gflow-cli and sign in once, then register the MCP server with your client.
uv tool install gflow-cli
gflow auth login --browser chromeClient | One step |
Claude Code |
|
Claude Desktop |
|
Cursor |
|
VS Code |
|
Codex | Skills: from a clone, |
Any MCP client | command |
The Claude Code plugin ships disabled, because enabling it starts a server that can spend your Veo credits. For a hard guarantee, register gflow mcp run --no-spend, which never registers the credit-spending tools. Full setup: docs/MCP.md.
60-second quick start
Compatible with macOS (Apple Silicon & Intel), Windows, and Linux (x86_64 / Xvfb).
# 1 · Install (uv recommended; also: pip install gflow-cli)
uv tool install gflow-cli
uv tool run --from gflow-cli playwright install chromium # one-time, ~150 MB
# optional extras: 'gflow-cli[tts]' for `audio narrate` (Edge), 'gflow-cli[chain]' for `video chain`/`assemble`/`captions`
# later: `gflow update` upgrades in place (other commands show a banner when a newer release is out)
# Windows pip install at 0.99.0 or older? Upgrade once by hand first (#1298):
# close every gflow process, then <venv>\Scripts\python.exe -m pip install --upgrade gflow-cli
# (keep your extras in the spec, e.g. "gflow-cli[patchright]", or their pins stay behind)
# (a --user install: py -3.X -m pip install --user --upgrade gflow-cli; see https://github.com/ffroliva/gflow-cli/blob/main/docs/USAGE.md#gflow-update)
# 2 · Authenticate (one-time, opens a real Chrome window)
# Behind a proxy (e.g. Clash)? Set GFLOW_CLI_BROWSER_PROXY=http://127.0.0.1:7897 first (docs/CONFIGURATION.md)
gflow auth login --browser chrome
# Check the session (spends nothing)
gflow auth status
gflow credits user # Veo credit balance (no browser when the direct read is on and the saved session is accepted; spends nothing)
gflow capabilities # what gflow can drive here: yes/no/partial per capability (no call to Flow)
gflow models list # image and video models, aliases, durations (no call to Flow)
# Every error says whether Flow may have charged you and what to do next: docs/ERRORS.md
# 3 · Generate
gflow image t2i "a hot air balloon over Tokyo at sunrise"
# or:
gflow video t2v "Slow cinematic push-in on a sunlit forest clearing" --aspect 16:9
# or mint a reusable Character (face + body reference):
gflow character create --project <id> --name "Aria" --face-prompt "..." --body-prompt "..."Outputs land under $GFLOW_CLI_OUTPUT_DIR, or you can route them to S3, MinIO, or Google Cloud Storage with GFLOW_CLI_STORAGE_URI. The first call takes 30 to 90 seconds while Chromium warms up; later calls reuse the warm session.
To save one result at an exact path, pass --out-file PATH (for example gflow image t2i "..." --out-file hero.png). Use -o/--output to select the output format (json|table|id). Non-format arguments to -o fail fast with exit 2 reminding you to use --out-file. See USAGE.
Scripts that branch on exit codes can opt in to the stable core now (0 ok, 1 error, 2 usage, 3 auth, 130 interrupted) by setting GFLOW_CLI_EXIT_CODES=2. It becomes the default in a later release. See ERRORS: the stable core.
Why
--browser chrome? It is the only strategy that marks the profile as a real-Chrome profile, which is what later generation runs open it with. The defaultautopicks it whenever Chrome is installed — see docs/AUTHENTICATION.md.
Installing from a local checkout?
uv tool install <path>ignoresuv.lockand resolves dependencies from thepyproject.tomlranges, so it can hand you a Playwright build this project has never tested. Playwright ships the browser driver, and an untested minor can wedge a generation silently. Carry the locked version explicitly:uv tool install --force --with playwright==1.59.0 .Installing from PyPI (
uv tool install gflow-cli) is unaffected — the published range is upper-bounded. Check what you actually have withuv tool run --from gflow-cli python -c "import importlib.metadata as m; print(m.version('playwright'))".
For the full 10-minute walkthrough with troubleshooting and multi-account setup, see USER_GUIDE: Journey 1.
Which Google Flow models does gflow-cli support?
gflow models list prints the full list from the installed version (including veo-lite-lp, a lower-priority Veo 3.1 Lite), with no call to Flow. Its retires on column shows the models Flow has said it will retire.
Kind | Model | Alias | Max length / refs |
Video | Omni 1.2 Flash |
| 15 s, 7 reference images |
Video | Omni Flash (1.1) |
| 10 s, 7 reference images; Flow retires it on 2026-12-05 |
Video | Veo 3.1 Quality |
| 8 s; Flow retires it on 2026-12-05 |
Video | Veo 3.1 Fast |
| 8 s, 3 reference images; Flow retires it on 2026-12-05 |
Video | Veo 3.1 Lite |
| 8 s, 3 reference images |
Image | Nano Banana 2.1 |
| 10 reference images |
Image | Nano Banana Pro |
| 10 reference images |
Image | Nano Banana 2 Lite |
| 3 reference images |
Image | Imagen 4 (not in Flow's own menu) |
| 3 reference images |
For the three models Flow retires on 2026-12-05, use veo-lite or omni-1.2 instead (known issue).
Video comes in 16:9 and 9:16; images in 16:9, 4:3, 1:1, 3:4 and 9:16. Which models and durations your account sees depends on your Flow plan; gflow capabilities reports what this install can drive.
How does gflow-cli protect my Flow credits and my account?
Only video spends credits. Image generation spends no credits (it counts against a daily image quota), and Scene stitching is free.
A server that cannot spend.
gflow mcp run --no-spendnever registers the credit-spending tools, so an agent cannot call them at all.Cost before commitment on multi-clip runs.
video chain,video extendandmovie runtake--dry-runto show the plan without submitting anything, andchainandextendask before they spend.Never billed twice. A billed request is sent once and never retried automatically, and
gflow run --resumeregenerates only the rows the local catalog does not already hold.Every error says whether you were charged. Errors carry
charged: yes | no | maybeand anext_action(retry,reauth,reconcile) in both the CLI's--jsonoutput and MCP replies (ERRORS).Paced like a person. gflow uses a real Chrome window with randomised interaction timing and paced submissions. It does no IP rotation, uses no proxy unless you set one, and does no fingerprint spoofing by default (ACCOUNT_SAFETY).
Fails loudly. When Flow's interface changes, the run stops with a distinct exit code (selector drift is exit 23) instead of guessing.
How does gflow-cli compare with other Google Flow automation tools?
Compared from each project's own README on 2026-11-19 (the kodelyx/flow-agent column on 2026-11-20). "—" means that README does not state it.
gflow-cli | ||||||
Surfaces | CLI and MCP server (27 tools), parity enforced in CI | MCP server, local web panel | MCP server | CLI, MCP server (5 tools), OpenAI-compatible REST API | CLI | Chrome extension, local REST API, dashboards |
Install |
| git clone, npm build | npm, binaries | clone, | npm | git clone, load unpacked extension |
Official MCP Registry | Yes | — | — | — | no MCP | no MCP |
MCP over HTTP | Yes ( | — | — | SSE (per its | no MCP | no MCP |
macOS / Windows / Linux | All three | macOS, Windows | All three | — | — | All three |
Licence | MIT | — | MIT | MIT (README; no licence file in the repository) | MIT | MIT |
Video, image, start/end frames, references | Yes | Yes | Yes | Text- and image-to-video, text-to-image | Yes | Yes |
Extend past 8 s | Yes | Yes | Yes | — | Yes (to 148 s) | — |
Characters | Yes | Yes, with edit | Yes, with edit | — | Yes | Yes |
Upscale | Video 1080p, image 2K/4K | 1080p, 2K | — | — | 2K, 4K | 4K |
OpenAI-compatible API | No | — | — | Yes | — | — |
Pool credits across Google accounts | No (one profile per call; switch with | — | — | Yes | — | — |
Spend lockout for agents ( | Yes | — | — | — | — | — |
| Yes | — | — | — | — | — |
Per-call credit cap | Yes ( | Yes ( | — | — | — | — |
Video-to-video edit | Planned (#1356) | Yes | Yes | — | — | — |
Narration audio | Yes (audio narrate: edge-tts or Gemini voices) | Yes | — | — | — | Yes |
Captions | Yes ( | Yes | — | — | — | — |
Join clips | Yes, server-side ( | Yes, with music and voiceover | — | — | Yes (scene) | Yes, with music and narration |
Bulk agent-mode image batch | Planned (#1361) | Yes | Yes | — | — | — |
Web control panel | Planned (#1364) | Yes | — | — | — | Yes |
Machine-readable self-description |
| — | — | — | — | Agent skills |
Live-verified against real Flow every release | Yes (since v0.54.0) | — | — | — | — | — |
The full list of planned items is in #1367. A correction to a cell is welcome as an issue or a pull request.
FAQ
Is gflow-cli an official Google tool? No. It is an independent, MIT-licensed project that drives your own signed-in Google Flow session.
Is this the gflow-cli package on npm or JSR? No. Other projects use the name, including Node.js packages on npm and JSR. This gflow-cli is the Python package on PyPI, maintained at github.com/ffroliva/gflow-cli and listed in the MCP Registry as io.github.ffroliva/gflow-cli.
Do I need a Gemini or Vertex AI API key? No. gflow-cli uses your Google account's Flow access and Flow credits, not the pay-per-use API.
Does it cost anything? The tool is free. Video generation spends your Flow credits; image generation spends none but counts against a daily image quota.
Can an AI agent spend my credits without asking? Not when you register gflow mcp run --no-spend: the credit-spending tools are never registered. The Claude Code plugin also ships disabled.
Does it run headless or on a server? Sign-in needs a display once. Generation drives a real Chrome window, so on Linux servers it runs under Xvfb. A pure-HTTP transport for video is blocked by Google's reCAPTCHA (see Architecture).
Does it work with flow.google.com as well as labs.google? Yes. It drives both Flow frontends and routes by the host Flow serves your account. On flow.google.com it covers text-, image- and reference-to-video from local files, Nano Banana image generation, a single-segment extend, image and video upscale, and characters by @Name; the rest keeps the labs driver until ported (Architecture).
Which Python version? Python 3.11 or newer. uv tool install gflow-cli handles it for you.
Examples
One command in, real Flow output back. Left: gflow image t2i generating a photorealistic scene in your library. Right: a frame-to-frame transform.

Demo

A single gflow image t2i "..." --aspect 9:16 --model nano2 call against a logged-in Flow profile. The terminal streams the run's structlog JSON, then lists the written PNG. Chromium drives the Flow editor silently in the background.
Reproduce the recording with scripts/record_demo.ps1 (Windows, OBS, ffmpeg, gifski). More formats, including the side-by-side split-screen: docs/DEMOS.md.
Documentation
docs/INDEX.md is the master routing layer. Quick links:
Usage data: gflow stores local usage counters and, after an interactive notice (and explicit consent in the EU/EEA), uploads weekly totals without an identifier. See the privacy notice and how to turn it off.
Topic | Read |
🎯 Getting started | |
Storage & catalog | |
🎭 Characters | Characters, reusable subjects ( |
🤖 Agentic & automation | Instructions ( |
🔐 Auth & sessions | |
📣 Where to install from | Marketplaces (every channel and what each actually delivers) · Container (why the image introspects but cannot generate) |
🏗️ Internals | |
📦 Releases | |
🤝 Contributing |
For AI agents & LLMs
gflow-cli ships four agent entry points. Pick the one your tool reads first.
File | Audience | Tools |
Universal coding-agent spec | Cursor · Codex · Aider · Antigravity · Jules · Devin · Windsurf · Zed · Warp · opencode · Copilot | |
Claude Code's auto-loaded memory | Claude Code | |
LLM-readable summary (llmstxt.org format) | Paste into ChatGPT, Claude, or Gemini to onboard the model | |
Claude Code Skill | Symlink into |
An agent can also read the whole command tree from the CLI itself: gflow --help --json.
To connect an MCP client, see How do I connect Claude Code, Cursor or Codex to Google Flow?
Onboard any agent in one line. Paste this into your agent of choice:
"Read AGENTS.md and docs/INDEX.md, then help me with my Flow batch."
Architecture & current limitations
gflow CLI → Provider (interchangeable) → Flow (ui_automation) / Mock (tests)
↓
Playwright Chromium (headed — login AND generation, by default)
↓
aisandbox-pa.googleapis.com (Google's private Flow API)Current transport: ui_automation drives Flow through a persistent Playwright Chromium profile. It is production-stable and verified end-to-end every release (see the per-release LIVE_VERIFICATION_* evidence files).
Two Flow frontends: Google is moving accounts from labs.google onto flow.google.com (#639) — same product, different widget toolkit and wire protocol (batchexecute instead of aisandbox-pa). The migrated driver covers text-to-video, image-to-video from a local start frame, reference-to-video from local files, text-to-image, image-to-image from local files, and a single-segment video extend. Image generation supports Nano Banana 2.1 (nano2, #958) / 2 Lite / Pro, the five aspect ratios measured on that host (16:9, 4:3, 1:1, 3:4, 9:16), and counts 1–4; an existing project is required at the transport boundary. Images can tag a character by @Name, and reference-to-video takes a named character with --reference-entity + --reference-entity-name (#723). An account served the agent-only composer (#799) gets text-to-image and text-to-video only. An image --ref <uuid> is referenced in place when the catalog records it in the same --project (#995). Other UUID media references, an entity id without a name, instructions, Imagen 4, and the rest of the matrix keep the labs driver until ported (GFLOW_CLI_FLOW_HOST, see CONFIGURATION).
What's blocked: a pure HTTP transport for video generation. The video upload endpoint returns HTTP 401 under non-Chrome browsers plus a reCAPTCHA mint we cannot reproduce headlessly. Three earlier HTTP strategies (evaluate_fetch, bearer, sapisidhash) live under src/gflow_cli/api/transports/experimental/ for research, off the production path.
How you can help: if you have driven aisandbox-pa.googleapis.com from outside a real Chrome session, or you understand Google's anti-bot stack here, please open an issue. A working REST transport would unlock serverless deployments, true horizontal concurrency, and roughly 10x the project's reach. Details: docs/ARCHITECTURE.md § Headed-browser dependency.
Project status
Beta. Image (t2i, i2i, upload, upscale, batch) and video (t2v, i2v, r2v, chain, extend, upscale), plus image generate / video generate, which pick the mode from the inputs, run end-to-end on ui_automation, with a six-model video picker (Veo 3.1 and Omni) plus --duration and --count. Beyond single generations: gflow movie renders multi-scene manifests, gflow instructions manages persistent Agent-Mode brief cards (credits-free), gflow character handles reusable subjects, gflow scene does credit-free server-side stitching, --tool applies prompt-rewriting tools, and an MCP server (gflow mcp run stdio / gflow serve Streamable HTTP) exposes the core surface to AI agents with a CI-enforced CLI↔MCP parity contract.
Full milestone history lives in CHANGELOG.md. Where the project is heading: ROADMAP.md.
Support gflow-cli
gflow-cli is built and maintained by one person. Every release is verified against real Google Flow, which spends real AI credits, and breakages get fixed fast because people run it in their pipelines. Sponsorship pays for both.
Relying on gflow-cli at work? The monthly company tiers put your logo here, and Silver and above also get priority issues. All tiers and what each one gets: docs/SPONSORS.md.
Patched gflow-cli in your fork? Please open an issue or a pull request — a fix that lands upstream helps everyone.
Hall of fame
No sponsors yet. Be the first — every public sponsor is listed here.
License & legal
MIT License © 2026 Flavio Oliva (ffroliva). The MIT license covers gflow-cli's code only. It grants no rights to Flow, Veo model output, or any Google service. Google's own terms (Labs Additional Terms and any plan-specific subscription terms) govern your generations. See the DISCLAIMER.
Acknowledgements
edge-tts, design inspiration for community SDKs over private cloud APIs.googleapis/python-genai, the official Veo SDK that a future provider release may alias.Keysight, Google Labs – Flow AI with Veo3: A Network Traffic Analysis, an independent capture that helped validate the route patterns.
Stats
Project quality
Star history
If gflow-cli saves you time, please ⭐ the repo. It is the cheapest way to support the project.
Available Tools
27 toolsgflow_auth_statusA
Non-interactive, credit-free Flow session probe (#497). Call this BEFORE a generation tool to fail fast on expired auth, before a long blocking generation call. Never starts an interactive login flow. May boot a short-lived headless browser, which on flow.google.com is the usual path, and may take up to ~2 min on a slow network. Every session result also carries wire: {status, build}, the health of the direct (browser-free) credits read, probed first with one GET and one POST to flow.google.com unless the direct read is off. wire.status is accepted (the saved cookies work), signed_out_shell or http_401 (Flow refused the saved session), store_unreadable (the profile's cookies could not be read: Chrome has it open, or it has no saved session), disabled (GFLOW_CLI_WIRE_READS=0 or the macOS default), proxy_configured, throttled, no_chrome_version, network, redirect, http_400, http_error, unparseable or unexpected. With accepted, credit reads need no browser; any other status means they use the browser instead and does not change status, except throttled: Flow is rate-limiting the account, so the browser probe is skipped and the result is status: throttled with a retryable 429 error carrying retry_after seconds. build is Flow's build label when read, else null.
Inputs: profile. Returns: object
gflow_character_createA
Create a Flow CHARACTER from local image files: image is the portrait, body_image an optional body image, both paths on the machine running this MCP server. Nothing is generated: spends no credits and no image quota. Drives the character editor on flow.google.com in a browser, then sets the name, personality and voice (see gflow_character_voices). A failure after the portrait upload names the character's entity_id in remediation_hint when known, otherwise says one may exist, and is not retryable: check gflow_character_list before calling again. gflow deletes nothing. Generating the face from a prompt is CLI-only (gflow character create --face-prompt).
Inputs: name (required), image (required), project (required), voice, +3 more. Returns: object
gflow_character_listA
List the saved Flow CHARACTER entities in a project. Read-only, spends no credits. On flow.google.com, returns each character's entity_id, display_name, voice, personality, workflow_ids and thumbnail_media_id. Pass entity_id in reference_entities paired with display_name in reference_entity_names (image and video r2v). On flow.google.com, an image @Name still attaches the first word after @ by name via the @ picker without reading the character catalog, while video @Name is not supported yet (exit 29, mention index unavailable); video r2v takes reference_entities plus reference_entity_names. Drives a browser.
Inputs: project (required), profile. Returns: object
gflow_character_showA
Show one saved Flow CHARACTER entity by id or by exact display name. Read-only, spends no credits. On flow.google.com, returns the character's entity_id, display_name, voice, personality, workflow_ids and thumbnail_media_id. Exactly one of entity_id or name is required; ambiguous names fail. Drives a browser.
Inputs: project (required), name, profile, entity_id. Returns: object
gflow_character_voicesA
List the preset voices available for a Flow Character's TTS. Static lookup — no network, no browser, no cost. Call it before creating a character to choose a valid voice name.
Inputs: no named parameters. Returns: object
gflow_download_mediaA
Fetch an already-generated VIDEO from Flow by its media ID and write it to disk. For a generation that finished and was billed but whose download failed — the clip is in the Flow project and the local catalog shows no file for it. Spends no credits: the generation was already paid for. The bytes are verified against the size Flow reports before the file is written. out_dir, if given, must resolve inside the configured output directory. Video only: an image media ID is refused immediately (exit 11) because the signed URL this needs comes from a record only a clip's route emits. See issue #877. The transfer already retries a dropped connection internally, so a failure marked retryable means wait a moment and call again — never immediately, and never in a tight loop: each call opens a browser under a per-profile lease, and a second concurrent call fails on that lease instead (exit 11).
Inputs: media_id (required), out_dir, profile. Returns: object
gflow_generate_imageA
Generate an image using Google Flow's image models. Produces 1-4 images from a text prompt. out_file, if given, must resolve inside the configured output directory. Models: nano2 (Nano Banana 2.1, fast; 'nano2.1' also accepted), nano2-lite (Nano Banana 2 Lite), nano-pro (Nano Banana Pro), image4 (Imagen 4, no longer in Flow's menu). Aspects: 1:1, 9:16, 16:9, 4:3, 3:4. The prompt supports @AssetName mentions to tag saved project characters/assets by name (resolves to referenceEntities/referenceImages). Reference a SAVED named asset via @Name; reference an arbitrary one-off image via reference_images. See docs/REFERENCE_STRATEGIES.md. On accounts served from flow.google.com, use an existing project and local reference files. A character attaches there by name (@Name, or reference_entities paired with reference_entity_names); a UUID media reference the local catalog records in that same project is referenced in place (#995), but any other UUID, an entity id without a name, and image4 are not ported to that composer yet and fail before submit; retrying will not clear it. On an agent-only composer (#799) only text-to-image runs, so reference_images and character references fail there too. Returns local file paths to the generated images.
Inputs: prompt (required), wait, count, model, +11 more. Returns: object
gflow_generate_videoA
Generate a video using Google Flow's Veo model. Modes: t2v (text-to-video), i2v (image-to-video), r2v (reference-to-video). Aspects: 9:16, 16:9. Optional model (veo_lite/veo_fast/veo_quality/omni_flash/omni_1_2_flash), duration (seconds; omni_1_2_flash takes 3-15, at most 10 with an end_frame), and count select the Veo model, clip length, and batch size (CLI parity). The prompt supports @CharacterName mentions to tag saved project characters by name (resolves to referenceEntities; on flow.google.com a video @Name is not supported yet, exit 29 before submit, so pass reference_entities plus reference_entity_names to r2v). Reference a SAVED character via @Name; pass one-off ingredient images via reference_images. See docs/REFERENCE_STRATEGIES.md. max_credits uses Flow's quote as a hard cap and refuses missing or over-limit quotes. Optional ui_mode ('classic'/'auto') verifies the classic editor pre-submit and aborts before spending credits if unreachable; 'agentic' is not supported for video. out_file, if given, must resolve inside the configured output directory. Returns the local file path; a model Flow is retiring adds model_retiring to warnings.
Inputs: prompt (required), mode, wait, count, +16 more. Returns: object
gflow_get_creditsA
Read the current Google Flow credit balance for one saved profile or all profiles - the number Flow's account menu shows. Read directly from flow.google.com with the profile's saved session (no browser) when Flow accepts it; otherwise read in that profile's browser (one browser launch per profile, sequential for all_profiles). The direct read is off on macOS by default, behind a proxy, or with GFLOW_CLI_WIRE_READS=0. HTTP 429/503 returns a retryable error with no browser fallback: wait, do not loop. Spends no credits. Set all_profiles=true when choosing an account for generation; partial profile failures remain visible in the result. Set refresh=true to renew a signed-out session (rewrites that profile's saved cookies) in a headless browser and read again (slower - one more Chrome launch per signed-out profile; a revoked session still needs gflow auth login). The tier fields (sku, service_tier, user_paygate_tier, subscription_credits) are always null: flow.google.com does not report them.
Inputs: profile, refresh, all_profiles. Returns: object
gflow_instructions_addA
Add a persistent instruction card to a Flow project's Agent-Mode brief (credits-free). Each ref is classified automatically: local image path → uploaded as an image reference; asset UUID → image reference; anything else → character id/name.
Inputs: text (required), title (required), project (required), refs, +2 more. Returns: object
gflow_instructions_applyA
Declaratively FULL-SYNC a Flow project's brief: REPLACES all existing instruction cards with the given set (destructive — cards not listed are removed). Each card is {'title', 'text', 'ref': [...], 'enabled'}. Credits-free.
Inputs: cards (required), project (required), profile. Returns: object
gflow_instructions_listB
List a Flow project's persistent Agent-Mode instruction cards (reads the live server brief). Credits-free.
Inputs: project (required), profile. Returns: object
gflow_instructions_rmB
Remove one instruction card from a Flow project's brief, selected by title or card id (exactly one). Credits-free.
Inputs: project (required), title, card_id, profile. Returns: object
gflow_instructions_set_enabledB
Enable or disable one instruction card on a Flow project's brief, selected by title or card id (exactly one). Credits-free.
Inputs: enabled (required), project (required), title, card_id, +1 more. Returns: object
gflow_instructions_toggle_modeA
Turn a Flow project's brief master switch on or off. When off, NO cards apply even if individually enabled. Cards are left untouched. Credits-free.
Inputs: enabled (required), project (required), profile. Returns: object
gflow_list_modelsA
List the image and video models the generate tools accept: name, Flow's menu label (image), aliases, reference cap, max duration and retires_on (video; ISO date or null), aspects and tiers. Static, the same as gflow models --json; no browser, no spend.
Inputs: no named parameters. Returns: object
gflow_list_projectsA
List all projects in the local gflow catalog. Returns project IDs, names, and creation dates from the SQLite database.
Inputs: limit, offset, profile. Returns: object
gflow_list_toolsA
List available gflow prompt tools (name, title, description, category).
Inputs: no named parameters. Returns: object
gflow_media_restoreB
Restore a trashed media item back to its Flow project over the wire (RPC pGCYOe). Credit-free (0 credits). Returns the restored item status and ID.
Inputs: media_id (required), profile, project_id. Returns: object
gflow_media_trashA
Move a generated media item (image or video) to Flow's Trash over the wire (RPC pGCYOe). Credit-free (0 credits). Trashed items are hidden from project views but can be recovered using gflow_media_restore. Requires explicit confirm=True to prevent accidental deletion.
Inputs: media_id (required), confirm, profile, project_id. Returns: object
gflow_narrateB
Synthesize a local narration audio file. Narration text is sent to the selected provider (Microsoft Edge Read Aloud or Google Gemini); this uses no Flow credits. Gemini requires GFLOW_CLI_GEMINI_TTS_API_KEY. Output paths stay inside the configured output directory.
Inputs: text (required), out_file (required), rate, pitch, +2 more. Returns: object
gflow_upscale_imageA
Upscale a platform-generated Flow image to 2K or 4K and save it locally. media_id is the UUID of the image to upscale. scale is '2k' or '4k' (4k requires Ultra subscription; Pro/Plus accounts support 2k). project is optional (resolved from the local catalog when omitted). out_dir is the output directory (defaults to configured images directory; must resolve inside the configured output directory). profile selects the auth profile (defaults to the active profile). A scale the image's download menu does not list returns UpscaleUnavailableError (exit 22) naming the listed scales. Spends no credits: image upscale is free.
Inputs: media_id (required), scale, out_dir, profile, +1 more. Returns: object
gflow_upscale_videoA
Upscale or export a platform-generated Flow video to 1080p Full HD (or 270p GIF). media_id is the UUID of the video to upscale. scale is '1080p' (Full HD), '720p' (original, or Flow's upscale of a smaller original), or '270p' (animated GIF). project is optional (resolved from the local catalog when omitted). out_dir is the output directory (defaults to configured videos directory; must resolve inside the configured output directory). profile selects the auth profile (defaults to the active profile). flow.google.com only (GFLOW_CLI_FLOW_HOST=labs.google refuses it). Flow decides which scales each clip offers (a Veo 3.1 Lite clip lists no 1080p); a scale the clip's menu does not list returns UpscaleUnavailableError (exit 22) naming the scales it does list. Measured free (1 observation, 2026-10-07): the 1080p export spent no credits.
Inputs: media_id (required), scale, out_dir, profile, +1 more. Returns: object
gflow_usage_statsA
Summarize local gflow-cli usage statistics over the last N weeks. Returns command invocation counts from local telemetry (when enabled) and generation counts from the local catalog. Like every gflow tool call, it may start the weekly background upload of usage totals when one is due (only on machines where a person has seen the usage notice; see the telemetry block's upload state).
Inputs: weeks. Returns: object
gflow_video_assembleA
Join local video files or locally available catalog video IDs with optional music and voiceover. Ducking lowers music and clip audio under voiceover by default. This is local, credit-free processing; out_file must be inside the configured output directory. Geometry and frame rate follow the first clip.
Inputs: clips (required), out_file (required), duck, music, +5 more. Returns: object
gflow_video_captionsB
Burn an authored SRT file into a local video or transcribe first when srt is omitted. Credit-free; generated .mp4 and automatic .srt outputs stay inside the configured output directory.
Inputs: file (required), srt, profile, language, +1 more. Returns: object
gflow_video_transcribeA
Transcribe a local video or catalog video UUID to an .srt file using the configured OpenAI-compatible audio transcription endpoint. Credit-free; output stays inside the configured output directory. Google’s default endpoint is refused before audio is sent.
Inputs: file (required), profile, language, out_file. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 27 tools
Most tools target a clearly distinct resource+action (generate vs upscale, trash vs restore, character_create vs character_show). The main overlap is within the instructions family, where gflow_instructions_apply (destructive full-sync) sits alongside add/rm/set_enabled and could be mistaken for a bulk add, and gflow_video_captions can internally transcribe, blurring its line with gflow_video_transcribe. A couple of other pairs (generate_image vs upscale_image) are distinguishable only by reading descriptions carefully.
All tools share the gflow_ prefix, but the convention beneath it mixes noun-first (instructions_add, character_list, media_trash, video_assemble) and verb-first (list_projects, generate_image, get_credits, download_media) orderings, plus an abbreviation 'rm' instead of remove/delete. It is readable and mostly predictable in groups, but not a single consistent verb_noun pattern.
27 tools is heavy and sits above the comfortable 3-15 range, with six tools devoted to instruction cards alone. Each tool does map to a real, non-trivial operation (generation, upscaling, media lifecycle, characters, assembly, transcription, credits), so the count reflects genuine breadth rather than padding, but it is at the upper bound of what an agent can scan reliably.
Core generation, upscale, download, trash/restore, character read/create, instructions lifecycle, video assembly, and credit/auth checks are covered. Notable gaps: only list_projects exists (no create/rename/delete project), characters can be created and shown but not updated or deleted, and there is no tool to list a project's generated media or to cancel/delete a pending generation, which will force agents into dead ends.
Maintenance
Related MCP Connectors
Google Flow's agent: chat that plans and makes images and videos, approvals, your own media
AI image + video generation for agents: --flag prompt DSL, async generate/poll, x402 pay-per-use.
Generate images, video, music and voice from your CLI or AI agent. On-brand AI media toolkit.
Generate images, video, and audio with Glif's media-generation agent
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables Claude to drive Google Flow end-to-end: batch video generation on Veo 3 / Omni 1.1, scene chaining, keyframe transitions, video-to-video edits, and automatic downloads, all through a local bridge with the OmniFlow Chrome extension.5489 npmMIT
- AlicenseBqualityBmaintenanceEnables users to generate images and videos on Google Flow through browser automation of an already signed-in Chrome session, downloading the finished media to disk without any API keys. It drives Flow's agent with a range of image and video models, plus reference images, first/last frames, and ingredient-based video jobs, while reusing the user's own Google AI Pro credits.17MIT
- AlicenseAqualityBmaintenanceLets an AI agent drive Google Flow (flow.google.com) through a locally logged-in Chrome profile to generate images, videos, characters, and scenes. Uses browser automation via the Chrome DevTools Protocol, so Google credentials are never shared with the agent.21MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to generate and edit Google Flow images and videos, run batch storyboards, manage projects and characters, check credits, and download 1080p clips through a signed-in Flow account.MIT