Developer Platform

AI Virtual Try-OnInfrastructurefor Fashion Retail

Add photorealistic virtual try-on directly to your product pages in minutes.

Flexible REST API, React SDK, or Shopify integration.
Built for controlled pilot testing and measurable evaluation.

Mission Protocol

Three Steps to Integration

01

Get Your API Key

Create an account and generate your key from the dashboard. Set allowed domains for security.

02

Send Images

POST a customer photo and garment image to our API. We handle compression, processing, and optimization.

03

Get Results

Receive a photorealistic try-on image in ~15 seconds via real-time SSE stream or polling.

Launch Systems

Choose Your Integration

Three ways to add virtual try-on — pick the one that fits your stack.

Command Center

Ship in 5 Lines

of Code

Send a model photo and a garment image. Get back a photorealistic try-on result in ~15 seconds. No ML infrastructure, no GPU management — just an API call.

Real-time results via Server-Sent Events — no polling

Results hosted on global CDN — permanent URLs

Failed jobs auto-refunded — pay only for results

See Live Demo
primestyle-api
const res = await fetch('https://myaifitting.com/api/v1/tryon', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer ps_live_your_key',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    modelImage: 'https://example.com/photo.jpg',
    garmentImage: 'https://example.com/product.jpg',
  }),
});

const { jobId } = await res.json();

// Real-time results via SSE
const events = new EventSource(
  `https://myaifitting.com/api/v1/tryon/stream?key=ps_live_your_key`
);
events.onmessage = (e) => {
  const data = JSON.parse(e.data);
  if (data.jobId === jobId && data.status === 'completed') {
    console.log('Result:', data.imageUrl);
  }
};

Live Demo

SDK in Action

This is a real <PrimeStyleTryon /> component powered by our API. Click "Try It On" to see it work.

yourstore.com/products/bloom_80
Sander Logo T-Shirt
Your Brand

Sander Logo T-Shirt

$489.00

SDK React Component

Free shipping on orders over $50

Integration Code

3 steps: install, set env, use component

import { PrimeStyleTryon } from '@primestyleai/tryon/react';

function ProductPage({ product }) {
  return (
    <div>
      <h1>{product.name}</h1>

      <PrimeStyleTryon
        productImage="https://images.bloomingdalesassets.com/is/image/BLM/products/0/optimized/15494310_fpx.tif?wid=800&qlt=100,0&layer=comp&op_sharpen=0&resMode=bilin&op_usm=0.7,1.0,0.5,0&fmt=jpeg&4msn=.jpg"
        buttonText="Try It On"
        buttonStyles={{
          width: '100%',
          padding: '14px 24px',
          borderRadius: '10px',
        }}
        onComplete={(result) => {
          console.log('Result:', result.imageUrl);
        }}
      />
    </div>
  );
}

Customization

Pass buttonStyles and modalStyles props to customize appearance.

Listen to onComplete, onError, onProcessing callbacks.

Systems Online

Built for Production

~15s Generation

Photorealistic results in approximately 15 seconds per try-on. Fast enough for real-time shopping flows.

High Accuracy

AI-powered virtual try-on that preserves garment details, fabric texture, and natural body proportions.

CDN-Hosted Results

Result images auto-uploaded to a global CDN. Permanent URLs with zero storage management on your end.

Real-Time SSE

Server-Sent Events for instant result delivery the moment generation completes. No polling needed.

Pay-Per-Try-On

Subscribe for monthly try-on volume at discounted rates. Only charged for successful generations.

Domain Security

Lock API keys to specific domains. Up to 10 keys per account with instant revocation if compromised.

Pricing

Simple, Per-Generation Pricing

Pay per try-on or subscribe for volume discounts. No hidden fees, no surprises.

Tier I

600 try-ons per month

  • $299/mo — $0.50 per try-on
  • Full API & SDK access
  • Priority support
  • Failed jobs auto-refunded
Get Started

Tier II & III

Volume discounts for growing stores

  • Tier II: 2,500 try-ons — $999/mo
  • Tier III: 10,000 try-ons — $2,999/mo
  • As low as $0.30 per try-on
  • Dedicated account manager
  • Priority support & custom SLA
View Plans

< 15s

Avg. generation time

90%+

Customer satisfaction

99.9%

API uptime

3

Integration methods

Ready to Build?

Get your API key and start integrating virtual try-on in minutes. Free try-ons included on every account.