1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const axios = require('axios');
const fs = require('fs');
const path = require('path');
async function toB64(imgPath) {
const data = fs.readFileSync(path.resolve(imgPath));
return Buffer.from(data).toString('base64');
}
const api_key = "YOUR API-KEY";
const url = "https://api.segmind.com/v1/ip-sdxl-openpose";
const data = {
"prompt": "ballerina",
"negative_prompt": "lowquality, badquality, sketches",
"samples": 1,
"scheduler": "Euler a",
"num_inference_steps": 25,
"guidance_scale": 7,
"seed": 354849415,
"controlnet_scale": 0.5,
"ip_adapter_scale": 0.5,
"strength": 0.9,
"base64": false,
"input_image": "toB64('https://segmind-sd-models.s3.amazonaws.com/outputs/sdxl_input_openpose.jpg')",
"ip_image": "toB64('https://segmind-sd-models.s3.amazonaws.com/outputs/pose_ip_input.jpeg')"
};
(async function() {
try {
const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } });
console.log(response.data);
} catch (error) {
console.error('Error:', error.response.data);
}
})();
Prompt to render
Prompts to exclude, eg. 'bad anatomy, bad hands, missing fingers'
Number of samples to generate.
min : 1,
max : 4
Type of scheduler.
Allowed values:
Number of denoising steps.
min : 20,
max : 100
Scale for classifier-free guidance
min : 1,
max : 25
Seed for image generation.
min : -1,
max : 999999999999999
Scale for classifier-free guidance
min : 0,
max : 1
Scale for classifier-free guidance
min : 0,
max : 1
Scale for classifier-free guidance
min : 0,
max : 1
Base64 encoding of the output image.
Input Image
Ip Image
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.
IP Adapter Openpose XL is an innovative AI model that redefines the capabilities of the SDXL framework, especially in the realm of human pose and gesture analysis. This model is a fusion of the IP Adapter and the Openpose Preprocessor, designed to create images that are not only visually rich but also contextually detailed, particularly in scenarios involving human subjects.
At the heart of IP Adapter Openpose XL is the integration of two advanced components. The IP Adapter empowers the SDXL model to effectively combine image and text prompts, while the Openpose Preprocessor excels in analyzing and identifying human poses and gestures. This combination ensures accurate interpretation and representation of human figures and their movements in the generated images.
Dual Prompt Integration : Seamlessly combines image and text prompts for intricate image transformations.
Human Pose Analysis:Utilizes the Openpose Preprocessor for precise interpretation of human poses and gestures.
Accurate Human Figure Interpretation:: Ensures faithful representation of human subjects and their movements.
Creative Versatility: Ideal for a wide range of applications, from digital art to scientific visualization.
Digital Art and Illustration: Create complex artworks that blend elements from different images and concepts.
Animation and Film Production: Enhance character design and animation with precise human figure interpretation.
Photography Enhancement: Combine photographic elements with artistic prompts for unique compositions.
Fashion and Design: Visualize fashion designs and concepts with accurately posed human figures.
Personal Projects: Experiment with blending personal photos with creative text prompts for unique creations.