Skip to content
FramesField
SKILL.md Beginner Setup (1 Command) SKILL.md
Verified Dec 1, 2026

FASHN Virtual Try-On & SeedVR2 Video Upscale fal.ai Skill

How to install this SKILL.md

Drop into .claude/skills/, .cursor/skills/, or .agents/skills/ to batch e-commerce virtual try-on catalogs and SeedVR2 video restoration passes cleanly from your coding agent.

Executable SKILL.md playbook teaching Claude Code, Cursor, and Codex how to automate two high-precision fal.ai visual production pipelines under one FAL_KEY: FASHN Virtual Try-On v1.6 ($0.075/look, segmentation_free + Topaz 3× zoom finish) and ByteDance SeedVR2 temporal video restoration ($0.001 per output megapixel, pre-flight MP cost math, and CFR 24fps conform).

Compatible agent hosts
Claude Code Cursor Codex
Target tool: fal.ai API / FASHN Try-On v1.6 / ByteDance SeedVR2 / FFmpeg · License: MIT
  1. STEP 01
    Install pure SKILL.md from /raw/skills/

    Run the one-line curl installer for Claude Code, Cursor, or Codex below.

  2. STEP 02
    Verify FAL_KEY, curl, jq, and ffprobe

    Agent inspects input video dimensions, frame count, and SKU list to print exact metered USD cost before sending any API request.

  3. STEP 03
    Run segmentation-free try-on or SeedVR2 restoration

    Automates FASHN v1.6 ($0.075) + Topaz 3× PDP zoom ($0.08) or SeedVR2 ($0.001/MP) while warning if Topaz 4K ($0.08/sec) is cheaper.

1. Install for your tool

Pick the app you use below for the exact verified command or config—zero manual guessing.

Direct raw file (SKILL.md) ↓
Claude Code bash
Installs pure SKILL.md bytes directly into Claude Code:
mkdir -p .claude/skills/fashn-tryon-seedvr2-fal
curl -fsSL https://framesfield.com/raw/skills/fashn-virtual-tryon-and-seedvr2-upscale-fal-skill \
  -o .claude/skills/fashn-tryon-seedvr2-fal/SKILL.md

2. Inspect or download the full SKILL.md file

This is the exact raw file served at /raw/skills/fashn-virtual-tryon-and-seedvr2-upscale-fal-skill.

FASHN Virtual Try-On & SeedVR2 Video Upscale fal.ai Skill SKILL.md
---
name: fashn-tryon-seedvr2-fal
description: Automate fal.ai serverless calls for FASHN Virtual Try-On v1.6 (fal-ai/fashn/tryon/v1.6 at $0.075/image with segmentation_free, explicit category/garment_photo_type, and optional Topaz 3x 24MP PDP finish) and ByteDance SeedVR2 temporal video restoration (fal-ai/seedvr/upscale/video at $0.001 per output megapixel with exact pre-flight MP billing math and CFR 24fps checks). Use when batching apparel virtual try-on catalogs or restoring soft 480p/720p AI video clips.
---

# FASHN Virtual Try-On v1.6 & ByteDance SeedVR2 fal.ai Skill

## 1. Mandatory Pre-Flight Billing Estimate (Always Print Before Submitting)
- **FASHN Try-On v1.6 (`fal-ai/fashn/tryon/v1.6`):** Flat **`$0.075`** per generated `864x1296` image across `performance`, `balanced`, and `quality` modes. Optional Topaz 3x PDP zoom (`2592x3888` = `10.07 MP`) adds **`$0.08`** (`<=24MP` tier) -> `$0.155` per zoom-ready look.
- **ByteDance SeedVR2 (`fal-ai/seedvr/upscale/video`):** Metered at **`$0.001` per output megapixel** (`output_width * output_height * total_frames / 1_000_000 * 0.001`):
  - 5s `1080p` @ `24fps` (`120 frames * 2.0736 MP = 248.8 MP`) = **`~$0.25`**
  - 5s `4K` @ `24fps` (`120 frames * 8.2944 MP = 995.3 MP`) = **`~$1.00`**
  - **Routing Guardrail:** If the user asks for `4K` or `60fps` output, warn explicitly that Topaz Video Upscale (`fal-ai/topaz/upscale/video`, `$0.08/sec` = `$0.40/5s` at 4K) is 2.5x–6x cheaper than hosted SeedVR2 at 4K/60fps. Reserve SeedVR2 for soft `480p/720p -> 1080p 24fps` generative texture restoration or self-hosted Apache-2.0 local runs.

