# JUXTAMODE Virtual Try-On

> JUXTAMODE Virtual Try-On is a paid API for AI agents from juxtamode.com, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-12).

Generates a virtual try-on image by compositing a person's photo with a specified garment from a URL

## Facts

- Endpoint: POST https://juxtamode.com/api/virtual-try-on?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/juxtamode-virtual-try-on-9bc92e40
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_07dBQ0qc5Rqt00IJLx4f5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability juxtamode-virtual-try-on-9bc92e40 -d '<json body>'
```

Example prompt: Can you virtually try on this Zara blazer for me? Here's the product page: https://www.zara.com/us/en/blazer-p12345.html — and use this photo of me: https://mycdn.com/my-photo.jpg. I'd like a portrait aspect ratio.

## When to prefer this

Use this endpoint when you need to generate a photorealistic image of a specific person wearing a specific garment, especially when pulling garments directly from fashion retailer product pages (Zara, H&M, etc.). It is the right choice when the user wants a shareable try-on result and is comfortable with per-call micropayment via x402/USDC. Prefer it over generic image generation APIs when fashion-specific try-on compositing is required.

## Known failure modes

- Invalid or inaccessible person image URL — returns error or empty result
- Invalid or inaccessible product/garment URL — garment cannot be extracted
- Unsupported retailer page layout — garment image cannot be parsed from product page
- Payment not settled — x402 payment fails or is rejected, endpoint returns 402
- Image generation failure — AI model fails to composite images, may return null resultImage
- Invalid aspect ratio value — generation may fail or use a default

## How this service works

Virtual Try-On image generation - combines your photo with a garment

## Output

Returns a Cloudflare-hosted URL of the generated try-on image showing the person wearing the garment, a public shareable page URL for viral distribution, and blockchain payment confirmation details including transaction hash and settlement status.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "productUrl",
  "personImageUrl"
 ],
 "properties": {
  "prompt": {
   "type": "string",
   "description": "Optional custom prompt for VTO generation"
  },
  "productUrl": {
   "type": "string",
   "description": "URL of the garment (can be direct image URL or product page URL like Zara, H&M, etc.)"
  },
  "aspectRatio": {
   "enum": [
    "1:1",
    "3:4",
    "4:3",
    "4:5",
    "9:16",
    "16:9"
   ],
   "type": "string",
   "description": "Output aspect ratio"
  },
  "personImageUrl": {
   "type": "string",
   "description": "URL of the person image (direct image URL or product page URL with model photo)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "shareUrl": {
   "type": "string",
   "description": "Public share page URL for viral distribution"
  },
  "resultImage": {
   "type": "string",
   "description": "Cloudflare Images URL of the generated VTO result"
  },
  "x-payment-response": {
   "type": "object",
   "properties": {
    "payer": {
     "type": "string",
     "description": "Wallet address of the payer"
    },
    "settled": {
     "type": "boolean",
     "description": "Whether payment was settled on-chain"
    },
    "transactionHash": {
     "type": "string",
     "description": "Blockchain transaction hash"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/juxtamode-virtual-try-on-9bc92e40/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from juxtamode.com](https://www.zero.xyz/host/juxtamode.com/llms.txt)
