---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://framesfield.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
title: "fal.ai Serverless Media API & CLI Agent Skills"
description: "Production SKILL.md rulebooks wired to one single `FAL_KEY` across image cutouts (Bria RMBG 2.0, BiRefNet v2), directional relighting (IC-Light V2), virtual try-on (FASHN v1.6), video restoration (Topaz Video, SeedVR2), video editing (Wan VACE 14B, Kling O1, Sync Labs), custom LoRA training (FLUX LoRA Fast Trainer), and audio (ElevenLabs Music, Scribe v2, Audio Isolation, MiniMax Music 2.0)."
canonical: "https://framesfield.com/skills/for/fal-ai"
---

# fal.ai Serverless Media API & CLI Agent Skills

> Production SKILL.md rulebooks wired to one single `FAL_KEY` across image cutouts (Bria RMBG 2.0, BiRefNet v2), directional relighting (IC-Light V2), virtual try-on (FASHN v1.6), video restoration (Topaz Video, SeedVR2), video editing (Wan VACE 14B, Kling O1, Sync Labs), custom LoRA training (FLUX LoRA Fast Trainer), and audio (ElevenLabs Music, Scribe v2, Audio Isolation, MiniMax Music 2.0).

- **Canonical URL:** https://framesfield.com/skills/for/fal-ai
- **Target Install Path:** `.claude/skills/<name>/SKILL.md  |  .cursor/skills/<name>/SKILL.md  |  .agents/skills/<name>/SKILL.md`
- **Verified Modules:** 10
- **Last Verified:** 2026-12-01

## Host Architecture

Running multi-modal AI pipelines across separate vendor portals forces teams to juggle six monthly subscriptions, mismatched credit ledgers, and incompatible webhook formats. Standardizing pay-as-you-go endpoints behind a single `FAL_KEY` on `fal.run` (synchronous fast stills/cutouts/audio) and `queue.fal.run` (asynchronous long-running video, LoRA training, and 4K upscaling) turns Claude Code, Cursor, and OpenAI Codex into disciplined zero-subscription studio runners. Every FramesField fal.ai `SKILL.md` bakes in verified live unit pricing, mandatory pre-flight cost calculation before dispatching requests, CFR 24fps/48kHz FFmpeg conform checks, and smart cross-model routing (for example steering 4K/60fps video restoration to Topaz Video at `$0.08/sec` while routing soft 480p→1080p rescues to ByteDance SeedVR2 at `$0.001/MP`).

## Quickstart (install-fal-ai-studio-skills.sh)

```bash
# 1. Export your single pay-as-you-go fal.ai developer key
export FAL_KEY="your_fal_key_here"

# 2. Install verified fal.ai SKILL.md playbooks from /raw/skills/ into shared .agents/skills/
mkdir -p .agents/skills/bria-birefnet-iclight-fal   .agents/skills/fashn-tryon-seedvr2-fal   .agents/skills/elevenlabs-scribe-captions   .agents/skills/elevenlabs-isolation-acx-master   .agents/skills/flux-lora-wan-vace-fal

curl -fsSL https://framesfield.com/raw/skills/bria-rmbg-birefnet-and-iclight-relight-fal-skill   -o .agents/skills/bria-birefnet-iclight-fal/SKILL.md
curl -fsSL https://framesfield.com/raw/skills/fashn-virtual-tryon-and-seedvr2-upscale-fal-skill   -o .agents/skills/fashn-tryon-seedvr2-fal/SKILL.md
curl -fsSL https://framesfield.com/raw/skills/elevenlabs-scribe-stt-to-srt-and-ass-captions-skill   -o .agents/skills/elevenlabs-scribe-captions/SKILL.md
curl -fsSL https://framesfield.com/raw/skills/elevenlabs-audio-isolation-and-acx-master-skill   -o .agents/skills/elevenlabs-isolation-acx-master/SKILL.md
curl -fsSL https://framesfield.com/raw/skills/flux-lora-training-and-wan-vace-fal-skill   -o .agents/skills/flux-lora-wan-vace-fal/SKILL.md

# 3. Verify valid YAML frontmatter on line 1
head -n 3 .agents/skills/bria-birefnet-iclight-fal/SKILL.md
```

## All 10 Verified fal.ai Media APIs Modules

