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