AI
Pass

AI Fashion Try-On — Agent Skill

AI Fashion Try-On — Agent Skill

Virtually try on outfits via AI Pass API image editing. Upload a photo and describe the outfit — get a realistic visualization.

Setup

  1. Create an account at aipass.one
  2. Go to Developer DashboardAPI Keys
  3. Create and copy your API key
  4. Set it as $AIPASS_API_KEY in your environment

Usage

See the skill file below for complete API integration details.

Skill File

---
name: ai-fashion-tryon
description: Virtual fashion try-on using AI Pass image editing API.
version: 1.0.0
---

# AI Fashion Try-On Skill

## Auth
- **API Key:** `$AIPASS_API_KEY`
- Get your key: https://aipass.one/panel/developer.html → API Keys

## Try On Outfit

```python
import requests, os, base64

def try_on_outfit(image_path, outfit_description):
    with open(image_path, "rb") as f:
        b64 = base64.b64encode(f.read()).decode()
    ext = image_path.rsplit(".", 1)[-1].lower()
    mime = {"png": "image/png", "jpg": "image/jpeg", "jpeg": "image/jpeg"}.get(ext, "image/png")
    r = requests.post(
        "https://aipass.one/apikey/v1/chat/completions",
        headers={"Authorization": f"Bearer {os.environ['AIPASS_API_KEY']}", "Content-Type": "application/json"},
        json={"model": "gemini/gemini-3-pro-image-preview", "messages": [{"role": "user", "content": [{"type": "text", "text": f"Put this person in: {outfit_description}. Keep face and body. Realistic."}, {"type": "image_url", "image_url": {"url": f"data:{mime};base64,{b64}"}}]}]}
    )
    return r.json()["choices"][0]["message"]["content"]
```

## Cost
- ~$0.03 per try-on
- $1 free credit on signup
Download Skill File