Overview
Fal.ai provides the AI models for image editing and video generation in AI Studio. The platform uses three main models:- Nano Banana Pro - Fast image editing and enhancement
- Qwen Image Edit - Advanced inpainting and masked editing
- Kling Video v2.6 Pro - Image-to-video generation
Configuration
Environment Variables
Add the following to your.env.local file:
Setup Steps
Get API Key
- Sign up at fal.ai
- Navigate to the API Keys dashboard
- Create a new API key
- Copy the key for use in your environment variables
Available Models
Nano Banana Pro Edit
Fast image editing model for real estate photo enhancement. Model ID:fal-ai/nano-banana-pro/edit
Input Parameters:
Qwen Image Edit Inpaint
Advanced inpainting model for selective editing with masks. Model ID:fal-ai/qwen-image-edit/inpaint
Input Parameters:
Kling Video v2.6 Pro
Image-to-video generation for creating property walkthroughs. Model ID:fal-ai/kling-video/v2.6/pro/image-to-video
Input Parameters:
Usage in Background Jobs
Fal.ai is used in Trigger.dev tasks for async processing:Image Processing
Seetrigger/process-image.ts for the complete implementation:
Video Generation
Seetrigger/generate-video-clip.ts for the complete implementation:
Pricing
Typical costs per operation (as of documentation):- Nano Banana Pro Edit: ~$0.039 per image
- Qwen Inpaint: Variable based on steps and resolution
- Kling Video Pro: Variable based on duration and resolution