Create incredible videos by mixing visual ingredients! A Next.js demo showcasing the power of fal.ai's Veo 3.1 and Seedream v4 models.
Visual Recipe Lab is an interactive demo that demonstrates how to combine multiple AI models to create something magical:
- Generate up to 3 "ingredients" - Create images using Seedream v4
- Mix them together - Use Veo 3.1 to create a video with all your ingredients in one dynamic scene
- AI-enhanced prompts - Use the video-prompt-generator to create cinematic video descriptions
- 🎨 Image Generation - Generate high-quality images with Seedream v4
- 🎥 Video Synthesis - Combine multiple images into coherent video scenes with Veo 3.1
- ✨ AI Prompt Enhancement - Automatically improve your video prompts with LLM assistance
- Node.js 18+
- A fal.ai API key
- Clone the repository:
git clone https://github.com/blendi-remade/veo-recipe-lab.git- Install dependencies:
npm install- Create a
.env.localfile in the root directory:
FAL_KEY=your_fal_api_key_here- Run the development server:
npm run dev- Open http://localhost:3000 in your browser!
-
Step 1: Generate Ingredients
- Enter prompts for up to 3 images (e.g., "a magical wizard", "a steampunk robot", "a fantasy castle")
- Click "Generate" for each ingredient
- Select which ingredients you want to use in your video
-
Step 2: Mix Your Ingredients
- Describe how you want your ingredients to interact (e.g., "dancing together in a magical forest")
- (Optional) Click "Enhance with AI" to improve your prompt
- Click "Generate Video" and wait for the magic!
-
Download & Share
- Watch your creation
- Download the video
- Create another masterpiece! The possibilites are endless!
- Framework: Next.js 15 with App Router
- Language: TypeScript
- Styling: Tailwind CSS 4
- AI Models: fal.ai
- Seedream v4 for image generation
- Veo 3.1 for video synthesis
- Video Prompt Generator for prompt enhancement
veo-recipe-lab/
├── src/
│ ├── app/
│ │ ├── api/
│ │ │ ├── generate-image/ # Seedream v4 API route
│ │ │ ├── generate-video/ # Veo 3.1 API route
│ │ │ └── enhance-video-prompt/ # Prompt enhancement API route
│ │ ├── globals.css # Global styles & animations
│ │ ├── layout.tsx
│ │ └── page.tsx # Main app page
│ └── components/
│ ├── IngredientCard.tsx # Image generation component
│ └── MixingChamber.tsx # Video generation component
├── .env.local # Environment variables (create this!)
└── package.json
If you have questions about this demo or want to learn more about building with fal.ai, check out: