Runnable Node.js and Python examples for the Google Flow API by useapi.net — generate Veo 3.1 video, Gemini Omni Flash audio-native video, and Nano Banana 2 Lite / Nano Banana 2 / Nano Banana Pro images through a simple REST API that drives your own Google Flow subscription (no Google Cloud project, API key, or 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 |
|---|---|---|---|
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 (September 11, 2026) |
images/ |
Batch-generate images with Nano Banana 2 Lite (default), Nano Banana 2, Nano Banana Pro | Generate images via curl | June 15, 2026 (September 11, 2026) |
nano-banana-compare/ |
Run one prompt through all three Nano Banana models (2 Lite, 2, Pro) and compare | Nano Banana 2 Lite vs 2 vs Pro compared | July 2, 2026 (September 11, 2026) |
omni-flash/ |
Batch-generate Gemini Omni Flash audio-native video — text-to-video, first/last-frame image-to-video, reference-to-video, video-to-video edit | Generate Omni Flash video via curl | June 15, 2026 (September 11, 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 |
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 |
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):
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.
- Does Google Flow have an official API or API key? No. Flow is a web app only. Veo 3.1, Omni 1.1 Flash and Nano Banana are sold separately on the metered Gemini API (Omni since June 30, 2026, about $0.10 per second of 720p video). This API drives your own Flow account with a useapi.net token instead.
- What does it cost? A flat $15/month to useapi.net plus the Google AI plan you already have. Images work even on a free Google account, and video spends your plan's Flow credits. See the pricing comparison.
- More answers: Google Flow API questions.
这是 useapi.net 托管的 Google Flow API 示例代码(Node.js 与 Python)。通过 REST API 调用 Veo 3.1 视频、Omni Flash 带音频视频,以及 Nano Banana 2 Lite / Nano Banana 2 / Nano Banana Pro 图片生成。
- 使用你自己的 Google 账号和 Google AI 订阅,已支持新域名
flow.google.com。 - 无需 Google Cloud 项目或 Gemini API Key,无需自己部署服务或维护浏览器。
- 账号通过自动化浏览器流程绑定,登录 Google 即可,无需手动复制 Cookie。
- reCAPTCHA 由服务端自动处理(首个账号赠送 300 次免费打码,之后接入你自己的打码服务)。
- 价格:useapi.net 每月 15 美元(含 3 个 Google Flow 账号及所有其他 API),加上你已有的 Google AI 订阅。图片生成在免费 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 an experimental REST API for AI services. The Google Flow API drives your own Google Flow / Google AI subscription, so you spend your plan's credits at consumer rates instead of metered developer-API pricing. See the model matrix and the pricing comparison on the API overview.
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.