---
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: "FASHN Virtual Try-On & SeedVR2 Video Upscale fal.ai Skill"
description: "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)."
canonical: "https://framesfield.com/skills/fashn-virtual-tryon-and-seedvr2-upscale-fal-skill"
---

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

> 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).

- **Canonical URL:** https://framesfield.com/skills/fashn-virtual-tryon-and-seedvr2-upscale-fal-skill
- **Raw Payload URL:** https://framesfield.com/raw/skills/fashn-virtual-tryon-and-seedvr2-upscale-fal-skill
- **Asset Type:** SKILL.md
- **Compatible Hosts:** Claude Code, Cursor, Codex
- **Target Creative Tool:** fal.ai API / FASHN Try-On v1.6 / ByteDance SeedVR2 / FFmpeg
- **License:** MIT
- **Last Verified:** 2026-12-01

## Setup & Install

```bash
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

```

## Copyable Asset (SKILL.md)

````markdown
---
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`).
````

## Example Input

```text
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.
```

## Expected Output

```text
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.
```

## Requirements

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

## Known Limits

- 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

## Implementation Notes

## 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](/specs/fashn-tryon-1-6) (`$0.075/look`) and [ByteDance SeedVR2](/specs/seedvr2-video-upscale) (`$0.001/output-MP`).

## Related workflows & guides

- [Guide 33: AI Virtual Try-On & Fashion E-Commerce Catalogs](/guides/ai-virtual-try-on-and-fashion-ecommerce-catalog-guide)
- [Workflow 43: Flat-Lay Garment to On-Model Virtual Try-On Pipeline](/workflows/flat-lay-garment-to-on-model-virtual-try-on-pipeline)
- [Best AI Video Upscalers & 4K Restoration APIs](/best/best-ai-video-upscalers-and-4k-restoration-apis)
