genmedia
Original:🇺🇸 English
Translated
Use the genmedia CLI to search, inspect, run, and manage 1200+ fal.ai model endpoints. Trigger when the user mentions "genmedia", "fal CLI", or asks to "search models", "run a model", "fetch schema", "check pricing", "upload to fal", "queue async job", "track request", or any direct interaction with the fal.ai endpoint catalog. This is the foundational skill. Every other fal.ai-related skill in this repo executes its work through genmedia commands. Use `--json` whenever the output will be parsed by an agent.
4installs
Sourcefal-ai-community/skills
Added on
NPX Install
npx skill4agent add fal-ai-community/skills genmediaTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →genmedia CLI: fal.ai endpoint runner
genmedia--jsongenmediaFor the full command surface (every flag, every option, every example), see references/full-reference.md.
Critical rules
- Always use when an agent will read the output. Pretty mode is for humans only.
--json - Never invent endpoint IDs. Use to discover,
genmedia models "<query>"to verify.genmedia models --endpoint_id <id> - Inspect schema before running. shows the exact field names. Guessed flags fail with 422.
genmedia schema <endpoint_id> --json - Save files with , not curl. The CLI handles authentication, naming, and file format detection.
--download - Use for long-running generation. Image work usually completes inline; video/audio/3D usually need queue + status polling.
--async
Command index
| Command | Purpose |
|---|---|
| Configure API key, output mode, auto-update |
| Search the catalog (or |
| Inspect inputs/outputs (compact or |
| Execute a model |
| Poll an async job (with |
| Upload a local file or remote URL to the fal.ai CDN |
| Check cost per call |
| Search fal.ai documentation |
| Install the default skill bundle into |
| `genmedia skills <list | install |
| Check or apply CLI updates |
Quick patterns
Run a model and download the result
bash
genmedia run fal-ai/flux/dev \
--prompt "a cat on the moon" \
--download "./out/{request_id}_{index}.{ext}" \
--jsonAsync + poll
bash
SUBMIT=$(genmedia run fal-ai/veo3.1 --prompt "a dog running" --async --json)
REQ=$(echo "$SUBMIT" | jq -r '.request_id')
genmedia status fal-ai/veo3.1 "$REQ" \
--download "./out/{request_id}_{index}.{ext}" \
--jsonUpload then run
bash
URL=$(genmedia upload ./photo.jpg --json | jq -r '.url')
genmedia run fal-ai/nano-banana-pro/edit \
--image_urls "$URL" \
--prompt "make the sky stormy" \
--download "./out/{request_id}_{index}.{ext}" \
--jsonDiscover when the user names a fuzzy task
bash
genmedia models "background removal product image" --json
genmedia models --category text-to-video --limit 5 --json
genmedia docs "webhook callbacks" --jsonSetup (first-time only)
If is not installed:
genmediabash
curl https://genmedia.sh/install -fsS | bash # Linux / macOS
irm https://genmedia.sh/install.ps1 | iex # Windows PowerShell
genmedia setup --non-interactive --api-key "$FAL_KEY"For full setup details (output modes, auto-update, loading) see full-reference.md.
.env