A Next.js app showcasing AI video generation with the fal SDK.
A Next.js application that demonstrates the power of the fal.ai SDK for AI-powered video generation. This project showcases how to use fal's queue management system and proxy setup to create animated videos from static images.
fal.ai is a serverless platform for running AI models at scale.
Clone the repository
Install dependencies:
npm install# oryarn install# orpnpm install
Set up your environment variables:
.env.example
to .env.local
:
cp .env.example .env.local
FAL_KEY
in .env.local
with your fal.ai API keyRun the development server:
npm run dev# oryarn dev# orpnpm dev
Open http://localhost:3000 with your browser to see the application.
app/components/VideoGenerator.tsx
- Main component handling video generationapp/api/fal/proxy/route.ts
- API route for proxying fal.ai requestsapp/page.tsx
- Main page componentThe project includes a proxy route (/api/fal/proxy
) that securely forwards requests to fal.ai, keeping your API keys private on the server side.
MIT
A Next.js app showcasing AI video generation with the fal SDK.
A Next.js application that demonstrates the power of the fal.ai SDK for AI-powered video generation. This project showcases how to use fal's queue management system and proxy setup to create animated videos from static images.
fal.ai is a serverless platform for running AI models at scale.
Clone the repository
Install dependencies:
npm install# oryarn install# orpnpm install
Set up your environment variables:
.env.example
to .env.local
:
cp .env.example .env.local
FAL_KEY
in .env.local
with your fal.ai API keyRun the development server:
npm run dev# oryarn dev# orpnpm dev
Open http://localhost:3000 with your browser to see the application.
app/components/VideoGenerator.tsx
- Main component handling video generationapp/api/fal/proxy/route.ts
- API route for proxying fal.ai requestsapp/page.tsx
- Main page componentThe project includes a proxy route (/api/fal/proxy
) that securely forwards requests to fal.ai, keeping your API keys private on the server side.
MIT