branded-graphics
Create finished static branded images with original logos, exact copy and verified dimensions. Use for banners, covers, ads and…
Run fal models from a terminal with the genmedia CLI. Use for model discovery, schemas, pricing, uploads, execution and request recovery. MCP hosts use fal-media instead.
Claude Code
$ npx -y skills add fal-ai-community/skills --skill genmedia --agent claude-code
Codex
$ npx skills add fal-ai-community/skills --skill genmedia -a codex -y
Cursor
$ npx skills add fal-ai-community/skills --skill genmedia -a cursor -y
Gemini CLI
$ npx skills add fal-ai-community/skills --skill genmedia -a gemini-cli -y
GitHub Copilot
$ npx skills add fal-ai-community/skills --skill genmedia -a github-copilot -y
OpenCode
$ npx skills add fal-ai-community/skills --skill genmedia -a opencode -y
Windsurf
$ npx skills add fal-ai-community/skills --skill genmedia -a windsurf -y
name: genmedia description: "Run fal models from a terminal with the genmedia CLI. Use for model discovery, schemas, pricing, uploads, execution and request recovery. MCP hosts use fal-media instead."
`genmedia` is the agent-first CLI for fal.ai. It works in a terminal for humans (pretty output) and equally well for agents (structured JSON when piped or with `--json`). All other skills in this repo call `genmedia` for execution, they do not wrap the fal.ai HTTP API directly.
For the full command surface (every flag, every option, every example), see [references/full-reference.md](references/full-reference.md).
1. **Always use `--json` when an agent will read the output.** Pretty mode is for humans only. 2. **Prefer smart routing for default-quality requests.** `genmedia run "<prompt>"` (no endpoint, no `--prompt` needed) classifies the prompt and routes to a sensible default per modality. Only do explicit endpoint discovery when the user names a model, asks for a non-default behavior (specific style, quality tier, parameter), or the smart-route default is wrong for the task. 3. **Never invent endpoint IDs.** When you do need a specific endpoint, use `genmedia models "<query>"` to discover (auto-filters by inferred modality) and `genmedia models --endpoint_id <id>` to verify. 4. **Inspect schema before running with custom params.** `genmedia schema <endpoint_id> --json` shows the exact field names. Smart routing only needs `prompt`; explicit endpoints with custom params need a schema check first or guessed flags fail with 422. 5. **Save files with `--download`, not curl.** The CLI handles authentication, naming, and file format detection. 6. **Use `--async` for long-running generation.** Image work usually completes inline; video/audio/3D usually need queue + status polling.
| Command | Purpose | |---------|---------| | `genmedia setup` | Configure API key, output mode, auto-update | | `genmedia models <query>` | Search the catalog (or `--category`, or `--endpoint_id`) | | `genmedia schema <endpoint_id>` | Inspect inputs/outputs (compact or `--format openapi`) | | `genmedia run <endpoint_id> --<param> <value>` | Execute a model | | `genmedia status <endpoint_id> <request_id>` | Poll an async job (with `--result`, `--logs`, `--cancel`, `--download`) | | `genmedia upload <path-or-url>` | Upload a local file or remote URL to the fal.ai CDN | | `genmedia pricing <endpoint_id>` | Check cost per call | | `genmedia docs <query>` | Search fal.ai documentation | | `genmedia init` | Install the default skill bundle into `.agents/skills/` or `.claude/skills/` | | `genmedia skills <list|install|update|remove>` | Manage installed agent skills | | `genmedia version` / `genmedia update` | Check or apply CLI updates |
The CLI classifies the prompt by modality (image / video / music / tts / 3d) and picks a sensible default endpoint. The output includes a `routed` block so you can verify which endpoint actually ran.
genmedia run "a cat on the moon" --json genmedia run "a 5-second clip of a robot dancing" --json genmedia run "narrate this paragraph in a calm voice" --json
Override anytime with an explicit endpoint id (positional that contains `/`):
genmedia run fal-ai/flux/dev --prompt "a cat on the moon" --json
`genmedia models "<query>"` auto-applies `--category` from the same classifier the smart router uses, so the result list is focused on the right modality. Pass `--no-classify` to disable, or `--category <cat>` to override.
genmedia models "background removal product image" --json genmedia models --category text-to-video --limit 5 --json genmedia models "video models with character consistency" --no-classify --json genmedia docs "webhook callbacks" --json
genmedia run fal-ai/flux/dev \
--prompt "a cat on the moon" \
--download "./out/{request_id}_{index}.{ext}" \
--jsonSUBMIT=$(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}" \
--jsonSmart routing also works for async — the response includes `routed` and `endpoint_id` so you know which endpoint to poll on `status`:
SUBMIT=$(genmedia run "a 30-second video of waves" --async --json) REQ=$(echo "$SUBMIT" | jq -r '.request_id') EP=$(echo "$SUBMIT" | jq -r '.endpoint_id') genmedia status "$EP" "$REQ" --download "./out/" --json
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}" \
--jsonIf `genmedia` is not installed:
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, `.env` loading) see [full-reference.md](references/full-reference.md).
Agent skills for fal.ai. The default execution path is the genmedia CLI: discover an endpoint, inspect its schema, run it, poll status when needed, and download outputs.
Create finished static branded images with original logos, exact copy and verified dimensions. Use for banners, covers, ads and…
Build consistent character designs and character media with genmedia. Use this for original characters, reference sheets,…
Create one character turnaround or expression reference sheet in a single image. Use for front, side and back design views; scene…
Design cinematic image and video prompts for genmedia. Use this for shot language, camera movement, lighting, lens choices, color…
Direct individual commercial product images or clips on fal. Use for product placement, reveal shots and product fidelity; use…
Create a consistent fal e-commerce product photo set from real SKU references. Deliver verified hero, detail and lifestyle images…
Choose GPT-Image2 / gpt-image-2 visual styles and industrial prompt templates from the awesome-gpt-image-2 style library. Use…
Remove visible Gemini image watermarks from local image files by calling the project's CLI. Use when the user wants an agent to…
Create Excalidraw diagram JSON files that make visual arguments. Use when the user wants to visualize workflows, architectures,…
Generate original one-ink or controlled two-ink editorial images from any theme, sentence, article idea, object, or reference…