Skip to content
FramesField
Beginner Light CLI / Copy-Paste Script
Verified Dec 1, 2026

Flat-Lay Garment to On-Model Virtual Try-On & Zoom PDP Pipeline

What you’ll make

A 2592×3888 zoom-ready on-model Shopify PDP photo (WebP + PNG) per SKU angle—plus an optional 5-second 1080p runway loop for hero products.

Convert clean steamed flat-lay garment photos into on-model Shopify product pages using FASHN Virtual Try-On v1.6 ($0.075/look) with segmentation_free: true, enlarge approved keepers 3× to 2592×3888 via Topaz Image Upscale API ($0.08), and optionally animate hero SKUs into 5-second runway pivots in Runway Gen-4 Turbo ($0.25).

Before you start
  • Clean overhead steamed flat-lay garment photos (>=1500 px) on a neutral white or light gray surface
  • Reusable 2:3 studio brand model plates (open arms, unobstructed chest, simple fitted neutral basics)
  • A fal.ai API key (FAL_KEY) for FASHN Try-On v1.6 ($0.075/look) and Topaz Image API ($0.08 <=24MP)
  • curl, jq, and optional Runway Gen-4 access for hero SKU runway clips ($0.25/5s)
Estimated cost
$0.155 per zoom-ready PDP look ($0.405 with optional 5s hero runway clip)
Time needed
20 min
Jump to section (2)
  1. 01Why this 2-stage API chain beats studio shoots and general image prompts
  2. 02Step-by-step catalog production notes
Step-by-step overview
SIGNAL PATH READY Click any node or press “Step Through” to trace data flow from input plate to final deliverable.
01–04
Steamed Flat-Lay → FASHN v1.6 ($0.075) → Topaz 3× 10MP ($0.08) → Optional 5s Runway ($0.25)
Official Demo · Privacy-Enhanced Player (Zero Cookies Until Click)

Steamed Flat-Lay → FASHN v1.6 ($0.075) → Topaz 3× 10MP ($0.08) → Optional 5s Runway ($0.25)

Luma (Official Demo) · youtube-nocookie.com
Frame 01 PREP · $0.00
Flat-Lay & 2:3 Plate
Steamed Overhead + Open Stance

Keep chest graphics flat and unwrinkled; avoid model arms or hair crossing the torso.

Frame 02 TRY-ON · $0.075
FASHN v1.6 Quality Lock
864×1296 PNG · segmentation_free

Explicit category + garment_photo_type preserves boxy outerwear silhouettes and chest prints.

Frame 03 ZOOM · $0.08
Topaz 3× PDP Master
2592×3888 (10MP) · High Fidelity V2

Sharpens fabric weave and label edges for 2× Shopify desktop hover zoom without plastic skin.

Separating garment transfer (FASHN v1.6) from zoom enlargement (Topaz Image API) preserves chest logos, plaids, and button counts across 50-SKU retail catalogs.

Source: Luma (Official Demo) Model: FASHN TRY-ON V1.6 + TOPAZ IMAGE 24MP + RUNWAY GEN-4 TURBO Verified Dec 1, 2026
Original source ↗

Why this 2-stage API chain beats studio shoots and general image prompts

Apparel brands testing AI photography usually hit one of two walls: general-purpose image models rewrite chest prints and button counts, while raw try-on outputs at 864×1296 look too soft inside 2× Shopify desktop hover-zoom tiles. Pairing FASHN Virtual Try-On v1.6 ($0.075/look) with Topaz Image Upscale API ($0.08 up to 24MP) solves both defects for $0.155 per zoom-ready PDP image—or $23.25 for an entire 50-SKU, 3-angle seasonal catalog.

Step-by-step catalog production notes

1. Standardize your model plate library before touching the API

Generate or photograph 3 to 6 locked studio plates in 2:3 vertical aspect ratio (1024×1536 or higher): front stance, three-quarter turn, and rear stance (for SKUs with back prints). Keep three capture rules strict:

  • Open upper body: Arms hang relaxed slightly away from the waist—crossed arms or handbags across the stomach break chest transfer.
  • Unobstructed neckline: Hair tucked behind the shoulders prevents collar bleeding and neck shadow artifacts.
  • Simple fitted base wardrobe: Plain light-gray fitted tee and neutral trousers let segmentation_free: true drape oversized jackets, pleated skirts, and long dresses cleanly with zero ghost hems.

If you shoot real contracted fit models, obtain written permission explicitly covering AI virtual try-on reuse. If you generate synthetic brand models in FLUX 3 ($0.048), save the winning plates into a versioned S3/R2 bucket and reuse those exact URLs across every future seasonal drop so your Shopify collection grid stays completely uniform.

2. Inspect chest text at 864×1296 BEFORE running Topaz

In automated CSV batches, separate tryon from upscale whenever graphic tees or detailed embroidery are involved. Topaz Image Upscale sharpens existing geometry faithfully—it will not fix a fused letter produced during try-on. Checking the $0.075 PNG first ensures you only spend $0.08 upscaling approved keepers.

If bulky coats clip or chest marks soften, read Fix Virtual Try-On Clipping & Blurred Logos.

