---
title: "Virtual Try-On & Fashion AI API for Developers | FASHN"
description: Add virtual try-on, on-model photos, model swap, and video to your app with one fast, simple API. TypeScript and Python SDKs, from $0.075 per credit.
image: https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLj27bJjhuOm9eldfPkxtrB1E0TXz3c58GWKoSq
canonical: https://fashn.ai/products/api
---
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.

[Get your API key](https://app.fashn.ai/api?utm_source=fashn.ai&utm_medium=cta&utm_campaign=api_page&utm_content=hero) [Read the docs ↗](https://docs.fashn.ai) ![A woman's mirror selfie with virtual try-on results in four different outfits, next to the API request that created them](https://static.fashn.ai/website/pages/api/api-hero-01.webp) ![](https://static.fashn.ai/website/pages/api/api-hero-02.webp) ![](https://static.fashn.ai/website/pages/api/api-hero-03.webp) ![](https://static.fashn.ai/website/pages/api/api-hero-04.webp) API request POST /v1/run "model_name": "tryon-max"

Trusted by fashion and AI companies

![Photo Flux AI logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjEAXGV0K0FfCvOrwoNYI4JgtPe6xSWihMHpT8) ![Photo AI logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjMHwlnAasXSdB8Qi2T9mg4rnVz5tqYZ1bWo73) ![RenderNet AI logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjr1niOrr0s1HUpv3bEm5dMQGaiR2NoyBPW9TD) ![Buñu logo](https://cdn.prod.website-files.com/6720a21582507453069c664f/67210cf06565c023628bf4f1_bunu-logo.svg) ![The New Black logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjKIdmcVBC3LH4jlTciD02vZrnJXRagAuBGo1O) ![Antla logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjy3NGYKoev2XLboOFVJkGc4QmISdUhz7Zpl9K) ![HANGR logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjxc7aMn10N8h1XUbaCizIZsxcVSOg5DQfvwPe) ![Cheyyn logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLj026Bsax5kc6ngXvatFb4BzQR3p2qmjiIxyAV) ![Photo Flux AI logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjEAXGV0K0FfCvOrwoNYI4JgtPe6xSWihMHpT8) ![Photo AI logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjMHwlnAasXSdB8Qi2T9mg4rnVz5tqYZ1bWo73) ![RenderNet AI logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjr1niOrr0s1HUpv3bEm5dMQGaiR2NoyBPW9TD) ![Buñu logo](https://cdn.prod.website-files.com/6720a21582507453069c664f/67210cf06565c023628bf4f1_bunu-logo.svg) ![The New Black logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjKIdmcVBC3LH4jlTciD02vZrnJXRagAuBGo1O) ![Antla logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjy3NGYKoev2XLboOFVJkGc4QmISdUhz7Zpl9K) ![HANGR logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjxc7aMn10N8h1XUbaCizIZsxcVSOg5DQfvwPe) ![Cheyyn logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLj026Bsax5kc6ngXvatFb4BzQR3p2qmjiIxyAV) ![Photo Flux AI logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjEAXGV0K0FfCvOrwoNYI4JgtPe6xSWihMHpT8) ![Photo AI logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjMHwlnAasXSdB8Qi2T9mg4rnVz5tqYZ1bWo73) ![RenderNet AI logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjr1niOrr0s1HUpv3bEm5dMQGaiR2NoyBPW9TD) ![Buñu logo](https://cdn.prod.website-files.com/6720a21582507453069c664f/67210cf06565c023628bf4f1_bunu-logo.svg) ![The New Black logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjKIdmcVBC3LH4jlTciD02vZrnJXRagAuBGo1O) ![Antla logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjy3NGYKoev2XLboOFVJkGc4QmISdUhz7Zpl9K) ![HANGR logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjxc7aMn10N8h1XUbaCizIZsxcVSOg5DQfvwPe) ![Cheyyn logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLj026Bsax5kc6ngXvatFb4BzQR3p2qmjiIxyAV) ![Photo Flux AI logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjEAXGV0K0FfCvOrwoNYI4JgtPe6xSWihMHpT8) ![Photo AI logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjMHwlnAasXSdB8Qi2T9mg4rnVz5tqYZ1bWo73) ![RenderNet AI logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjr1niOrr0s1HUpv3bEm5dMQGaiR2NoyBPW9TD) ![Buñu logo](https://cdn.prod.website-files.com/6720a21582507453069c664f/67210cf06565c023628bf4f1_bunu-logo.svg) ![The New Black logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjKIdmcVBC3LH4jlTciD02vZrnJXRagAuBGo1O) ![Antla logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjy3NGYKoev2XLboOFVJkGc4QmISdUhz7Zpl9K) ![HANGR logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLjxc7aMn10N8h1XUbaCizIZsxcVSOg5DQfvwPe) ![Cheyyn logo](https://cm7xvlqw96.ufs.sh/f/wXFHUNfTHmLj026Bsax5kc6ngXvatFb4BzQR3p2qmjiIxyAV)

## 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](https://docs.fashn.ai/api-reference)

## 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.

JavaScript Python cURL api.fashn.ai

```javascript
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](https://static.fashn.ai/website/pages/virtual-fitting-rooms/virtual-fitting-rooms-every-body-type-poster.webp) 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](https://static.fashn.ai/website/pages/api/api-product-content.webp) 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.
- ### Volume discounts

  Monthly plans include credits and lower the price of top-ups by up to 35%.
- ### 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.

## Everything you need to launch

Pricing, examples, and ideas for building with the FASHN API.

[### API pricing

Compare on-demand credits and monthly plans.

→](https://fashn.ai/pricing#api) [### Virtual fitting rooms

See how online stores add try-on to product pages.

→](https://fashn.ai/virtual-fitting-rooms) [### Customer stories

See how teams build with FASHN.

→](https://fashn.ai/customer-stories) [### Virtual Try-On

Try the same technology in the FASHN app.

→](https://fashn.ai/virtual-try-on) ![FASHN AI Banner](https://fashn.ai/banner-img.png)

## Ready to take control of your
fashion content?

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

[Get started for free](https://app.fashn.ai/api?utm_source=fashn.ai&utm_medium=cta&utm_campaign=api_page&utm_content=conversion_banner) [API documentation ↗](https://docs.fashn.ai/) [![](https://developer.apple.com/assets/elements/badges/download-on-the-app-store.svg)](https://apps.apple.com/us/app/fashn-ai-fashion-studio/id6760580276?utm_source=fashn.ai&utm_medium=referral&utm_campaign=global_cta_banner&utm_content=ios_download) [![](https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png)](https://play.google.com/store/apps/details?id=ai.fashn.app&utm_source=fashn.ai&utm_medium=referral&utm_campaign=global_cta_banner&utm_content=android_download) No credit card required ![FASHN AI Product Showcase](https://fashn.ai/banner-img.png) FAQ

## Virtual try-on API FAQs

### What is the FASHN API?

The FASHN API is a fashion AI API for developers. It adds virtual try-on, on-model product photos, AI fashion models, model swap, image editing, background removal, and image-to-video to any website or app through one REST API, with official TypeScript and Python SDKs.

### Which endpoints does the FASHN API offer?

The FASHN API includes Try-On Max and Try-On v1.6 for virtual try-on, Product to Model, Model Create, Face to Model, Model Swap, Edit, Reframe, Background Remove, and Image to Video. Every endpoint uses the same request format, so you can add a new capability by changing the model name.

### How much does the virtual try-on API cost?

Credits cost $0.075 each, with a minimum purchase of $7.50. Try-On v1.6 uses 1 credit per image, and Try-On Max uses 1 to 5 credits depending on mode and resolution. Monthly plans lower the price per credit by up to 35%, and you're only charged for successful results.

### Is there a free trial?

The FASHN API doesn't include free credits. You can start with a $7.50 purchase of 100 credits, enough to test every endpoint, and failed requests are never charged.

### What's the difference between Try-On Max and Try-On v1.6?

Try-On Max is the most capable FASHN try-on model. It handles clothing, shoes, bags, hats, and jewelry at up to 4K and follows text instructions like tucking in a shirt. Try-On v1.6 is faster and lighter, made for real-time experiences with tops, bottoms, and one-pieces, at 1 credit per image.

### How does the virtual try-on API work?

Send a photo of a person and a photo of a product to the run endpoint with the try-on model name. The product can be a flat-lay, a ghost mannequin shot, or an on-model photo. The API returns an image of the person wearing the product, which you get by polling the status endpoint or through a webhook.

### How fast is the API?

Try-On v1.6 returns results in about 5 to 17 seconds depending on the mode. Try-On Max and the other image endpoints take about 10 seconds in fast mode at 1K and up to about 55 seconds in quality mode at 4K. Background Remove takes 1 to 3 seconds.

### Can I generate on-model product photos with the API?

Yes. The Product to Model endpoint turns a flat-lay, ghost mannequin, or product-only photo into an image of a model wearing it. You can guide the result with a prompt, a background reference, or a face reference to keep the same model across your catalog.

### Can I create AI fashion models with the API?

Yes. The Model Create endpoint generates a fashion model from a text prompt or a reference image, and the Face to Model endpoint turns a face or selfie into an upper-body avatar that's ready for try-on. Add a face reference to keep the same identity across images.

### Can the API edit images, remove backgrounds, and create videos?

Yes. Edit changes the pose, angle, or styling and fixes details, Reframe changes the aspect ratio, and Background Remove returns a transparent PNG cutout. Image to Video turns one image into a 5 or 10-second video at up to 1080p.

### Can I add the FASHN API to my Shopify store?

Yes. A developer or agency connects the FASHN API to your Shopify store, WooCommerce store, or custom site, giving you full control over how virtual try-on looks and works on your product pages.

### Which SDKs and integrations are available?

There are official TypeScript and Python SDKs that submit requests and wait for results for you, and the REST API works with any language. You can receive results by polling or with webhooks, follow quickstarts for Next.js and React Router, and give AI coding agents the FASHN skill or llms.txt docs.

### What are the rate limits?

The run endpoint allows 50 requests per minute, and you can run 6 requests at once by default. Contact [[email protected]](https://fashn.ai/cdn-cgi/l/email-protection) to raise your concurrency for production traffic.

### How do I monitor my API usage?

The API dashboard shows every request with its inputs, outputs, status, and credits used, so you can track usage and debug your integration. You can also check your credit balance with the credits endpoint.

### Do you store or train on my users' photos?

Outputs are deleted after 3 days, and images sent as base64 are deleted once the request completes. Your content isn't used to train models unless you opt in, and a Data Processing Agreement is available.

### Can I use API results commercially?

Yes. You can use the images and videos you create with the FASHN API in your products, on product pages, and in marketing, in line with our terms of service.

### How do I get started with the FASHN API?

Buy credits in the API dashboard, create an API key, and follow a quickstart in the docs at https://docs.fashn.ai.

Still have questions? [Visit our Help Center](https://help.fashn.ai)
