Starter FastAPI backend for Fal.ai's image and video generation APIs. A minimal template to help developers quickly build applications with Fal.ai models.
- Image generation from text prompts
- Video generation from text or images
- Image restoration and enhancement
- Full type safety with Pydantic
- Install dependencies:
uv sync - Set up environment: Add your
FAL_KEYto.envfile - Run server:
uv run uvicorn main:app --reload
Health check endpoint.
Generate images from text prompts.
Restore and enhance uploaded images (multipart/form-data).
Generate videos from text prompts.
Generate videos from uploaded images (multipart/form-data).
Set your Fal.ai API key in .env:
FAL_KEY=your_fal_api_key_here