Infinite You
InfiniteYou generates high-fidelity portraits preserving identity while aligning with creative text prompts.
API
If you're looking for an API, you can choose from your desired programming language.
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
38
import requests
api_key = "YOUR_API_KEY"
url = "https://api.segmind.com/v1/infinite-you"
# Prepare data and files
data = {}
files = {}
data['seed'] = 6255
data['width'] = 864
data['height'] = 1152
data['prompt'] = "A sophisticated gentleman exuding confidence. He is dressed in a 1990s brown plaid jacket with a high collar, paired with a dark grey turtleneck. His trousers are tailored and charcoal in color, complemented by a sleek leather belt. The background showcases an elegant library with bookshelves, a marble fireplace, and warm lighting, creating a refined and cozy atmosphere. His relaxed posture and casual hand-in-pocket stance add to his composed and stylish demeanor"
# For parameter "id_image", you can send a raw file or a URI:
# files['id_image'] = open('IMAGE_PATH', 'rb') # To send a file
data['id_image'] = 'https://segmind-resources.s3.amazonaws.com/output/e533504e-4e22-4219-88a1-152e002e1a99-man2.png' # To send a URI
data['num_steps'] = 30
# For parameter "control_image", you can send a raw file or a URI:
# files['control_image'] = open('IMAGE_PATH', 'rb') # To send a file
data['control_image'] = 'null' # To send a URI
data['model_version'] = "aes_stage2"
data['output_format'] = "webp"
data['enable_realism'] = True
data['guidance_scale'] = 3.5
data['output_quality'] = 80
data['enable_anti_blur'] = False
data['infusenet_guidance_end'] = 1
data['infusenet_guidance_start'] = 0
data['infusenet_conditioning_scale'] = 1
headers = {'x-api-key': api_key}
# If no files, send as JSON
if files:
response = requests.post(url, data=data, files=files, headers=headers)
else:
response = requests.post(url, json=data, headers=headers)
print(response.content) # The response is the generated image
Attributes
Sets the random seed for reproducibility. Use a specific number for repeatability or null for randomness.
Output image width in pixels. Choose 768 for portrait or 960 for landscape.
min : 256,
max : 1280
Output image height in pixels. Use 960 for standard or 1280 for a more detailed view.
min : 256,
max : 1280
Input your vision for the image. Example: 'Vibrant sunset over mountains, surreal, dream-like'.
Upload a portrait image for processing. Ensure it contains a clear human face.
Controls image refinement steps. Use 30 for good quality, 50 for best details.
min : 1,
max : 100
Optional: Use a secondary image for compositional control. Ideal for consistent layout.
Selects model type. 'aes_stage2' for enhanced aesthetics or 'sim_stage1' for simplicity.
Allowed values:
Choose the image format. 'webp' for compressibility, 'png' for quality.
Allowed values:
Toggle realism enhancement feature. Enable for lifelike representation.
Adjustment on prompt adherence. Set higher for precise, lower for creative outputs.
min : 0,
max : 10
Defines the output quality. 80 for general use, 100 for optimal.
min : 1,
max : 100
Activate to reduce blur. Ideal for sharp, defined structures.
Defines when identity guidance stops. Generally kept at 1.0 for full application.
min : 0,
max : 1
Defines when to apply identity guidance. Typical range is 0.0-0.1.
min : 0,
max : 1
Controls identity influence. Lower for more creative deviation.
min : 0,
max : 1
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.
Resources to get you started
Everything you need to know to get the most out of Infinite You
InfiniteYou Quick-Start Guide
InfiniteYou is a cutting-edge text-to-image model optimized for identity preservation in portrait and concept art workflows. This guide (â350 words) covers best practices, prompt tips, and recommended parameter sets for common use cases.
1. Core Workflow
- â˘Provide an ID image (
id_image
):
⢠Clear frontal portrait (minimum 256Ă256). - â˘Craft a descriptive prompt (
prompt
):
⢠Include lighting, mood, style. - â˘Choose a model stage (
model_version
):
â˘sim_stage1
for fast previews
â˘aes_stage2
for polished realism - â˘Adjust resolution (
width
/height
):
⢠Portrait: 768Ă960
⢠Landscape/detail: 960Ă1280 - â˘Set diffusion steps (
num_steps
):
⢠30 for standard speed
⢠50+ for maximum detail - â˘Control prompt adherence (
guidance_scale
):
⢠2â4 for creative variation
⢠5â8 for strict fidelity - â˘Toggle realism & sharpness:
â˘enable_realism=true
â˘enable_anti_blur=true
- â˘Fine-tune identity influence:
â˘infusenet_conditioning_scale=0.8â1.0
â˘infusenet_guidance_start=0.0
andinfusenet_guidance_end=1.0
2. Use Case Recipes
A. Personalized Avatars
- â˘Goal: Consistent brand headshots.
- â˘Params:
\{ "model_version": "aes_stage2", "width": 768, "height": 960, "num_steps": 35, "guidance_scale": 5.0, "infusenet_conditioning_scale": 1.0, "enable_realism": true, "enable_anti_blur": true, "output_quality": 90, "output_format": "png" \}
B. Concept Art & Character Design
- â˘Goal: Explore stylized variations while retaining key features.
- â˘Params:
\{ "model_version": "sim_stage1", "width": 960, "height": 1280, "num_steps": 40, "guidance_scale": 3.0, "infusenet_conditioning_scale": 0.5, "enable_realism": false, "enable_anti_blur": false, "output_quality": 80, "output_format": "webp" \}
C. E-commerce & Marketing Renders
- â˘Goal: Lifelike product or model shots.
- â˘Params:
\{ "model_version": "aes_stage2", "width": 960, "height": 960, "num_steps": 45, "guidance_scale": 6.0, "infusenet_conditioning_scale": 0.9, "enable_realism": true, "enable_anti_blur": true, "output_quality": 100, "output_format": "jpg", "control_image": "\<catalog-layout-url\>" \}
3. Tips & Tricks
- â˘Seed for consistency: Set
seed
to reproduce exact outputs. - â˘Control framing: Use
control_image
to lock camera angle and composition. - â˘Balance creativity vs. fidelity: Lower
guidance_scale
orinfusenet_conditioning_scale
for more artistic freedom. - â˘Preview in batches: Start with fewer
num_steps
and switch to higher values once youâve narrowed your style.
By tuning these parameters youâll unlock InfiniteYouâs full potential for identity-preserving, high-fidelity imagery. Enjoy exploring infinite variations of your subject!
Other Popular Models
Discover other models you might be interested in.
sdxl-img2img
SDXL Img2Img is used for text-guided image-to-image translation. This model uses the weights from Stable Diffusion to generate new images from an input image using StableDiffusionImg2ImgPipeline from diffusers

sdxl-controlnet
SDXL ControlNet gives unprecedented control over text-to-image generation. SDXL ControlNet models Introduces the concept of conditioning inputs, which provide additional information to guide the image generation process

fooocus
Fooocus enables high-quality image generation effortlessly, combining the best of Stable Diffusion and Midjourney.

sdxl1.0-txt2img
The SDXL model is the official upgrade to the v1.5 model. The model is released as open-source software
