# model-routing

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 452 installs · ★ 256
- Author: fal-ai-community
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/fal-ai-community/skills/tree/HEAD/skills/model-routing/SKILL.md
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/skills/model-routing

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add fal-ai-community/skills --skill model-routing -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/model-routing/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/model-routing/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add fal-ai-community/skills --skill model-routing -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/model-routing/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add fal-ai-community/skills --skill model-routing -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/model-routing/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install fal-ai-community/skills model-routing
```

2. **Manually: put the files in place**
- File: `.github/skills/model-routing/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add fal-ai-community/skills --skill model-routing -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/fal-ai-community/skills --path skills/model-routing
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/model-routing/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add fal-ai-community/skills --skill model-routing -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/fal-ai-community/skills/tree/HEAD/skills/model-routing/SKILL.md

## When to use it
- 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
- 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

## Similar
- [fal-ai-media](https://affpapa.org/en/nevibecode/skills/fal-ai-media.md) — skill · 4600 installs
- [fal-kling-o3](https://affpapa.org/en/nevibecode/skills/fal-kling-o3.md) — skill · 2700 installs
- [fal-lip-sync](https://affpapa.org/en/nevibecode/skills/fal-lip-sync.md) — skill · 2800 installs
- [muapi-fashion-try-on](https://affpapa.org/en/nevibecode/skills/muapi-fashion-try-on.md) — skill · 663 installs
- [runcomfy-cli](https://affpapa.org/en/nevibecode/skills/runcomfy-cli.md) — skill · 380100 installs
- [mmx-cli](https://affpapa.org/en/nevibecode/skills/mmx-cli.md) — skill · 32000 installs

From the same set: [fal-ai-community/skills](https://affpapa.org/en/nevibecode/by/fal-ai-community/skills.md) — 14 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
