fal-api

Generate images, videos, and audio via fal.ai API (FLUX, SDXL, Whisper, etc.)

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "fal-api" with this command: npx skills add agmmnn/fal-ai

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 fal_client required)

Setup

  1. Get your API key from https://fal.ai/dashboard/keys
  2. 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

ModelEndpointType
flux-schnellfal-ai/flux/schnellImage (fast)
flux-devfal-ai/flux/devImage
flux-profal-ai/flux-pro/v1.1-ultraImage (2K)
fast-sdxlfal-ai/fast-sdxlImage
recraft-v3fal-ai/recraft-v3Image
sd35-largefal-ai/stable-diffusion-v35-largeImage
minimax-videofal-ai/minimax-video/image-to-videoVideo
wan-videofal-ai/wan/v2.1/1.3b/text-to-videoVideo
whisperfal-ai/whisperAudio

For the full list, run:

python3 fal_api.py --list-models

Parameters

ParameterTypeDefaultDescription
promptstrrequiredImage/video description
modelstr"flux-dev"Model name from table above
image_sizestr"landscape_16_9"Preset: square, portrait_4_3, landscape_16_9, etc.
num_imagesint1Number of images to generate
seedintNoneRandom seed for reproducibility

Credits

Built following the krea-api skill pattern. Uses fal.ai's queue-based API for reliable async generation.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Sendflare

通过 Sendflare SDK 发送带附件的电子邮件,管理联系人列表,支持 CC/BCC 和安全 API 认证。

Registry SourceRecently Updated
General

Playtomic - Book courts using padel-tui

This skill should be used when the user asks to "book a padel court", "find available padel courts", "search padel courts near me", "reserve a Playtomic cour...

Registry SourceRecently Updated
General

Fund Keeper

国内场外基金智能顾问 + 股票行情查询。实时估值、买卖建议、收益统计、定投计划、OCR 识图、股票 - 基金联动。支持离线模式、多数据源缓存。

Registry SourceRecently Updated