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.
POST /v1/uploadsGet a signed upload linkPUTSend the photo to that linkPOST /v1/tryonsCreate the try-onGET /v1/tryons/:idRead the result when it succeeds
Keys
pk_live_works in the browser, only on your verified domainsk_live_stays on your serverpk_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.