Add Agalaz Virtual Try-On to your store in under 5 minutes. No coding experience needed. Works on Shopify, WooCommerce, and any custom website.
1. Go to Online Store → Themes → Edit code 2. Open layout/theme.liquid 3. Find the </head> tag 4. Paste the script BEFORE </head>:
<script src="https://agalaz.com/widget.js" data-api-key="YOUR_API_KEY"></script>Replace YOUR_API_KEY with your actual API key from the registration step.
1. Open sections/main-product.liquid (or your product template) 2. Find where you want the "Try it on" button 3. Paste this where you want the button:
<div id="agalaz-tryon"
data-garment="{{ product.featured_image | img_url: 'large' }}"
data-product-id="{{ product.id }}"
data-variant-id="{{ product.selected_or_first_available_variant.id }}"
data-product-type="{{ product.type }}"
data-customer-id="{% if customer %}{{ customer.id }}{% endif %}"
data-login-url="/account/login"></div>data-customer-id is REQUIRED — only logged-in customers can try on (3 free try-ons/day per customer, resets daily). data-variant-id powers the "Add to cart" button (Shopify Ajax /cart/add.js). data-product-id + data-product-type unlock AI-ranked cross-sell.
Visit your product page. You should see a "Try it on with AI" button. Click it to test the virtual try-on experience.
Your customers can now upload their photo, try on the product, and see how it looks on them — all without leaving your store.
"Try it on with AI" appears on the product page, next to Add to Cart.
A selfie (face) and a full-body photo. Takes 30 seconds.
In ~10 seconds, they see themselves wearing the product.
They know exactly how it looks on them. Fewer returns for you.
Customer photos are processed in real-time and never stored on our servers. No databases, no logs, no traces.
Your API key only works from your registered domains. Nobody can use your key from another site.
We store only a SHA-256 hash of your key. Even we cannot see your full API key after creation.
No personal data is collected or stored. Photos exist only during the ~10 second processing window.
For developers who want to build a custom integration instead of using the widget.
Authorization: Bearer agz_live_YOUR_KEY Content-Type: application/json
{
"faceImage": "base64_encoded_face_photo",
"bodyImage": "base64_encoded_body_photo",
"clothingImage": "base64_encoded_garment_photo" // optional
}{
"success": true,
"image": "data:image/png;base64,...",
"credits_remaining": 199
}Yes. The widget is fully responsive. Your customers can try on products from their phone, tablet, or desktop.
No. The widget script is under 5KB and loads asynchronously. It only activates when the user clicks the button.
The button inherits a clean default style. Contact us for custom branding — colors, text, and positioning can all be adjusted.
The button will still appear, but try-ons will show a "credits exhausted" message. Contact us to upgrade or add extra renders at €0.50-0.63 each.
Yes! Every new partner gets 10 free trial renders. No credit card required.
It works best with tops (shirts, jackets, sweaters, dresses). The AI replaces the upper garment while preserving pants, shoes, and the background.