commerce, visual-recognition, artificial-intelligence

πŸ‘©πŸ‘—Try on Clothes

Experience ultra-realistic AI-powered Try-On, transforming flat clothing images and portraits into accurate, life-like previews of garment fit and style.

BASIC
PRO
ULTRA
MEGA
⚠️

You get 10 API units just by validating your email.
No credit card required.

  • API Units: 10/month
  • API Limit Type: HARD
  • Total Endpoints: 2
Experience ultra-realistic AI-powered Try-On, transforming flat clothing images and portraits into accurate, life-like previews of garment fit and style.
6 min read

Table of Contents

  • πŸ“„πŸ‘©πŸ‘—Try on Clothes API
  • ✨Features
  • πŸ“ŽUse-Cases
  • πŸ“˜API Documentation
  • πŸ”ŒEndpoint
  • πŸ“¦Request
  • ⚠️Status Codes & Error Handling
  • πŸ“ŽSEO Keywords

πŸ‘©πŸ‘—Try on Clothes API

The Try on Clothes API enables developers to virtually dress a person by overlaying clothing items on a portrait image. This API processes a full-body, front-view portrait along with a separate clothing image, and applies the clothing according to the specified type (upper body, lower body, or full body). If the results do not fully meet your expectations, consider using the Try on Clothes Refiner for enhancements or the Try on Clothes Pro for advanced processing.

Features

  • Virtual Try-On: Combines a user’s portrait with clothing images to simulate a try-on experience.
  • Asynchronous Processing: Returns a task ID for later retrieval, ensuring efficient handling of image processing without blocking.
  • Flexible Clothing Types: Supports different clothing placements including upper body, lower body, or full body.
  • High-Quality Image Handling: Optimized for clear, full-body images with specific pose requirements to maintain realism.

Use-Cases

  • E-Commerce Virtual Fitting Rooms: Allow customers to preview how clothing items would look on them before purchase.
  • Fashion Styling Apps: Enable users to experiment with different outfits and combinations.
  • Digital Wardrobe & Personalization: Integrate into apps for personalized styling recommendations and outfit planning.
  • Social Media & Content Creation: Create engaging try-on visuals for fashion influencers and online campaigns.

API Documentation

Endpoint

curl -X 'POST' \
  'https://prod.api.market/api/v1/ailabtools/try-on-clothes/portrait/editing/try-on-clothes' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: <YOUR API MARKT KEY>' \
  -H 'Content-Type: multipart/form-data' \
  -F 'task_type=async' \
  -F 'clothes_type=upper_body'

Request

Image Requirements

Portrait Image:

  • Formats: JPG, JPEG, PNG
  • Max Size: 3 MB
  • Resolution: Less than 4096Γ—4096 px
  • Pose: Full-body front view with hands fully visible. Avoid side views, seated/lying poses, or group photos.

Clothing Image:

  • Formats: JPG, JPEG, PNG
  • Max Size: 3 MB
  • Resolution: Less than 4096Γ—4096 px
  • Pose: Full-body front view, flat-lay image with clear, well-aligned clothing.
  • Additional Guidance: Use clothing items with minimal patterns and prints. The clothing item should occupy most of the image frame without any obstructions or overlapping layers.

Request Body Fields

FieldRequiredTypeOptionsDescription
task_typeYesstringasyncIndicates that the task will be processed asynchronously.
person_imageYesfileβ€”The portrait image of the person. Must meet the portrait image requirements.
clothes_imageYesfileβ€”The clothing image. Must meet the clothing image requirements.
clothes_typeYesstringupper_body, lower_body, full_bodySpecifies the type of clothing to be applied: upper body, lower body, or full body clothing.

Response

{
  "task_type": "async",
  "task_id": "string",
  "request_id": "string",
  "log_id": "string",
  "error_code": 0,
  "error_detail": {
    "status_code": 0,
    "code": "string",
    "code_message": "string",
    "message": "string"
  },
  "error_msg": "string"
}

Status Codes & Error Handling

FieldDescription
error_code0 indicates success; any non-zero value denotes a specific error (e.g., invalid image or pose, file size issues).
error_msgA short, descriptive message explaining any error encountered.
status_codeStandard HTTP status codes (e.g., 200 for success, 400 for client error). Use in conjunction with error_code for debugging.

SEO Keywords

virtual try-on API, try on clothes API, virtual dressing room, asynchronous try-on API, fashion tech API, e-commerce virtual fitting, clothing overlay API, digital wardrobe tool

Skip to API Playground

API Playground (Try the APIs)

AI COMMON

API.market Guarantee