## 2. FASHN Virtual Try-On v1.6 Production Pattern
Always default to `mode: "quality"`, `segmentation_free: true`, `output_format: "png"`, and explicit `category` (`tops` | `bottoms` | `one-pieces`) + `garment_photo_type` (`flat-lay` | `model`):
```bash
curl -sS -X POST "https://fal.run/fal-ai/fashn/tryon/v1.6" \
  -H "Authorization: Key $FAL_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model_image": "'"$MODEL_URL"'",
    "garment_image": "'"$GARMENT_URL"'",
    "category": "tops",
    "garment_photo_type": "flat-lay",
    "mode": "quality",
    "segmentation_free": true,
    "output_format": "png",
    "seed": 4201
  }'
```
Pause for logo/print visual inspection on the `864x1296` PNG before running `fal-ai/topaz/upscale/image` (`upscale_factor: 3`, `model: "High Fidelity V2"` or `"Text Refine"`, `face_enhancement_strength: 0.45`).

## 3. SeedVR2 Video Restoration Pattern (CFR Gate + MP Cost Calculator)
First verify the source video is constant frame rate (CFR) and calculate exact megapixel spend locally:
```bash
ffprobe -v error -select_streams v:0 \
  -show_entries stream=width,height,r_frame_rate,avg_frame_rate,nb_frames,duration \
  -of default=noprint_wrappers=1 input.mp4
```
If `r_frame_rate != avg_frame_rate`, conform to CFR 24fps before uploading. Then submit asynchronously via fal queue:
```bash
curl -sS -X POST "https://queue.fal.run/fal-ai/seedvr/upscale/video" \
  -H "Authorization: Key $FAL_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video_url": "'"$VIDEO_URL"'",
    "upscale_mode": "target",
    "target_resolution": "1080p",
    "noise_scale": 0.15,
    "output_format": "X264 (.mp4)",
    "output_quality": "high",
    "seed": 42
  }'
```
Keep `noise_scale` low (`0.05–0.15`) whenever text or logos appear in frame; raise to `0.20–0.30` only for organic foliage, fabric, or natural portraits. Remux original 48 kHz WAV audio afterward via FFmpeg (`-c:v copy -c:a aac -b:a 192k -movflags +faststart`).

3. Test it right away (sample prompt & result)

Sample prompt / input
Run FASHN v1.6 on SKU-208 (oversized hoodie flat-lay) using our 2:3 studio plate, then estimate SeedVR2 cost to restore a 5-second 480p 24fps Wan draft clip to 1080p vs. 4K.
What happens when it runs
Pre-flight estimate:
- FASHN v1.6 (quality, segmentation_free=true): $0.075 (+$0.08 optional Topaz 3x zoom to 2592x3888)
- SeedVR2 5s 1080p 24fps (120 frames x 2.07 MP = 248.8 MP): ~$0.25
- SeedVR2 5s 4K 24fps (120 frames x 8.29 MP = 995.3 MP): ~$1.00 (Tip: Topaz Video 4K is $0.40/5s -> use SeedVR2 for 1080p texture rescue, Topaz for 4K).
Submitted FASHN v1.6 -> saved sku208_864x1296.png for chest logo QA before upscaling.

What you need & known limits

Requirements

  • FAL_KEY environment variable from fal.ai
  • Local curl, jq, ffmpeg, and ffprobe on PATH

Watch out for

  • Never run SeedVR2 blindly on 60fps 4K timelines—megapixel billing scales linearly with frame count (~$2.49 per 5s at 4K 60fps)
  • Always inspect FASHN v1.6 chest logos and hems at 864×1296 before spending $0.08/image on Topaz 3× enlargement

Two precision fal.ai visual pipelines, zero billing surprises

Both e-commerce virtual try-on and diffusion video restoration fail silently when agents omit key parameters—leaving segmentation_free: false clips hoodies, while submitting a 4K 60fps clip to a per-megapixel video upscaler triggers unexpected invoices. This SKILL.md encodes exact pre-flight cost formulas, CFR frame-rate verification, and quality defaults for FASHN Virtual Try-On v1.6 ($0.075/look) and ByteDance SeedVR2 ($0.001/output-MP).

Frequently Asked Questions

Why does this skill compare SeedVR2 against Topaz Video Upscale before submitting?
Because billing models diverge sharply by resolution: SeedVR2 ($0.001/MP) is super economical for rescuing soft 480p/720p drafts to 1080p 24fps (~$0.25/5s) with generative texture synthesis, whereas Topaz Video ($0.08/sec) is 2.5×–6× cheaper at 4K or 60fps and safer for small product logos.
Why is segmentation_free enabled by default in the FASHN v1.6 payload?
Disabling segmentation_free traps bulky jackets, hoodies, and flowing dresses inside the model's original fitted shirt mask, causing clipped sleeves and stray old hems. Enabling it fixes silhouette drape across retail apparel categories.
Use this page in AI tools or notes
raw .md