1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const axios = require('axios');
const api_key = "YOUR API KEY";
const url = "https://api.segmind.com/workflows/667e36e83827d0f3d79dfcdc-v2";
const data = {
input_image: "publicly accessible image link",
text_prompt: "the user input string"
};
axios.post(url, data, {
headers: {
'x-api-key': api_key,
'Content-Type': 'application/json'
}
}).then((response) => {
console.log(response.data);
});
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.
1
2
3
4
{
"image": "image in URL Format",
"output_image": "image in URL Format"
}
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.
The College Yearbook Image Rejuvenation workflow leverages advanced AI technology to enhance and transform current images into representations of a younger age, tailored specifically for yearbook photo compilation. This workflow provides a precise and realistic approach to rejuvenating photographs, ensuring a seamless fit for any college yearbook design.
The College Yearbook Image workflow is built on a multi-step process utilizing cutting-edge models in image processing:
Instadepth Model Input: The workflow begins by receiving an image input of the individual. This input is then fed into the Instadepth model, which is specialized in understanding complex facial structures and postures.
Facial and Pose Analysis: The Instadepth model performs detailed analysis on the facial features and body pose, identifying key elements that are integral to maintaining identity while making age-related adjustments.
Image Synthesis and Output: Finally, the rejuvenated image is synthesized and refined, resulting in a polished photograph ready for yearbook integration.
Prepare the Image: Start by selecting and uploading a clear, well-lit image of the individual intended for yearbook enhancement.
Initiate the Rejuvenation Process: Once the image is uploaded, the workflow automatically engages the Instadepth model to begin the transformation process.
Review and Adjust: Examine the generated youthful image. Adjust any minor elements if necessary to ensure accuracy and satisfaction with the final output.
Download the Yearbook Photo: Once approved, download the revitalized image, ready for placement in the yearbook.
Alumni Yearbooks: Update alumni photos to include youthful images, maintaining tradition while providing a historical touch.
Reunion Events: Use rejuvenated images for event materials, enhancing nostalgia and connection among attendees.
Personal Archives: Individuals can create a personal archive of memories through younger portrayals, celebrating growth and change over the years.