Only pay for API calls with OK(2XX) status code.

Cancel Anytime

Mange all your API subscriptions.

24/7 Customer Support

Just reach our using the chat window on the right corner.

Refunds policy

30 days return for unused API quota for any reason

β˜…N/A Β· 0 ReviewsBack to top

Write a Review for this API Product

πŸ‘©πŸ‘—Try on Clothes# πŸ‘©πŸ‘—Try on Clothes API The Try on Clothes API enables developers to virtually dress a person by overlaying clothing items on a portrait image. This API processes a full-body, front-view portrait along with a separate clothing image, and applies the clothing according to the specified type (upper body, lower body, or full body). If the results do not fully meet your expectations, consider using the Try on Clothes Refiner for enhancements or the Try on Clothes Pro for advanced processing. ## Features - **Virtual Try-On**: Combines a user’s portrait with clothing images to simulate a try-on experience. - **Asynchronous Processing**: Returns a task ID for later retrieval, ensuring efficient handling of image processing without blocking. - **Flexible Clothing Types**: Supports different clothing placements including upper body, lower body, or full body. - **High-Quality Image Handling**: Optimized for clear, full-body images with specific pose requirements to maintain realism. ## Use-Cases - **E-Commerce Virtual Fitting Rooms**: Allow customers to preview how clothing items would look on them before purchase. - **Fashion Styling Apps**: Enable users to experiment with different outfits and combinations. - **Digital Wardrobe & Personalization**: Integrate into apps for personalized styling recommendations and outfit planning. - **Social Media & Content Creation**: Create engaging try-on visuals for fashion influencers and online campaigns. ## API Documentation ### Endpoint ```bash curl -X 'POST' \ 'https://prod.api.market/api/v1/ailabtools/try-on-clothes/portrait/editing/try-on-clothes' \ -H 'accept: application/json' \ -H 'x-magicapi-key: <YOUR API MARKT KEY>' \ -H 'Content-Type: multipart/form-data' \ -F 'task_type=async' \ -F 'clothes_type=upper_body' ``` ### Request #### Image Requirements **Portrait Image:** - **Formats**: JPG, JPEG, PNG - **Max Size**: 3 MB - **Resolution**: Less than 4096Γ—4096 px - **Pose**: Full-body front view with hands fully visible. Avoid side views, seated/lying poses, or group photos. **Clothing Image:** - **Formats**: JPG, JPEG, PNG - **Max Size**: 3 MB - **Resolution**: Less than 4096Γ—4096 px - **Pose**: Full-body front view, flat-lay image with clear, well-aligned clothing. - **Additional Guidance**: Use clothing items with minimal patterns and prints. The clothing item should occupy most of the image frame without any obstructions or overlapping layers. #### Request Body Fields | Field | Required | Type | Options | Description | |---------------|:--------:|--------|-----------------------------------------|---------------------------------------------------------------------------------------------------------------| | `task_type` | Yes | string | `async` | Indicates that the task will be processed asynchronously. | | `person_image`| Yes | file | β€” | The portrait image of the person. Must meet the portrait image requirements. | | `clothes_image`| Yes | file | β€” | The clothing image. Must meet the clothing image requirements. | | `clothes_type`| Yes | string | `upper_body`, `lower_body`, `full_body` | Specifies the type of clothing to be applied: upper body, lower body, or full body clothing. | #### Response ```json { "task_type": "async", "task_id": "string", "request_id": "string", "log_id": "string", "error_code": 0, "error_detail": { "status_code": 0, "code": "string", "code_message": "string", "message": "string" }, "error_msg": "string" } ``` ## Status Codes & Error Handling | Field | Description | |--------------|--------------------------------------------------------------------------------------------------| | `error_code` | `0` indicates success; any non-zero value denotes a specific error (e.g., invalid image or pose, file size issues). | | `error_msg` | A short, descriptive message explaining any error encountered. | | `status_code`| Standard HTTP status codes (e.g., 200 for success, 400 for client error). Use in conjunction with `error_code` for debugging. | ## SEO Keywords virtual try-on API, try on clothes API, virtual dressing room, asynchronous try-on API, fashion tech API, e-commerce virtual fitting, clothing overlay API, digital wardrobe tool
API provider offers quality service.

Recently Visited. APIs

  • πŸ‘©πŸ‘—Try on Clothes

    By ailabtools

    Experience ultra-realistic AI-powered Try-On, transforming flat clothing images and portraits into accurate, life-like p...

    commercevisual-recognitionartificial-intelligence
    /ailabtools/try-on-clothes
    0 (0)