Image generation service implementation using fal’s fast SDXL models
FalImageGenService
provides high-speed image generation capabilities using fal’s optimized Stable Diffusion XL models. It supports various image sizes, formats, and generation parameters with a focus on fast inference.
FalImageGenService
, install the required dependencies:
FAL_KEY
square_hd
, square
, portrait_4_3
, portrait_16_9
, landscape_4_3
, landscape_16_9
Note: For custom image sizes, you can pass the width and height as an object: