fal-generate

Generate images and videos from text prompts using fal.ai models via CLI.

2|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/aleSheng/fal-agent --skill fal-generate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fal-generate
Source: https://github.com/aleSheng/fal-agent/tree/main
Command: npx skills add https://github.com/aleSheng/fal-agent --skill fal-generate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This CLI-based skill enables rapid generation of images and videos using fal.ai models directly from the command line, reducing manual effort and iteration time in visual content creation.

Core Features & Use Cases

  • CLI generation: Create images and videos from text prompts using fal.ai models via the terminal.
  • Queue-based processing: Supports asynchronous queueing for long-running video generations with status checks.
  • Use Case: A designer needs multiple visual outputs for a campaign; generate variations with different prompts and collect the resulting URLs.

Quick Start

bun run generate --prompt "a futuristic city" --model fal-ai/flux/dev

Frequently Asked Questions about fal-generate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate images and videos from the command line using fal.ai?

To generate images and videos via fal.ai from the command line, you run the provided generation script with your text prompt and target model, such as flux/dev. The tool handles text-to-image, text-to-video, and image-to-video workflows directly from the terminal.

Can I queue long-running video generation tasks asynchronously with fal.ai?

Yes, you can queue long-running video generation tasks asynchronously with fal.ai. The CLI tool supports queue-based processing with status checks, allowing you to submit long-running video generation jobs and retrieve their resulting URLs upon completion.

What environment setup is required to run fal.ai generation scripts?

The environment setup requires reading your FAL_KEY from an environment variable or a local .env file. You also need a JavaScript runtime like bun installed to execute the generation, search, upload, and schema lookup scripts provided by the toolchain.

Does this CLI tool support text-to-video and image-to-video workflows?

Yes, this CLI tool explicitly supports text-to-video and image-to-video workflows alongside text-to-image generation. It provides a self-contained toolchain with dedicated scripts for generate, search, upload, setup, and schema lookup to manage these tasks.

Why use a CLI tool for generating images instead of a web interface?

Using a CLI tool for generating images reduces manual effort and iteration time in visual content creation. It allows designers to rapidly generate multiple visual outputs and campaign variations with different prompts directly from the terminal.

What are the limitations of running text-to-image generation via fal.ai scripts?

Running text-to-image generation via fal.ai scripts requires a valid FAL_KEY and a compatible runtime environment like bun. Long-running video generation tasks require asynchronous queue management and manual status checks rather than immediate synchronous returns.