
Genmedia
- 6 installs
- 67 repo stars
- Updated May 29, 2026
- fal-ai-community/genmedia-cli
Helps with ai & agent building tasks.
About
genmedia is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.
- genmedia
- AI & Agent Building
- AI-coding skill
Genmedia by the numbers
- 6 all-time installs (skills.sh)
- Ranked #12,756 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Jul 26, 2026 (Skillselion catalog sync)
npx skills add https://github.com/fal-ai-community/genmedia-cli --skill genmediaAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 6 |
|---|---|
| repo stars | ★ 67 |
| Last updated | May 29, 2026 |
| Repository | fal-ai-community/genmedia-cli ↗ |
What it does
Helps with ai & agent building tasks.
Files
genmedia workflow
Use this skill when the user wants to execute a fal.ai model — either by task description (e.g. "generate a video of a dog running") or by a specific endpoint_id (e.g. fal-ai/flux/dev). Load genmedia-ref alongside this skill for the full command reference.
Steps
1. Discover — If no endpoint_id is given, search for a suitable model:
genmedia models "<task>" --json2. Inspect — Get the model's input parameters:
genmedia schema <endpoint_id> --jsonRead all required fields before running.
3. Upload files (if inputs include images/video/audio):
genmedia upload <local_file_or_url> --jsonUse the returned url as the parameter value.
4. Run the model:
- Fast model (completes in seconds):
genmedia run <endpoint_id> --<param> <value> ... --json- Slow model (video generation, large jobs):
genmedia run <endpoint_id> --<param> <value> ... --async --json
genmedia status <endpoint_id> <request_id> --result --json5. Save outputs — when the user expects files on disk, add --download to run or status. The CLI writes every media URL from the result to the filesystem and returns the local paths in downloaded_files[]. Do not curl the URLs yourself; use the flag.
genmedia run fal-ai/flux/dev --prompt "a cat" --download --json # cwd, source file names
genmedia run fal-ai/flux/dev --prompt "a cat" --num_images 3 --download "./out/{index}.{ext}" --json
genmedia status <endpoint_id> <request_id> --download ./out/ --json # implies --resultUse {index}, {name}, {ext}, {request_id} placeholders in the template when the model returns multiple files (images[], image_urls[], etc.) to avoid filename collisions. A trailing / or an existing directory path saves files under that directory using their source names.
6. Return the result to the user. If --download was used, reference the paths from downloaded_files[]; otherwise present the URLs from result clearly.
Handling errors
When a command exits non-zero, it prints a JSON error object to stderr:
{
"error": "Validation error — num_images: Input should be less than or equal to 4",
"details": {
"endpoint_id": "fal-ai/flux/schnell",
"request_id": "019d...",
"status": 422,
"error_type": "ValidationError",
"validation_errors": [
{ "field": "num_images", "message": "Input should be less than or equal to 4", "type": "less_than_equal", "input": 20 }
],
"body": { "detail": [ ... raw FastAPI payload ... ] }
}
}status: 422/error_type: "ValidationError"means the inputs violated
the model schema. Read details.validation_errors — each entry names the field, a human message, the validator type, and the input that was rejected. Re-run genmedia schema <endpoint_id> --json if you need the allowed values, fix the offending args, and retry.
- Other statuses (401 auth, 403 forbidden, 404 endpoint not found, 429 rate
limited, 5xx upstream) surface the server message directly in error and do not contain validation_errors. Do not retry 4xx errors blindly — correct the request first.
- For in-flight model failures,
details.logscontains the most recent
model-side log lines.
Notes
- Always use
--jsonso output is machine-readable. - Run
genmedia pricing <endpoint_id> --jsonfirst if cost is a concern. - If unsure which model to pick, run
genmedia docs "<task>" --jsonfor
guidance from fal.ai documentation.