A secure web application for generating videos using Google's Veo 3 model via FAL.ai. The API key is safely stored in an external file and never exposed in the browser interface.
- 🔐 Secure API Key Management - API key stored in external
fal.envfile - 🎨 Clean Web Interface - Beautiful Tailwind CSS interface
- ⚙️ Full Parameter Control - All Veo 3 parameters exposed
- 📊 Real-time Progress - Live status updates during generation
- 🎬 Video Preview - Direct video playback and download
- 🖥️ Screenshare Safe - No API key visible in the interface
veo3-video-generator/
├── server.js
├── package.json
├── fal.env
├── README.md
└── public/
└── index.html
npm install- Get your FAL.ai API key from fal.ai/dashboard/keys
- Create a
fal.envfile in the project root:
# fal.env
FAL_KEY=your_actual_api_key_herefal.env to your .gitignore file to prevent committing your API key!
# Production
npm start
# Development (with auto-restart)
npm run devNavigate to http://localhost:3000
server.js- Express server that handles API requests and serves the frontendpublic/index.html- Frontend interface with form controls and video displayfal.env- API key configuration (not committed to git)package.json- Node.js dependencies and scripts
GET /- Serves the main applicationGET /api/status- Server health checkPOST /api/generate-video- Video generation endpoint
- Prompt: Detailed description of the desired video
- Negative Prompt: What to avoid in the video
- Aspect Ratio: 16:9 (landscape) or 9:16 (portrait)
- Duration: 5 or 8 seconds
- Seed: For reproducible results
- Enhance Prompt: AI prompt enhancement
- Generate Audio: Include audio (uses 33% more credits)
- API key stored server-side only
- No sensitive data exposed to browser
- Input validation and error handling
- Secure file-based configuration
For development with auto-restart:
npm install -g nodemon
npm run dev- Check that
fal.envexists and containsFAL_KEY=your_key - Verify your API key is valid at fal.ai
- Check server logs for detailed error messages
- Verify your FAL.ai account has sufficient credits
- Ensure prompts follow the recommended format
- Make sure the server is running on
http://localhost:3000 - Check browser console for JavaScript errors
- Veo 3 Model: Google
- API Platform: FAL.ai
- UI Framework: Tailwind CSS
MIT License - feel free to modify and distribute!