Flow
An open-source creative workspace for AI image and video generation through APIs.
Turn prompts and reference images into visual stories with Nano Banana, Omni, and Veo from one focused, cinematic interface.
Live Demo
|
Quick Start
|
Providers
|
Contribute
Languages: 🇺🇸 English · 🇧🇷 Português · 🇪🇸 Español

Why Flow?
Most generative media tools separate image creation, video generation, references, files, and project history across different screens. Flow brings that creative loop into one visual workspace:
- Create images and videos in the same project without switching products.
- Choose the exact Vertex AI model instead of hiding it behind a generic quality selector.
- Control the output with model-specific aspect ratios, image sizes, durations, resolutions, and thinking levels.
- Use references naturally by uploading, pasting, or dragging an image into the composer.
- Keep the creative context with project galleries, reusable prompts, downloads, and generated-media history.
- Own the stack with an MIT-licensed Next.js application connected directly to your Google Cloud project.
Screenshots
| Project dashboard |
Creative workspace |
 |
 |
Generation controls

Supported models
Flow currently exposes these model choices in the UI. Availability, quota, supported regions, and preview access are controlled by Google Cloud and may differ between projects.
Image generation
| Display name |
Vertex AI model ID |
Output controls |
| Nano Banana Pro |
gemini-3-pro-image |
1K, 2K, 4K; model-supported aspect ratios |
| Nano Banana 2 |
gemini-3.1-flash-image |
512, 1K, 2K, 4K; thinking level; extended aspect ratios |
| Nano Banana 2 Lite |
gemini-3.1-flash-lite-image |
1K; model-supported aspect ratios |
Video generation
| Display name |
Vertex AI model ID |
Duration |
Resolution |
| Omni 1.1 Flash |
gemini-omni-1.1-flash-preview |
3 to 10 seconds |
360p, 720p, 1080p, 4K |
| Veo 3.1 - Lite |
veo-3.1-lite-generate-001 |
4, 6, or 8 seconds |
720p, 1080p |
| Veo 3.1 - Fast |
veo-3.1-fast-generate-001 |
4, 6, or 8 seconds |
720p, 1080p |
| Veo 3.1 - Quality |
veo-3.1-generate-001 |
4, 6, or 8 seconds |
720p, 1080p, 4K |
For Veo, outputs above 720p use an 8-second duration because that is the constraint implemented by the current Vertex AI integration. Flow supports 16:9 and 9:16 video output, plus text-to-video and image-to-video workflows.
Features
- Prompt-to-image and prompt-to-video generation
- Image-to-image and image-to-video reference workflows
- Up to four image outputs per request
- Drag, paste, upload, and gallery-to-prompt reference images
- Per-model sizes, aspect ratios, durations, and resolutions
- Asynchronous Omni and Veo operation polling
- Project creation, rename, deletion, and visual thumbnails
- Persistent PostgreSQL media and project library
- Desktop-first creative interface
- Media preview, zoom, download, delete, and prompt reuse
- Browser-aware interface in English, Portuguese, and Spanish with a persistent language selector
- Direct Vertex AI authentication, with no Google AI Studio API key required
Tech stack
- Next.js App Router and server route handlers
- React 19, TypeScript, Tailwind CSS 4, Motion, Radix UI, and Zustand
- Neon serverless PostgreSQL
- Google Cloud OAuth service-account authentication
- Vertex AI Gemini image generation, Interactions API, and Veo long-running operations
Architecture
flowchart LR
U[Browser] -->|Projects and generation controls| N[Next.js application]
N -->|CRUD| P[(PostgreSQL / Neon)]
N -->|Signed OAuth request| A[Google Cloud OAuth]
A --> V[Vertex AI]
V --> I[Gemini image models]
V --> O[Omni Interactions API]
V --> E[Veo long-running API]
I --> N
O --> N
E --> N
The browser never receives Google Cloud credentials. All Vertex AI authentication and model calls happen in server-only route handlers. See Architecture for the request flows and module map.
Quick start
Prerequisites
- Node.js 20.9 or newer
- A PostgreSQL database (Neon works out of the box)
- A Google Cloud project with billing enabled
- Vertex AI API enabled
- A service account allowed to use Vertex AI
- Access and quota for the models you want to run
1. Clone and install
git clone https://github.com/TechBeme/flow.git
cd flow
npm install
2. Configure the environment
cp .env.example .env.local
For local development, keep the downloaded service-account file outside Git history and point to it:
DATABASE_URL=postgresql://USER:PASSWORD@HOST/DATABASE?sslmode=require
GOOGLE_APPLICATION_CREDENTIALS=./vertex.json
GOOGLE_CLOUD_PROJECT=your-google-cloud-project
GOOGLE_CLOUD_LOCATION=global
GOOGLE_CLOUD_VIDEO_LOCATION=us-central1
vertex.json, .env.local, and common credential-file patterns are ignored by Git. Never commit a real private key.
3. Start Flow
npm run dev
Open http://localhost:3000, create a project, and start generating. The database schema is created automatically on the first project/media request.
The complete setup, including Google Cloud IAM, is in Getting Started.
Deploy on Vercel
- Import the GitHub repository into Vercel.
- Add
DATABASE_URL.
- Add the complete service-account JSON as
GOOGLE_SERVICE_ACCOUNT_JSON.
- Add the optional location overrides when your project requires them.
- Deploy and attach your custom domain.
Flow also accepts GOOGLE_SERVICE_ACCOUNT_JSON_BASE64, which can be useful when a platform makes multiline secret values difficult to manage. File-based GOOGLE_APPLICATION_CREDENTIALS is intended primarily for local or container deployments.
[!WARNING]
Flow currently has no built-in user authentication, rate limiting, or per-user quota. Do not expose a deployment backed by a billable Google Cloud project without adding access control and abuse protection appropriate for your use case.
See Deployment and Configuration for production details.
Commands
| Command |
Purpose |
npm run dev |
Start the local development server |
npm run lint |
Run ESLint |
npx tsc --noEmit |
Run TypeScript checks without emitting files |
npm run build |
Create a production build |
npm start |
Serve the production build |
Documentation
Contributing
Contributions are welcome, from bug fixes and provider improvements to accessibility, documentation, model support, and creative tooling.
- Read CONTRIBUTING.md.
- Fork the repository and create a focused branch.
- Run lint, type checks, and the production build.
- Open a pull request using the provided template.
If Flow is useful to you, the simplest way to support it is to star the repository, share it with another creator, and tell us what you build.
Security
Do not report vulnerabilities in public issues. Follow SECURITY.md and avoid including credentials, project IDs, generated private media, or personal data in reports.
Disclaimer
Flow is an independent open-source project. It is not affiliated with, endorsed by, or sponsored by Google. Google Cloud, Vertex AI, Gemini, Nano Banana, Omni, and Veo are trademarks or product names of their respective owners. Model names, APIs, availability, pricing, quota, and capabilities may change upstream.
You are responsible for your cloud costs, generated content, deployment security, and compliance with Google Cloud terms and applicable law.
License
Released under the MIT License.