model-routing — Claude Code skill: what it does, how to install
Routes genmedia tasks to default fal.ai endpoint IDs when no model is specified. It directs image, video, and lip-sync jobs to the right endpoints.
npx skills add fal-ai-community/skills --skill model-routing -a claude-codeWhat model-routing does
This skill defines endpoint routing rules across fal.ai services for creative production. When an assistant generates key art, UI mocks, or marketing clips without explicit instructions, it picks an endpoint from a tested catalog. Text-heavy banners route to openai/gpt-image-2 with high quality, while rapid concepts route to fal-ai/flux-2/klein/9b.
The workflow relies on verification steps. The agent must inspect parameters with genmedia schema <endpoint_id> --json before running tasks, and review costs via genmedia pricing <endpoint_id> --json. For motion work, it orders priorities between Seedance 2.0, Kling v3, and Grok Imagine Video based on shot complexity and speed requirements.
Draft models will ruin assets that require precise typography. The skill treats cheap checkpoints as draft-only tools, keeping them away from final deliveries.
What it helps with
- route genmedia prompts to matching fal.ai endpoints
- prevent illegible typography in text-heavy images
- separate low-cost draft previews from final renders
- pick models for lip-sync and talking head avatars
Example prompts for the agent
- Select the fal.ai endpoint for an infographic with dense packaging text
- Find the best video model for a multi-shot story draft
- Route an image edit request to replace a product background
How to install model-routing
1Skills CLI (Vercel)
npx skills add fal-ai-community/skills --skill model-routing -a claude-code2Manually: put the files in place
~/.claude/skills/model-routing/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/model-routing/
1Skills CLI (Vercel)
npx skills add fal-ai-community/skills --skill model-routing -a codex2Manually: put the files in place
.agents/skills/model-routing/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add fal-ai-community/skills --skill model-routing -a cursor2Manually: put the files in place
.cursor/skills/model-routing/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install fal-ai-community/skills model-routing2Manually: put the files in place
.github/skills/model-routing/SKILL.md1Skills CLI (Vercel)
npx skills add fal-ai-community/skills --skill model-routing -a gemini-cli2Platform CLI
gemini skills install https://github.com/fal-ai-community/skills --path skills/model-routingManually: put the files in place
.devin/skills/model-routing/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add fal-ai-community/skills --skill model-routing -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about model-routing
How to install model-routing in Claude Code?
Run npx skills add fal-ai-community/skills --skill model-routing -a claude-code. This downloads the skill and registers it for Claude Code.
What does model-routing do?
It provides preselected fal.ai endpoint IDs for images, video, edits, and UGC content. The assistant stops guessing endpoint names and follows tested production paths.
What commands should run before executing a routed endpoint?
The skill requires checking the schema with genmedia schema <endpoint_id> --json and reviewing rates with genmedia pricing <endpoint_id> --json when cost is a factor.