Fal.ai API

v0.1.0

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

1· 3.9k·22 current·22 all-time
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name/description (fal.ai media generation) matches the code and SKILL.md: the package implements HTTP calls to a queue endpoint for image/video/audio models and only needs an API key (FAL_KEY). Model mappings, endpoints, and usage examples are consistent with the stated capability.
Instruction Scope
SKILL.md instructs the agent to set FAL_KEY (or clawdbot config) and to call the included Python client. The runtime instructions do not request unrelated files, broad system access, or unexplained data collection. Behavior is limited to submitting jobs, polling status, and returning results.
Install Mechanism
There is no install spec and the code uses only the Python standard library (urllib, subprocess, etc.), so nothing arbitrary is downloaded or written to disk during install.
Credentials
The only required credential is FAL_KEY (declared as primary). As a fallback the client will call the 'clawdbot config' CLI via subprocess to read skill.fal_api.key — this is proportional to the stated setup but does mean the skill will invoke a local CLI if the env var is not set.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or system-wide settings. It runs when invoked and requires no elevated or persistent privileges.
Assessment
This package appears coherent: it only needs your FAL_KEY and uses a small Python client to call a queue endpoint (queue.fal.run). Before installing, confirm you trust the source (owner slug differs from the README image host), verify that queue.fal.run is the official fal.ai endpoint you expect, and avoid pasting a high-privilege key if you don't trust the skill. If you prefer, use the official fal.ai client (if available) or issue a scoped API key that can be revoked. Note the client will call 'clawdbot config get ...' as a fallback if FAL_KEY is not set in the environment — if you don't run clawdbot or prefer not to expose that config, ensure FAL_KEY is set in the environment instead.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

EnvFAL_KEY
Primary envFAL_KEY
latestvk9738t29wr90hxezdzh0br2rrh808hrk
3.9kdownloads
1stars
1versions
Updated 1mo ago
v0.1.0
MIT-0

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.

Comments

Loading comments...