Skip to content

Magic Select fill timing harness

Calls YOLO-World XL (Replicate), SAM 3.1 (Fal), and Seedream 5 (Fal) directly — not through Studio /workbench/magicSelect/* or AssetGen jobs — then runs the same local fill-prep / tone-match / composite helpers as production.

cd studio-backend   # this repo
npx ts-node scripts/magic-edit/run-seedream-fill.ts   # Seedream fill TTR

Requires REPLICATE_API_TOKEN and FAL_KEY in .env / .env.local.

Replay target: Ferry Burns Below (c70f4529-cae9-4017-b792-6538ee19eb78), original upload, beach silhouette obj_714bfc4a0b68.

Outputs land under scripts/magic-edit/out/ (gitignored).

What this measures

Wall time from local prep through provider subscribe/download to a filled plate on disk (TTR). Studio additionally mirrors provider results to B2 and persists plate/cutout artifacts.