| # | Name | Type | Target Tool | Docs URL | Raw Payload URL |
| --- | --- | --- | --- | --- | --- |
| 39 | Seedance 2.5 Video and Seedream 5.5 API Batch Skill | SKILL.md | Seedream 5.5 / Seedance 2.5 / fal.ai | https://framesfield.com/skills/seedance-seedream-fal-batch-skill | https://framesfield.com/raw/skills/seedance-seedream-fal-batch-skill |
| 43 | Video Pacing, Script and Shot-List Subagent | Subagent | Gemini Omni Flash / Runway Gen-4 / Seedance 2.5 / PixVerse V6 | https://framesfield.com/skills/video-edit-pacing-and-script-agent | https://framesfield.com/raw/skills/video-edit-pacing-and-script-agent |
| 58 | Topaz 4K Upscale & Sync Lipsync 2.0 fal.ai Batch Skill | SKILL.md | fal.ai Queue API / Topaz Video API / Sync Lipsync 2.0 / FFmpeg | https://framesfield.com/skills/topaz-upscale-and-sync-lipsync-fal-skill | https://framesfield.com/raw/skills/topaz-upscale-and-sync-lipsync-fal-skill |
| 62 | ElevenLabs Music & Topaz Print Upscale fal.ai Skill | SKILL.md | fal.ai API / ElevenLabs Music / Topaz Image Upscale / FFmpeg | https://framesfield.com/skills/elevenlabs-music-and-topaz-print-upscale-fal-skill | https://framesfield.com/raw/skills/elevenlabs-music-and-topaz-print-upscale-fal-skill |
| 66 | FASHN Virtual Try-On & SeedVR2 Video Upscale fal.ai Skill | SKILL.md | fal.ai API / FASHN Try-On v1.6 / ByteDance SeedVR2 / FFmpeg | https://framesfield.com/skills/fashn-virtual-tryon-and-seedvr2-upscale-fal-skill | https://framesfield.com/raw/skills/fashn-virtual-tryon-and-seedvr2-upscale-fal-skill |
| 67 | ElevenLabs Scribe v2 STT to Synced SRT & 9:16 ASS Captions Skill | SKILL.md | fal.ai API / ElevenLabs Scribe v2 / Python / FFmpeg | https://framesfield.com/skills/elevenlabs-scribe-stt-to-srt-and-ass-captions-skill | https://framesfield.com/raw/skills/elevenlabs-scribe-stt-to-srt-and-ass-captions-skill |
| 70 | Bria RMBG 2.0, BiRefNet v2 & IC-Light V2 fal.ai Skill | SKILL.md | fal.ai API / Bria RMBG 2.0 / BiRefNet v2 / IC-Light V2 | https://framesfield.com/skills/bria-rmbg-birefnet-and-iclight-relight-fal-skill | https://framesfield.com/raw/skills/bria-rmbg-birefnet-and-iclight-relight-fal-skill |
| 71 | ElevenLabs Audio Isolation & ACX / Podcast RSS Master Skill | SKILL.md | fal.ai API / ElevenLabs Audio Isolation / FFmpeg / ffprobe | https://framesfield.com/skills/elevenlabs-audio-isolation-and-acx-master-skill | https://framesfield.com/raw/skills/elevenlabs-audio-isolation-and-acx-master-skill |
| 74 | FLUX LoRA Training & Wan VACE 14B fal.ai Skill | SKILL.md | fal.ai Queue API / FLUX LoRA / Wan VACE 14B / FFmpeg | https://framesfield.com/skills/flux-lora-training-and-wan-vace-fal-skill | https://framesfield.com/raw/skills/flux-lora-training-and-wan-vace-fal-skill |
| 75 | Meta SAM 2 Video Masking & Kling O1 V2V fal.ai Skill | SKILL.md | fal.ai Queue API / Meta SAM 2 / Kling O1 V2V Edit / FFmpeg | https://framesfield.com/skills/sam2-video-masking-and-kling-o1-v2v-fal-skill | https://framesfield.com/raw/skills/sam2-video-masking-and-kling-o1-v2v-fal-skill |

## Recommended Starter Bundles

1. **E-Commerce Catalog & Fashion Studio Pack ($0.16–$0.30/SKU):** `Bria RMBG + BiRefNet + IC-Light V2 (Skill 70) + FASHN Try-On & SeedVR2 (Skill 66) + Topaz 24MP Print Upscale (Skill 62)` — Run 100%-licensed cutouts, directional product relighting, flat-lay virtual try-on, and 24MP Shopify zoom enlargement under one `FAL_KEY`.
2. **Broadcast Audio, Captions & Podcast Automation Pack:** `Audio Isolation & ACX Master (Skill 71) + Scribe v2 SRT/ASS Captions (Skill 67) + ElevenLabs Music & Ducking (Skill 62)` — Rescue noisy guest audio (`$0.10/min`), transcribe speaker-labeled chapters (`$0.008/min`), score 58s vocal-free underscores (`$0.60`), and conform `-16 LUFS` RSS or `-20 dB RMS` ACX masters.
3. **Custom Brand LoRA + Video Object Removal VFX Pack:** `FLUX LoRA Fast Training & Wan VACE 14B (Skill 74) + SAM 2 Video Masking & Kling O1 (Skill 75) + Topaz Video 4K (Skill 58)` — Train custom product/character LoRAs for `$2.00`, mask moving objects cleanly via SAM 2, remove/swap footage in Wan VACE 14B (`$0.08/s`) or Kling O1 (`$0.168/s`), and finish in 4K.

## Best Practices

