@openpets/fal
v1.0.2
Published
FAL AI image and video generation plugin for OpenCode - text-to-image, image-to-image, text-to-video, and image-to-video using Flux, Stable Diffusion, Kling, and more
Maintainers
Readme
FAL AI Image & Video Generation
FAL AI image and video generation plugin for OpenCode - text-to-image, image-to-image, text-to-video, and image-to-video using Flux, Stable Diffusion, Kling, and more.
Features
- Text-to-Image: Generate images from text descriptions using Flux, Stable Diffusion, and other models
- Image-to-Image: Transform existing images with style transfer, editing, and variations
- Text-to-Video: Create videos from text prompts using Kling, Runway Gen-3, and more
- Image-to-Video: Animate static images with camera movements and effects
Installation
npm install openpets/falSetup
- Get your FAL AI API key from https://fal.ai
- Create a
.envfile in the plugin directory:
FAL_KEY=your-api-key-hereUsage
Generate an image
opencode run "generate an image of a sunset over the ocean"Transform an image
opencode run "transform this image into watercolor style"Generate a video
opencode run "generate a video of clouds drifting across the sky"Animate an image
opencode run "animate this image with a camera pan"Available Tools
fal-generate-image: Generate images using FAL AI text-to-image modelsfal-transform-image: Transform images using FAL AI image-to-image modelsfal-generate-video: Generate videos using FAL AI text-to-video modelsfal-animate-image: Animate static images using FAL AI image-to-video models
Testing
Run individual test scripts:
npm run test:generate-image
npm run test:transform-image
npm run test:generate-video
npm run test:animate-imageLicense
MIT
