PixelFlow Template

Design Your Face T-Shirt

Playground

Try the model in real time below.

1b32f91b-2fcf-4a5c-8854-1dce409b915d.jpg selected

You can drop your own file here

output image


Pixelflow

This model is actually a pixelflow you can see the internal workings of the model here, and also clone and play around with it, just click the Run button on the right.


API

If you're looking for an API, here is a sample code in NodeJS to help you out.

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/66911a12267a318a6071ba92-v1"; const data = { face_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 4 5 6 { "black_shirt": "image in URL Format", "white_shirt": "image in URL Format", "red_shirt": "image in URL Format", "pink_shirt": "image in URL Format" }

Attributes


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

FEATURES

PixelFlow allows you to use all these features

Unlock the full potential of generative AI with Segmind. Create stunning visuals and innovative designs with total creative control. Take advantage of powerful development tools to automate processes and models, elevating your creative workflow.

Inferencing

Run generative AI models with minimal latencies and setup costs, optimizing resource use and speed.

Inferencing

Run generative AI models with minimal latencies and setup costs, optimizing resource use and speed.

Inferencing

Run generative AI models with minimal latencies and setup costs, optimizing resource use and speed.

Inferencing

Run generative AI models with minimal latencies and setup costs, optimizing resource use and speed.

AI-Powered T-Shirt Design Generator: From Photo to Mockup

This workflow demonstrates how AI models can transform a portrait photo into a stylized sticker and create realistic t-shirt mockups. The process involves three main steps:

  1. Photo Input and Sticker Generation:

    • Users upload a portrait photo.
    • The "face-to-sticker" AI model converts the photo into a stylized sticker.
    • The model is prompted with "a person, like superhero, stylish" to guide the sticker's style.
  2. Sticker Creation:

    • The AI generates a stylized, cartoon-like representation of the person.
    • This sticker maintains recognizable features while adding a superhero-inspired aesthetic.
  3. T-Shirt Mockup Generation:

    • The "Image Superimpose" model takes the generated sticker and places it onto t-shirt templates.
    • Four mockups are created: a black t-shirt, white t-shirt, a red t-shirt and a pink t-shirt.
    • The sticker is seamlessly integrated onto the shirts, providing realistic previews.

This workflow offers several advantages:

  • Rapid prototyping of custom t-shirt designs
  • Creation of personalized merchandise from photos
  • Generation of both the printable asset (sticker) and mockups for visualization

The process streamlines custom apparel design, allowing for quick iteration and preview of designs before physical production. It's particularly useful for personalized merchandise, small businesses, or event-specific apparel.

This technology showcases the growing capabilities of AI in creative and commercial applications, bridging the gap between digital concepts and physical products.

F.A.Q.

Frequently Asked Questions

Take creative control today and thrive.

Start building with a free account or consult an expert for your Pro or Enterprise needs. Segmind's tools empower you to transform your creative visions into reality.

Pixelflow Banner