1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 const axios = require('axios'); const api_key = "YOUR API KEY"; const url = "https://api.segmind.com/workflows/66719348458d41fc488fa93f-v3"; const data = { mannequin_image: "publicly accessible image link" }; axios.post(url, data, { headers: { 'x-api-key': api_key, 'Content-Type': 'application/json' } }).then((response) => { console.log(response.data); });
Response
application/json
1 2 3 4 5 { "poll_url": "<base_url>/requests/<some_request_id>", "request_id": "some_request_id", "status": "QUEUED" }

You can poll the above link to get the status and output of your request.

Response
application/json
1 2 3 { "output_image": "image in URL Format" }

Attributes


mannequin_imageimage*

To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.

Mannequin to AI Model

Transform images of mannequins into AI-generated models showcasing the same attire. This workflow integrates cutting-edge AI technology to replace mannequins with realistic models, enhancing visual presentations and marketing materials.

How the Mannequin to Model Works

The workflow employs an advanced AI-driven process to accomplish the transformation:

  1. Automatic Mask Generation: Initially, the system generates a mask of the dress using an automatic mask generator. This mask accurately outlines the clothing on the mannequin, isolating it for further processing.

  2. Image Processing with Fooocus Model: The original image of the mannequin, along with the dress mask, is fed into the Fooocus model. The model processes these inputs, replacing the mannequin with a lifelike AI-generated model, seamlessly integrated into the dress.

How to Use the Mannequin to Model

  1. Upload Image: Begin by uploading an image of a mannequin wearing the desired dress.

  2. Mask Creation: The system will automatically create a mask of the dress, preparing it for the transformation process.

  3. Transformation: Watch as the Fooocus model replaces the mannequin with a sophisticated AI-generated model wearing the same attire.

  4. Customization: Depending on the requirements, adjustments can be made to optimize the visual appeal of the final output.

Use Cases

  • Fashion Retailers: Present clothing in a more appealing manner on digital platforms by replacing static mannequins with dynamic models.

  • E-commerce Platforms: Enhance product images by showcasing realistic models, increasing customer engagement and potential sales.

  • Fashion Designers: Visualize designs on models without the need for physical photoshoots, streamlining the design-to-presentation process.

  • Advertising and Marketing: Create polished and professional marketing materials for fashion campaigns, utilizing realistic model imagery.

These use cases demonstrate the versatility and effectiveness of the Mannequin to Model workflow in various fashion-oriented industries.