3. Optional Stage 4: Hero SKU 5-second runway loops ($0.25)

Upload your top 10–20 revenue-driving 2592×3888 masters into Runway Gen-4 Turbo ($0.25/5s) with a restrained motion brief:

“Locked-off studio tripod, soft neutral gray cyclorama. The model shifts weight slightly onto one hip and pivots shoulders 15 degrees so the heavy fabric drapes naturally. Crisp natural garment texture, zero camera pan, zero zoom, zero logo distortion.”

Always keep your physical flat-lay and fabric close-up inside the Shopify PDP gallery alongside the on-model renders so shoppers see both styling context and unretouched material proof. For full unit economics and retail compliance standards, see Guide 33: AI Virtual Try-On & Fashion E-Commerce Catalogs.

Copy-paste template

FASHN v1.6 Try-On + Topaz 3× Zoom PDP Batch Script run-tryon-sku.sh
Runs FASHN Virtual Try-On v1.6 ($0.075) in quality + segmentation_free mode and enlarges approved PNGs 3× to 2592×3888 ($0.08 Topaz <=24MP tier).
#!/usr/bin/env bash
set -euo pipefail
# Usage:
#   FAL_KEY="your_key" ./run-tryon-sku.sh SKU-104 tops \
#     "https://cdn.example.com/model_front_2x3.png" \
#     "https://cdn.example.com/sku104_flatlay.png"

SKU="${1:?Pass SKU id}"
CATEGORY="${2:?Pass category: tops | bottoms | one-pieces}"
MODEL_URL="${3:?Pass 2:3 model plate URL}"
GARMENT_URL="${4:?Pass flat-lay garment URL}"
SEED="${5:-4201}"

echo "[1/3] Running FASHN Virtual Try-On v1.6 (\$0.075) for ${SKU}..."
TRYON_URL=$(curl -sS -X POST "https://fal.run/fal-ai/fashn/tryon/v1.6" \
  -H "Authorization: Key ${FAL_KEY:?Set FAL_KEY}" \
  -H "Content-Type: application/json" \
  -d "{
    \"model_image\": \"${MODEL_URL}\",
    \"garment_image\": \"${GARMENT_URL}\",
    \"category\": \"${CATEGORY}\",
    \"garment_photo_type\": \"flat-lay\",
    \"mode\": \"quality\",
    \"segmentation_free\": true,
    \"output_format\": \"png\",
    \"seed\": ${SEED}
  }" | jq -r '.images[0].url // empty')

if [ -z "${TRYON_URL}" ]; then
  echo "FASHN try-on failed for ${SKU}" >&2; exit 1
fi
curl -fsSL "${TRYON_URL}" -o "${SKU}_fashn_864x1296.png"
echo "Saved preview: ${SKU}_fashn_864x1296.png (inspect chest logos before upscaling)"

echo "[2/3] Upscaling ${SKU} 3x via Topaz Image API (2592x3888, \$0.08)..."
TOPAZ_URL=$(curl -sS -X POST "https://fal.run/fal-ai/topaz/upscale/image" \
  -H "Authorization: Key ${FAL_KEY}" \
  -H "Content-Type: application/json" \
  -d "{
    \"image_url\": \"${TRYON_URL}\",
    \"model\": \"High Fidelity V2\",
    \"upscale_factor\": 3,
    \"face_enhancement\": true,
    \"face_enhancement_strength\": 0.45,
    \"output_format\": \"png\"
  }" | jq -r '.image.url // empty')

if [ -z "${TOPAZ_URL}" ]; then
  echo "Topaz upscale failed for ${SKU}" >&2; exit 1
fi
curl -fsSL "${TOPAZ_URL}" -o "${SKU}_pdp_master_2592x3888.png"
echo "[3/3] Done! Master saved: ${SKU}_pdp_master_2592x3888.png"

Helpful prompts & skills for this workflow

Frequently Asked Questions

Why not use FLUX 3 or Seedream 5.5 directly for flat-lay try-on?
FLUX 3 and Seedream 5.5 are ideal for building your reusable base model plates or editorial lifestyle backdrops, but general editors frequently misspell small chest logos, drop buttons, or rescale plaid spacing. FASHN v1.6 is purpose-trained to transfer exact physical garments faithfully.
Does mode: 'quality' cost extra on fal.ai FASHN v1.6?
No. fal.ai bills a flat $0.075 per output image regardless of whether you select performance, balanced, or quality mode—always choose quality for final catalog product pages.
When should I switch Topaz Image Upscale from High Fidelity V2 to Text Refine?
Use High Fidelity V2 as the default for denim, knits, silk, and minimal basics. Switch to Text Refine whenever bold graphic tees, collegiate lettering, or woven chest crests dominate the garment.
How do I animate the finished try-on image without distorting the brand logo?
Feed the upscaled 2592×3888 PNG into Runway Gen-4 Turbo ($0.25/5s) and prompt a locked-off studio tripod with a gentle 15-degree torso pivot and subtle fabric sway—never ask for a full 360-degree turn, which forces the model to hallucinate the unseen back.
Use this page in AI tools or notes
raw .md