👗 Fashion & Textile Design · virtual fitting

DrapeState · x402

A pay-per-fit API for virtual drape simulation. Instead of minting static files, users pay 0.01 USDC to calculate 'Micro-Drape' physics for any 3D garment against real-body parametric data. Brands integrate the endpoint to offer high-fidelity virtual try-ons where the cost is metered by the trial, not the purchase. Each successful HTS transfer signature generates a high-res render and a cryptographic 'Fit-Proof' receipt.

Hedera testnet + x402 paywall· x402 native
Section · Onchain

The primitive.

full primer →

Access to the virtual fitting engine is metered with x402: 0.01 HBAR or 0.01 HTS USDC per call, paid from the embedded wallet, so fashion designers — or the agents working for them — pay per query and get a HashScan receipt every time.

Why this primitiveShifts from the 'NFT as asset' model to 'Fit as a Service' (FaaS). By charging per simulation/unlock via x402, the app captures value from the high-frequency 'browsing' phase of fashion e-commerce rather than just the final sale.

Kernel
an x402 v2 paywall metering access at 0.01 HBAR or 0.01 HTS USDC (token 0.0.429274) per call, paid from the embedded wallet through the relay and verified by a self-hosted facilitator against the Hedera mirror node
Drives the UI as
a 'pay 0.01 HBAR or USDC to unlock' button with a live flow log and a HashScan link for every settlement
Appendix · Secrets

Required keys.

HEDERA_OPERATOR_ID
Hedera testnet account id (0.0.xxxxxx). Create and fund it free.
open ↗
HEDERA_OPERATOR_KEY
ECDSA private key for that account, from the Hedera portal dashboard.
open ↗
REOWN_PROJECT_ID
Free project id powering the HashPack pairing modal.
open ↗
HEDERA_RPC_URL
Optional. JSON-RPC relay, defaults to the public Hashio endpoint.
open ↗
PINATA_JWT
Pins images / JSON / manifests to IPFS.
open ↗

Add these in your Lovable project under Settings → Secrets before pasting the prompt below.

Appendix · Mega-prompt

The build prompt.

Paste into a fresh Lovable project. Make sure all five secrets above are set first. read the build strategy →

Loading the mega-prompt…
Appendix · Market

Market sizing.

TAM
$40B
The global apparel e-commerce 'returns avoidance' market and the emerging metaverse wearable economy.
SAM
$2.4B
The addressable market for virtual fitting room software and digital apparel retail integrations.
SOM
$18M
Targeted reach through independent digital fashion labels and AI-stylist agents requiring automated fit validation.

Indicative figures for hackathon pitches — refine with your own research before raising.

See also

Adjacent entries.