Add virtual try‑on in 15 minutes

OnMe works on any website through its API. Most stores paste the drop-in widget and one tag on the product page. Teams that want their own interface build on the REST API: upload a photo, create a try-on, read the result.

Drop-in widget

About 15 minutes. Paste the script once, then the tag on each product page.

<script src="https://cdn.onme.overspill.net/v1/widget.js" data-key="pk_live_…" async></script>

<onme-tryon product-id="SKU-123"
            product-image="https://yourstore.com/img/sku-123.jpg"
            category="saree" locale="bn"></onme-tryon>

Listen for the add-to-cart event to use your own cart:

window.addEventListener('onme:add_to_cart', (e) => {
  myStore.addToCart(e.detail.productId);
});

REST API

About a day. Your own button, upload and result screens.

  1. POST /v1/uploadsGet a signed upload link
  2. PUTSend the photo to that link
  3. POST /v1/tryonsCreate the try-on
  4. GET /v1/tryons/:idRead the result when it succeeds

Keys

  • pk_live_ works in the browser, only on your verified domain
  • sk_live_ stays on your server
  • pk_test_ keys run free on localhost

The full guide with every endpoint, error code and webhook is in the developer guide. Book a call and we’ll do the integration with your developer.