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/667e32913827d0f3d79dfcdb-v7"; 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 { "image_output": "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.

Football Team Jersey Generator

The Football Team Jersey Generator utilizes advanced AI technology to transform images of individuals, incorporating their likeness into a desired football team jersey. This seamless process merges facial recognition with pose adaptation, creating a realistic portrayal based on specific text prompts.

How the Football Team Jersey Generator Works

  • Instadepth Model: This initial step involves inputting a photograph of the person whose likeness will be used. The model captures facial features to ensure accurate representation.

  • Face and Pose Inputs: Users provide a reference pose along with the face image, allowing the system to align the subject's posture with the desired sports appearance.

  • Text Prompt Integration: A text description specifies which football team's jersey should be featured, guiding the system in customizing the final output.

  • Image Generation: The combined data prompts the AI to produce an image where the individual appears to be wearing the chosen football team jersey.

How to Use the Football Team Jersey Generator

  1. Upload Face Image: Begin by uploading a clear photo of the person to be featured in the jersey design.

  2. Select Pose: Choose a reference pose to dictate how the subject should be positioned.

  3. Enter Text Prompt: Specify the football team and any additional details to customize the jersey style.

  4. Generate Image: Allow the AI to process the inputs and generate the final image of the person in their new football attire.

Use Cases

  • Sports Enthusiasts: Create customized images of fans wearing favorite team jerseys for social media or personal enjoyment.

  • Marketing Campaigns: Design promotional materials with athletes or models in popular team apparel for advertising purposes.

  • Merchandise Visualization: Offer previews of personalized jerseys for customers considering custom orders.

  • Event Souvenirs: Generate themed images for sports events, capturing participants in matching team gear.