Virtual Try-On API for Ecommerce Developers
By the ZeDaq.ai team · · 4 min read
On this page
The ZeDaq.ai REST API lets you add AI virtual try-on and body-scan size recommendation to any storefront, headless build or mobile app. You authenticate with an API key, send the shopper's photo and a product image, and get JSON back: a rendered try-on image, estimated measurements and a recommended size from your chart.
If you'd rather not build a UI, the same engine ships as a drop-in widget (one script tag) and a Shopify app.
See the output your API calls return
Try it on yourself
Live renderUpload a photo, pick a piece, see it rendered on you.
Pick something to try on
What can the API do?
| Capability | Input | Output |
|---|---|---|
| Virtual try-on | Shopper photo + garment image | Rendered image of the garment on the shopper |
| Body scan | Shopper photo + height | Estimated body measurements from 33 skeletal landmarks |
| Size recommendation | Measurements + your size chart | Recommended alpha or numeric size |
| Usage | API key | Real-time usage, credits and overage |
How does a typical integration flow work?
Shopper on product page
│ uploads photo + height
▼
Your frontend ──► Your backend (holds the API key)
│
▼
ZeDaq.ai REST API (authenticated, rate-limited, metered)
│
┌────────────┴────────────┐
▼ ▼
Body intelligence engine Try-on render engine
(pose geometry + size match) (garment on shopper)
│ │
└──────── JSON ◄──────────┘
│
▼
Your UI: size pre-selected, try-on image shown
Keep the API key on your server. Call ZeDaq.ai from your backend, not from the browser.
How do you authenticate?
Create an account, then generate an API key in your dashboard. Send it with each request:
POST https://www.zedaq.ai/api/v1/tryon
x-api-key: YOUR_API_KEY
Content-Type: application/json
{
"person_image_base64": "<shopper photo, base64>",
"product_image_base64": "<product image, base64>"
}
The response is either the finished render (image_base64 and mime_type) or, for longer renders, {"status": "pending", "job_id": "...", "poll_url": "/api/v1/tryon/status/<job_id>"}, which you poll from your server until the image is ready.
Size scans use a separate endpoint (
/api/v1/scan) fed by the ZeDaq.ai JS SDK, which measures pose landmarks on the device. Your dashboard has your keys and usage.
How is the API secured?
- Hashed keys: API keys are stored as SHA-256 hashes.
- Domain restriction: lock widget keys to your own domains.
- Row-level security on every table, so each account sees only its own data.
- Rate limiting and metering on every call.
For shopper-facing privacy wording, see shopper privacy and virtual try-on.
What should you build around the API?
- Photo guidance: show shoppers a simple "stand straight, fitted clothing, full body" prompt before upload.
- Loading state: a render takes seconds, so show progress.
- Fallback: if a render fails, fall back to the size recommendation alone.
- Caching: store a shopper's measurements (with consent) so they don't rescan on every product.
- Analytics: log try-on → add-to-cart → order so you can measure impact.
Widget or API: which should you use?
| Widget (script tag) | REST API | |
|---|---|---|
| Setup time | Minutes | Days |
| UI control | ZeDaq.ai widget, 10 languages | Fully yours |
| Best for | Storefronts on Shopify, WooCommerce, Wix, Magento | Headless, native mobile apps, marketplaces, custom flows |
| Maintenance | None | Your code |
Read the full comparison: embeddable widget vs API.
How is API usage priced?
API calls draw from the same plan quotas as the widget and Shopify app. A try-on render counts against the try-on cap; a body scan counts against the measurement cap; size lookups are free.
| Plan | Monthly | Try-ons | Measurements |
|---|---|---|---|
| Free | $0 | 3 | 3 |
| Micro | $14 | 20 | 30 |
| Starter | $49 | 75 | 100 |
| Growth | $129 | 650 | Unlimited |
| Scale | $299 | 2,000 | Unlimited |
| Enterprise | Custom | Custom volume | Custom SLA, dedicated contact |
Checked 6 November 2026 on zedaq.ai/pricing. Growth and Scale use a higher diffusion step count for more detailed renders.
Frequently asked questions
Is there a sandbox or free tier for testing?
Yes. New accounts get a 3-day trial with no card, then stay on the free plan (3 try-ons, 3 measurements a month).
Can I use the API in a React Native or native mobile app?
Yes. Call the API from your backend and display the returned image and size in your app.
What image formats and sizes are accepted?
Send JPEG or PNG images as base64. A clear, full-body shopper photo and a flat or on-model product image give the best renders.
Do you offer enterprise volume and SLAs?
Yes. Enterprise plans have custom call volume, a custom SLA and a dedicated support contact. Email info@zedaq.ai.
Get your API key
Internal links: Virtual try-on for WooCommerce · Adding virtual try-on to your own fashion app · AI size recommendation
Try ZeDaq.ai free
Virtual try-on and Find my size for your store, plus client, order and invoicing tools for tailors, in one subscription.


