Skip to content

Navigation Menu

Sign in
Sign up

Repository files navigation

Google Flow API examples (useapi.net)

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
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 2, Nano Banana Pro Generate images via curl
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
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
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

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):

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.

About useapi.net

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.

About

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 / Imagen 4 images through a simple REST API.

Topics

Resources

Stars

18 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /