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/666fa3d0c7bbec1670177913-v3";
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
{
"white_background": "image in URL Format",
"grey_background": "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 LinkedIn Headshot Generator v2 is a sophisticated tool designed to create professional headshots suitable for LinkedIn profiles. Utilizing the advanced Instadepth model, it transforms an input image of a person into a polished and professional headshot effortlessly.
The headshot generation process incorporates several key steps to ensure high-quality results:
Instadepth Model: This advanced model analyzes the input image to understand facial features and pose, ensuring a realistic and professional look.
Input Image Handling: Users provide an image where the model identifies and processes the face and pose, forming the basis for the headshot.
Image Generation: Based on the input data, the tool generates a new image that aligns with professional standards for LinkedIn headshots.
Upload Image: Start by uploading an image featuring the subject.
Model Analysis: The Instadepth model processes the input to understand detailed facial attributes and positioning.
Generate Headshot: The tool creates a refined headshot ready for professional use.
Professional Networking: Ideal for enhancing LinkedIn profiles with a professional and appealing headshot.
Corporate Profiles: Useful for generating consistent profile images for company directories.
Digital Resumes: Perfect for integrating into digital resumes to create a strong first impression.
Social Media: Can also be used to generate headshots for other professional social media platforms.