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.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 October 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 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 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 (October 20, 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 workflow: a form that generates Veo 3.1 video or Nano Banana Pro images and returns the files | n8n template #19991 | September 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.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 |
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.
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.
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 tokenThen, 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.
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-apiThe 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.
- Does Google Flow have an API or an API key? Through useapi.net, yes. Google offers Flow only as a website, with no public API and no Flow API key (as of October 2026). The useapi.net Google Flow API runs Veo 3.1, Omni 1.1 Flash and Nano Banana Pro, 2.1 and 2 Lite over REST on your Google AI subscription, with a useapi.net API token as the key, and also chats with Google Flow Agent, which Google offers only inside the Flow website.
- How do I connect my Google account? Through the useapi.net automated browser setup: sign in with Google once, with no cookies to copy and no Google Cloud project or Gemini API key, and it's done in about a minute. Captchas are solved for you: your first account gets 300 free, then your own captcha provider costs about $0.80 to $3.00 per 1,000. To connect by hand, the Google Account Setup scripts (Windows, macOS, Linux) open a clean, single-use browser profile, so the cookies you copy keep working.
- How much does the Google Flow API cost? Through useapi.net, an 8-second Veo 3.1 Fast video costs $0.08 in Flow credits on Google AI Ultra $199.99 and $0.40 on Pro $19.99, against $0.80 on Google's Agent Platform. An 8-second Omni 1.1 Flash video costs $0.10 on Ultra $199.99, against $0.81 on the Gemini API, and Nano Banana Pro images use no credits, against $0.134 each (as of October 2026). The price table shows every model on every subscription.
- Is there a free Google Flow API? Through useapi.net, yes: a free Google account makes Nano Banana images and Veo 3.1 Fast and Lite videos on its 50 daily Flow credits, enough for 2 Fast or 5 Lite videos, while Google's Gemini API charges for every image and every second of video (as of October 2026). Upscaling an image to 2K is free on every account too. Omni 1.1 Flash and video upscaling need a paid Google AI subscription.
- Is there a second Omni allowance? Through useapi.net, yes: the Google Vids API makes Omni 1.1 Flash video on the same Google AI subscription from Vids' own monthly allowance, separate from Flow credits and with no captcha. On Ultra $199.99 the two allowances together come to about 2,666 ten-second Omni clips a month on one Google account. Examples: useapi/google-vids-api.
- More answers: Google Flow API questions.
- Veo 3.1 API Pricing: Official Google Veo API vs Google Flow API
- Google Flow Errors Explained: Upscaling Failed, PUBLIC_ERROR_UNUSUAL_ACTIVITY and Unsafe Generation
- Sora 2 API Alternatives Compared, With Code: Seedance 2.5, Omni Flash, MiniMax H3, Kling v3
- Chinese-language tutorial (中文教程): Veo 3.1, Omni 1.1 Flash and Nano Banana Pro
- All articles: useapi.net articles
这是 useapi.net 托管的第三方 Google Flow API 示例代码(Node.js 与 Python)。通过 REST API 调用 Veo 3.1 Fast、Quality、Lite 视频,Omni 1.1 Flash 带音频视频,以及 Nano Banana Pro、2.1 和 2 Lite 图片生成。
- 使用你的 Google AI 订阅(免费版、Plus $4.99、Pro $19.99、Ultra $99.99 或 Ultra $199.99 每月,2026 年 10 月价格),已支持新域名
flow.google.com。 - 无需 Google Cloud 项目或 Gemini API Key,无需自己部署服务或维护浏览器。
- 账号通过自动化浏览器流程绑定,登录 Google 即可,无需手动复制 Cookie。
- reCAPTCHA 由服务端自动处理(首个账号赠送 300 次免费打码,之后接入你自己的打码服务)。
- useapi.net 每月 15 美元,含所有 API,每个订阅可连接 3 个 Google 账号。
- 成本:在 Google AI Ultra $199.99 上,一条 8 秒 Veo 3.1 Fast 视频约 $0.08 的 Flow 积分,Google 官方 API 为 $0.80(2026 年 10 月)。图片生成不消耗积分,免费 Google 账号也可使用。
中文教程(Veo 3.1、Omni 1.1 Flash、Nano Banana Pro,含价格对比与示例):如何通过 Google Flow API 调用 Veo 3.1、Omni 1.1 Flash 和 Nano Banana Pro。快速开始见上方 Quick start,完整文档:Google Flow API。
useapi.net is a third-party REST API for AI services, not affiliated with Google. The Google Flow API runs on your Google AI subscription, so you spend its Flow credits instead of paying metered developer-API prices. See the models and the pricing comparison.
Visit our Discord Server or Telegram Channel for any support questions and concerns.
We regularly post guides and tutorials on the YouTube Channel.
The example code in this repository is released under the MIT License. It covers the example scripts only, not the useapi.net service or API.