Google Flow API examples (useapi.net)
English · 中文 · 日本語 · Português · Tiếng Việt · Bahasa Indonesia · ไทย
Runnable Node.js and Python examples for the Google Flow API by useapi.net — generate Veo 3.1 Fast, Quality and Lite video, Omni 1.2 and 1.1 Flash audio-native video, and Nano Banana Pro, 2.1 and 2 Lite images through a REST API that runs on your Google AI subscription for Google Flow: Free, Plus $4.99, Pro $19.99, Ultra $99.99 or Ultra $199.99 a month (as of November 2026). No Google Cloud project, no Gemini API key, no per-call metering.
Each example ships JavaScript and Python implementations (.mjs and .py) driven by a prompts.json (or, for omni-extend/, a story.json) you edit. Most are batch runners: they submit every prompt in the file and download every result, so you can queue a batch and come back to the winners. ugc-product-video/ is a pipeline instead — it chains six endpoints into one finished video, checkpointing as it goes.
| Example | What it does | Tutorial | Tutorial date |
|---|
demo/ | Live agent chat app: a browser chat with Google Flow's creative agent through the API, with answers streamed live, the agent's images and videos inline (full-size view, download, reuse), uploads, characters and voices attached along the way, spending approvals, a Library and the agent's settings. Open the live demo or open demo/index.html locally. Vanilla JS, no build | Agent overview, Chat with Google Flow Agent | October 16, 2026 |
veo-video/ | Batch-generate Veo 3.1 video — text-to-video, first/last-frame image-to-video | Generate Veo 3.1 video via curl · 中文 | June 15, 2026 (October 20, 2026) |
images/ | Batch-generate images with Nano Banana 2 Lite (default), Nano Banana 2.1, Nano Banana Pro | Generate images via curl | June 15, 2026 (October 20, 2026) |
nano-banana-compare/ | Run one prompt through all three Nano Banana models (2 Lite, 2.1, Pro) and compare | Nano Banana 2 Lite vs 2.1 vs Pro compared | July 2, 2026 (October 20, 2026) |
omni-flash/ | Batch-generate Omni 1.1 Flash (or Omni 1.2 Flash with "model": "omni-flash-1.2") audio-native video — text-to-video, first/last-frame image-to-video, reference-to-video, video-to-video edit | Generate Omni 1.1 Flash video via curl | June 15, 2026 (November 6, 2026) |
omni-extend/ | Make one long Omni 1.2 Flash video: a first clip of 3 to 15 seconds, then extensions of up to 10 seconds each with their own voices, images or characters (the release post's 30-second scene is the default story) | Extend a video with Omni 1.2 | June 15, 2026 (November 6, 2026) |
ugc-product-video/ | Build a whole UGC product video — product sheets, a presenter, one still, an Omni 1.1 Flash clip per product, upscaled and joined | Make a UGC product video | September 4, 2026 (October 20, 2026) |
n8n/ | Ready-to-import n8n workflows: a Google Sheet batch of Veo 3.1 videos and Nano Banana Pro images saved to Google Drive, and a one-prompt form | n8n workflows | September 28, 2026 (October 28, 2026) |
n8n/ugc-ad-factory.json | Ready-to-import n8n form workflow that builds a whole UGC video ad with Omni 1.1 Flash: pick or re-roll at every step, upload your own product photos, 1–5 products, 1080p | Make UGC video ads in n8n | October 3, 2026 (October 20, 2026) |
skills/omni-flash-video/ | Agent skill for Claude Code, Codex and Cursor: ask for a clip and the agent makes it with Omni 1.2 Flash, Omni 1.1 Flash or Veo 3.1 (dialogue, voices, reference images, first/last frames) and downloads the .mp4. Install: npx skills add useapi/google-flow-api --skill omni-flash-video | SKILL.md | |
Quick start
You need Node.js v21 or newer or Python 3.x (neither has any dependencies to install), a useapi.net API token, and a connected Google Flow account (one $15/month subscription covers every useapi.net API and 3 Google accounts):
git clone https://github.com/useapi/google-flow-api.git
cd google-flow-api/veo-video
node ./google-flow.mjs <API_TOKEN> <EMAIL>
# or, equivalently, with Python:
python3 ./google-flow.py <API_TOKEN> <EMAIL>
Edit prompts.json in each folder to queue your own prompts. Every supported parameter is documented on the POST /videos and POST /images endpoint pages.
MCP server

useapi.net also runs a hosted Model Context Protocol server for Google Flow, so an AI assistant such as Claude Code, Cursor or VS Code Copilot can use it on your Google Flow account. It has 12 tools: chat with Google Flow Agent, attach images, a video, voices and characters, answer its requests to spend credits, manage chats, set the project's approval mode, instructions and default models, list the account's characters, voices, images and videos, and upload images. Nothing to install or run locally.
- Endpoint:
https://api.useapi.net/v1/google-flow/mcp
- Transport: Streamable HTTP
- Authorization: your useapi.net API token in the
Authorization: Bearer … header, and an account connected with the Google Flow setup
- Listed in the official MCP Registry as
net.useapi/google-flow
Claude Code:
claude mcp add --transport http useapi-google-flow https://api.useapi.net/v1/google-flow/mcp --header "Authorization: Bearer YOUR_API_TOKEN"
Cursor, VS Code, Windsurf and the full tool list: Google Flow MCP server docs. useapi.net is a third-party API, not affiliated with Google.
Use with Claude Code
This repo is also a Claude Code plugin marketplace. The plugin adds the hosted Google Flow MCP server and the omni-flash-video agent skill, and reads your token from the USEAPI_TOKEN environment variable, so set it before you start Claude Code:
export USEAPI_TOKEN=user:12345-... # your useapi.net API token
Then, inside Claude Code:
/plugin marketplace add useapi/google-flow-api
/plugin install google-flow@useapi-google-flow
On Claude Code 2.1.275 or later, /plugin install google-flow --marketplace useapi/google-flow-api does both in one step. Run /mcp to check that useapi-google-flow is connected.
Use with Gemini CLI
This repo is also a Gemini CLI extension with the same MCP server and the omni-flash-video agent skill:
gemini extensions install https://github.com/useapi/google-flow-api
The install asks for your useapi.net API token and keeps it in the system keychain. Change it later with gemini extensions config useapi-google-flow, and check the connection with gemini mcp list. The omni-flash-video skill's scripts read USEAPI_TOKEN from your shell, so export it as well if you use the skill.
Common questions