fashn-logo

FASHNAI

Virtual try-on API

The virtual try-on API for fashion apps

A fast, simple API for realistic virtual try-on, on-model product photos, and fashion video. Integrate it in minutes with our TypeScript and Python SDKs, and pay only for successful results.

A woman's mirror selfie with virtual try-on results in four different outfits, next to the API request that created them
API request
POST /v1/run
"model_name": "tryon-max"

Trusted by fashion and AI companies

Photo Flux AI logo
Photo AI logo
RenderNet AI logo
Buñu logo
The New Black logo
Antla logo
HANGR logo
Cheyyn logo
Photo Flux AI logo
Photo AI logo
RenderNet AI logo
Buñu logo
The New Black logo
Antla logo
HANGR logo
Cheyyn logo
Photo Flux AI logo
Photo AI logo
RenderNet AI logo
Buñu logo
The New Black logo
Antla logo
HANGR logo
Cheyyn logo
Photo Flux AI logo
Photo AI logo
RenderNet AI logo
Buñu logo
The New Black logo
Antla logo
HANGR logo
Cheyyn logo

One API for fashion images and video

Every endpoint shares one simple request format, so adding a new capability is as easy as changing the model name.

  • Try-On Max

    tryon-max

    Our most capable try-on for clothing, shoes, bags, hats, and jewelry, at up to 4K.

  • Try-On v1.6

    tryon-v1.6

    Fast, lightweight try-on for tops, bottoms, and one-pieces, from 1 credit per image.

  • Product to Model

    product-to-model

    Turn a product photo into an on-model image, with optional face and background references.

  • Model Create

    model-create

    Generate a fashion model from a text prompt or a reference image.

  • Face to Model

    face-to-model

    Turn a face or selfie into an upper-body avatar that's ready for try-on.

  • Model Swap

    model-swap

    Change the model's face, skin tone, and hair while the outfit and pose stay the same.

  • Edit

    edit

    Change the pose, angle, or styling, or fix details, with an optional mask.

  • Reframe

    reframe

    Change the aspect ratio by extending or cropping the image.

  • Background Remove

    background-remove

    Get a clean product cutout as a transparent PNG in seconds.

  • Image to Video

    image-to-video

    Turn one image into a 5 or 10-second fashion video at up to 1080p.

  • Explore all endpoints in the docs

How to integrate the virtual try-on API

Send a photo of a person and a photo of a product, and get a realistic try-on back. Our SDKs wait for the result for you.

  1. 01

    Get your API key

    Buy credits in the API dashboard and create a key.

  2. 02

    Send a request

    Call the run endpoint with a model name and your images, from any language or with the TypeScript and Python SDKs.

  3. 03

    Get the result

    Poll the status endpoint or receive a webhook when your image is ready.

api.fashn.ai
1import Fashn from "fashn";
2
3const client = new Fashn({
4 apiKey: process.env.FASHN_API_KEY,
5});
6
7const response = await client.predictions.subscribe({
8 model_name: "tryon-max",
9 inputs: {
10 model_image: "https://example.com/path/to/model.jpg",
11 product_image: "https://example.com/path/to/garment.jpg",
12 },
13});
Virtual try-on for clothing, shoes, and accessories
Virtual try-on

Virtual try-on for clothing, shoes, and accessories

Try-On Max places clothing, shoes, bags, hats, and jewelry on any person at up to 4K, and follows instructions like tucking in a shirt.

For real-time, high-volume experiences, Try-On v1.6 returns tops, bottoms, and one-pieces in seconds for 1 credit per image.

On-model product photos, model swap, and video
Product content

On-model product photos, model swap, and video

Turn flat-lay and ghost mannequin photos into on-model images, change the model, edit and reframe results, and turn any image into a short video.

Add a face reference to keep the same model across product photos and model swaps.

Developer experience

A fast and simple API for developers

Call every endpoint with simple REST requests, and get started in minutes with our quickstarts and official TypeScript and Python SDKs.

Get results by webhook or polling, track every request in the API dashboard, and let your coding agent build the integration with the FASHN skill and llms.txt docs.

Pricing, privacy, and reliability

Simple pricing and clear data handling, so you can launch with confidence.

  • Pay per successful result

    Credits start at $0.075, and failed requests are never charged.

  • No subscription

    Buy credits when you need them. Purchased credits stay valid for 12 months.

  • Private by default

    Outputs are deleted after 3 days, and your data isn't used for training unless you opt in.

  • Ready to scale

    Monitor uptime on our status page, and ask us to raise your concurrency as you grow.

FASHN AI Banner

Ready to take control of your fashion content?

Join thousands of brands and creators using FASHN AI to create premium product imagery in seconds.

FASHN AI Product Showcase
FAQ

Virtual try-on API FAQs

Still have questions? Visit our Help Center