Skills fal-api
Generate images, videos, and audio via fal.ai API (FLUX, SDXL, Whisper, etc.)
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/agmmnn/fal-ai" ~/.claude/skills/clawdbot-skills-fal-api && rm -rf "$T"
manifest:
skills/agmmnn/fal-ai/SKILL.mdsource content
fal.ai API Skill
Generate images, videos, and transcripts using fal.ai's API with support for FLUX, Stable Diffusion, Whisper, and more.
Features
- Queue-based async generation (submit → poll → result)
- Support for 600+ AI models
- Image generation (FLUX, SDXL, Recraft)
- Video generation (MiniMax, WAN)
- Speech-to-text (Whisper)
- Stdlib-only dependencies (no
required)fal_client
Setup
- Get your API key from https://fal.ai/dashboard/keys
- Configure with:
export FAL_KEY="your-api-key"
Or via clawdbot config:
clawdbot config set skill.fal_api.key YOUR_API_KEY
Usage
Interactive Mode
You: Generate a cyberpunk cityscape with FLUX Klawf: Creates the image and returns the URL
Python Script
from fal_api import FalAPI api = FalAPI() # Generate and wait urls = api.generate_and_wait( prompt="A serene Japanese garden", model="flux-dev" ) print(urls)
Available Models
| Model | Endpoint | Type |
|---|---|---|
| flux-schnell | | Image (fast) |
| flux-dev | | Image |
| flux-pro | | Image (2K) |
| fast-sdxl | | Image |
| recraft-v3 | | Image |
| sd35-large | | Image |
| minimax-video | | Video |
| wan-video | | Video |
| whisper | | Audio |
For the full list, run:
python3 fal_api.py --list-models
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| prompt | str | required | Image/video description |
| model | str | "flux-dev" | Model name from table above |
| image_size | str | "landscape_16_9" | Preset: square, portrait_4_3, landscape_16_9, etc. |
| num_images | int | 1 | Number of images to generate |
| seed | int | None | Random seed for reproducibility |
Credits
Built following the krea-api skill pattern. Uses fal.ai's queue-based API for reliable async generation.