Runnable Node.js examples for the Google Flow API by useapi.net — generate Veo 3.1 video, Gemini Omni Flash audio-native video, and Nano Banana / Nano Banana Pro / Imagen 4 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 reads a list of prompts from prompts.json, submits them through the useapi.net Google Flow API, and downloads every result — so you can queue a batch and come back to the winners.
| Example | What it does | Tutorial |
|---|---|---|
veo-video/ |
Batch-generate Veo 3.1 video — text-to-video, first/last-frame image-to-video, reference-to-video | Generate Veo 3.1 video via curl |
images/ |
Batch-generate images with Nano Banana, Nano Banana Pro, Imagen 4 | Generate images via curl |
omni-flash/ |
Batch-generate Gemini Omni Flash audio-native video — text-to-video, reference-to-video, video-to-video edit | Generate Omni Flash video via curl |
You need Node.js v21 or newer, 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>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 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.