Search, explore, and run fal.ai generative AI models (image generation, video, audio, 3D). Use when user wants to generate images, videos, or other media with AI models.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install fal或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install fal⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/fal/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: fal version: 1.0.1 description: Search, explore, and run fal.ai generative AI models (image generation, video, audio, 3D). Use when user wants to generate images, videos, or other media with AI models. allowed-tools: Bash(curl ), Bash(jq ), Bash(mkdir *), Read, Write argument-hint: "
Run 1000+ generative AI models on fal.ai.
$0 (search | schema | run | status | result | upload)$1 (model_id, search query, or file path)$2, $3, etc. (additional parameters)$ARGUMENTSSave generated files to session folder:
mkdir -p ~/.fal/sessions/${CLAUDE_SESSION_ID}
Downloaded images/videos go to: ~/.fal/sessions/${CLAUDE_SESSION_ID}/
---
Requires FAL_KEY environment variable. If requests fail with 401, tell user:
Get an API key from https://fal.ai/dashboard/keys
Then: export FAL_KEY="your-key-here"
---
$0Search for models matching $1:
curl -s "https://api.fal.ai/v1/models?q=$1&limit=15" \
-H "Authorization: Key $FAL_KEY" | jq -r '.models[] | "• \(.endpoint_id) — \(.metadata.display_name) [\(.metadata.category)]"'
For category search, use:
curl -s "https://api.fal.ai/v1/models?category=$1&limit=15" \
-H "Authorization: Key $FAL_KEY" | jq -r '.models[] | "• \(.endpoint_id) — \(.metadata.display_name)"'
Categories: text-to-image, image-to-video, text-to-video, image-to-3d, training, speech-to-text, text-to-speech
---
Get input schema for model $1:
curl -s "https://api.fal.ai/v1/models?endpoint_id=$1&expand=openapi-3.0" \
-H "Authorization: Key $FAL_KEY" | jq '.models[0].openapi.components.schemas.Input.properties'
Show required vs optional fields to help user understand what inputs are needed.
---
Run model $1 with parameters from remaining arguments.
Step 1: Parse parameters Extract --key value pairs from $ARGUMENTS after the model_id to build JSON payload.
Example: /fal run fal-ai/flux-2 --prompt "a cat" --image_size landscape_16_9 → Model: fal-ai/flux-2 → Payload: {"prompt": "a cat", "image_size": "landscape_16_9"}
Step 2: Submit to queue
curl -s -X POST "https://queue.fal.run/$1" \
-H "Authorization: Key $FAL_KEY" \
-H "Content-Type: application/json" \
-d '<JSON_PAYLOAD>'
Step 3: Poll until complete
# Get request_id from response, then poll:
while true; do
STATUS=$(curl -s "https://queue.fal.run/$1/requests/$REQUEST_ID/status" \
-H "Authorization: Key $FAL_KEY" | jq -r '.status')
echo "Status: $STATUS"
if [ "$STATUS" = "COMPLETED" ]; then break; fi
if [ "$STATUS" = "FAILED" ]; then echo "Job failed"; break; fi
sleep 3
done
Step 4: Get result and save
# Fetch result
RESULT=$(curl -s "https://queue.fal.run/$1/requests/$REQUEST_ID" \
-H "Authorization: Key $FAL_KEY")
# Create session output folder
mkdir -p ~/.fal/sessions/${CLAUDE_SESSION_ID}
# Download images/videos
# For images: jq -r '.images[0].url' and curl to download
# Save as: ~/.fal/sessions/${CLAUDE_SESSION_ID}/<timestamp>_<model>.png
---
Check status of request $2 for model $1:
curl -s "https://queue.fal.run/$1/requests/$2/status?logs=1" \
-H "Authorization: Key $FAL_KEY" | jq '{status: .status, queue_position: .queue_position, logs: .logs}'
---
Get result of completed request $2 for model $1:
curl -s "https://queue.fal.run/$1/requests/$2" \
-H "Authorization: Key $FAL_KEY" | jq '.'
---
Upload file $1 to fal CDN:
curl -s -X POST "https://fal.run/fal-ai/storage/upload" \
-H "Authorization: Key $FAL_KEY" \
-F "file=@$1"
Returns URL to use in model requests.
---
Popular models:
fal-ai/flux-2 — Fast text-to-imagefal-ai/flux-2-pro — High quality text-to-imagefal-ai/kling-video/v2/image-to-video — Image to videofal-ai/minimax/video-01/image-to-video — Image to videofal-ai/whisper — Speech to textCommon parameters for text-to-image:
--prompt "description" — What to generate--image_size landscape_16_9 — Aspect ratio (square, portrait_4_3, landscape_16_9)--num_images 1 — Number of imagesExample invocations:
/fal search video — Find video models/fal schema fal-ai/flux-2 — See input options/fal run fal-ai/flux-2 --prompt "a sunset over mountains"/fal status fal-ai/flux-2 abc-123/fal upload ./photo.png安装 fal 后,可以对 AI 说这些话来触发它
Help me get started with fal
Explains what fal does, walks through the setup, and runs a quick demo based on your current project
Use fal to search, explore, and run fal
Invokes fal with the right parameters and returns the result directly in the conversation
What can I do with fal in my design & creative workflow?
Lists the top use cases for fal, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/fal/ 目录(个人级,所有项目可用),或 .claude/skills/fal/(项目级)。重启 AI 客户端后,用 /fal 主动调用,或让 AI 根据上下文自动发现并使用。
fal 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
fal 可免费安装使用。请查阅仓库了解许可证信息。
Search, explore, and run fal.ai generative AI models (image generation, video, audio, 3D). Use when user wants to generate images, videos, or other media with AI models.
fal 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using fal
Identifies repetitive steps in your workflow and sets up fal to handle them automatically