FA

fal

Open Source AI/MLMedia

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

fal ai image-generation video-generation flux stable-diffusion kling-video text-to-image image-to-image text-to-video

Quick Install

npm install @openpets/fal
pnpm add @openpets/fal

Required Environment Variables

  • FAL_KEY

    FAL AI API key for image and video generation

Available Tools (4)

These tools are available when you install the fal plugin in your AI assistant.

fal-generate-image

Generate an image using FAL AI text-to-image models (Flux, Stable Diffusion, etc.)

fal-transform-image

Transform an existing image using FAL AI image-to-image models (style transfer, editing, variations)

fal-generate-video

Generate a video using FAL AI text-to-video models (Kling, Runway Gen-3, etc.)

fal-animate-image

Animate a static image using FAL AI image-to-video models

Example Queries

generate an image of a sunset over the ocean
transform this image into watercolor style
generate a video of clouds drifting across the sky
animate this image with a camera pan

Usage Scenarios

text to image basic

  1. 1 use fal-generate-image to create a cat sitting on a windowsill
  2. 2 use fal-generate-image with square_hd size for a landscape with mountains
  3. 3 use fal-generate-image to make a portrait of a robot

image transformation

  1. 1 use fal-transform-image to convert photo to watercolor style
  2. 2 use fal-transform-image to add cyberpunk effects to image
  3. 3 use fal-transform-image to change day photo to night

video generation

  1. 1 use fal-generate-video to create ocean waves crashing on beach
  2. 2 use fal-generate-video with 16:9 aspect for rotating product
  3. 3 use fal-generate-video at 30 fps for smooth fireworks animation

image animation

  1. 1 use fal-animate-image to add camera pan to landscape photo
  2. 2 use fal-animate-image with zoom motion for city skyline
  3. 3 use fal-animate-image to create parallax effect in forest scene

Use fal with Your AI Assistant

This open source plugin works with OpenCode-compatible AI assistants including ChatGPT, Claude, Perplexity, and other LLM-powered coding tools. Install the plugin and start using natural language to interact with fal.

Works with ChatGPT Works with Claude Works with Perplexity MCP Compatible