1. **Use fal.run for sub-15s stills/audio and queue.fal.run for video & training:** Cutouts (`bria/background/remove`), try-on (`fashn/tryon/v1.6`), and `iclight-v2` complete cleanly over synchronous `https://fal.run/...`. Long-running video restoration (`seedvr/upscale/video`, `topaz/upscale/video`), V2V edits (`wan-vace-14b`, `kling-video/o1`), and `flux-lora-fast-training` must use asynchronous `https://queue.fal.run/...` with status polling so HTTP clients never time out mid-render.
2. **Print exact pre-flight USD math before calling megapixel or per-second endpoints:** Billing units differ sharply across fal.ai models: flat per-generation (`$0.018` Bria RMBG, `$0.075` FASHN v1.6, `$0.03` MiniMax Music 2.0), per-megapixel (`$0.10/MP` IC-Light V2, `$0.001/MP` SeedVR2 video), per-minute (`$0.008/min` Scribe v2, `$0.10/min` Audio Isolation, `$0.60/min` ElevenLabs Music), and per-second (`$0.08/sec` Wan VACE 14B and Topaz 4K). Printing exact spend before firing stops billing surprises cold.
3. **Download signed fal.media output URLs immediately to durable storage:** Never embed temporary fal.media response links directly into Shopify stores or production HTML. Stream every returned PNG, WAV, `.safetensors`, or MP4 immediately onto local disk or your S3/R2 bucket and verify integrity via `ffprobe` or Pillow.
4. **Keep drafts cheap at 1MP / 720p and upscale winners once via Topaz:** Iterating lighting direction in IC-Light V2 at 1MP (`$0.10`) or motion staging at 720p before running a single Topaz Image 24MP (`$0.08`) or Topaz Video 4K (`$0.40/5s`) finishing pass routinely cuts campaign API spend by 60–75%.

## Troubleshooting

- **Signed fal.media URLs return HTTP 403/404 days later inside scripts or web pages:** Temporary delivery URLs expire automatically; persist every output immediately via `curl -fsSL` onto local disk or object storage right after job completion. (https://framesfield.com/fixes/fal-and-replicate-signed-media-url-expiration-fix)
- **Agent accidentally calls legacy Scribe v1 ($0.03/min) instead of Scribe v2 ($0.008/min):** Install `elevenlabs-scribe-stt-to-srt-and-ass-captions-skill` so requests always pin `/scribe-v2` and unlock `+30%` custom brand `keyterms`. (https://framesfield.com/fixes/ai-speech-to-text-subtitles-out-of-sync-and-wrong-names-fix)
- **Hosted SeedVR2 4K 60fps video bill climbs past $2.40 per 5-second clip:** SeedVR2 bills strictly on `width × height × frames × $0.001/MP`. Route 4K or 60fps finishes to Topaz Video Upscale (`$0.08/sec` = `$0.40/5s`), reserving SeedVR2 for soft 480p→1080p 24fps diffusion rescues. (https://framesfield.com/best/best-ai-video-upscalers-and-4k-restoration-apis)
- **HTTP 429 rate-limit or long queue timeouts on batch video jobs:** Cap concurrent workers to 3–5 in-flight queue submissions, poll status endpoints with jittered exponential backoff, and record completed job IDs in a local JSONL manifest. (https://framesfield.com/fixes/video-api-429-rate-limit-and-async-polling-timeout-fix)

## FAQs

### Can one single FAL_KEY run image cutouts, virtual try-on, video editing, LoRA training, and audio?

Yes. Every model in this directory routes cleanly through fal.ai serverless endpoints billed strictly per generation, megapixel, second, or minute under one `FAL_KEY`—eliminating separate monthly SaaS subscriptions.

### When should my script call fal.run vs. queue.fal.run?

Use synchronous `https://fal.run/<endpoint>` for quick sub-15-second jobs (Bria RMBG 2.0, BiRefNet v2, IC-Light V2, FASHN v1.6, Topaz Image). Use asynchronous `https://queue.fal.run/<endpoint>` with status polling for video restoration, Wan VACE 14B / Kling O1 V2V edits, long Scribe v2 podcasts, and FLUX LoRA training.

### Do these fal.ai skills include pre-flight spend estimates so my agent never overspends?

Yes. Every FramesField fal.ai SKILL.md instructs Claude Code, Cursor, and Codex to measure input duration/dimensions locally via `ffprobe` or Pillow and print exact dollar cost before sending billable API calls.

### Can I migrate off hosted fal.ai endpoints to local GPUs later if monthly volume explodes?

Yes for every open-weight model we track: BiRefNet v2 (MIT), SeedVR2 (Apache-2.0), Wan VACE 14B (Apache-2.0), SAM 2 (Apache-2.0), Kokoro 82M (Apache-2.0), Chatterbox TTS (MIT), and FLUX LoRA `.safetensors` weights downloaded straight from fal-ai/flux-lora-fast-training all run locally at $0/call.

### Where do I check current fal.ai rates across all 70+ audited models?

Open our Q4 API Price Index at `/benchmarks`, inspect any model sheet at `/specs/<slug>`, or estimate live project totals in `/tools/video-cost-calculator` and `/tools/audio-and-dubbing-cost-calculator`.
