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.

POST
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
RESPONSE
image/jpeg
HTTP Response Codes
200 - OKImage Generated
401 - UnauthorizedUser authentication failed
404 - Not FoundThe requested URL does not exist
405 - Method Not AllowedThe requested HTTP method is not allowed
406 - Not AcceptableNot enough credits
500 - Server ErrorServer had some issue with processing

Attributes


seedint ( default: 6255 )

Sets the random seed for reproducibility. Use a specific number for repeatability or null for randomness.


widthint ( default: 864 )

Output image width in pixels. Choose 768 for portrait or 960 for landscape.

min : 256,

max : 1280


heightint ( default: 1152 )

Output image height in pixels. Use 960 for standard or 1280 for a more detailed view.

min : 256,

max : 1280


promptstr ( default: 1 )

Input your vision for the image. Example: 'Vibrant sunset over mountains, surreal, dream-like'.


id_imagestr *

Upload a portrait image for processing. Ensure it contains a clear human face.


num_stepsint ( default: 30 )

Controls image refinement steps. Use 30 for good quality, 50 for best details.

min : 1,

max : 100


control_imagestr ( default: 1 )

Optional: Use a secondary image for compositional control. Ideal for consistent layout.


model_versionenum:str ( default: aes_stage2 )

Selects model type. 'aes_stage2' for enhanced aesthetics or 'sim_stage1' for simplicity.

Allowed values:


output_formatenum:str ( default: webp )

Choose the image format. 'webp' for compressibility, 'png' for quality.

Allowed values:


enable_realismbool ( default: true )

Toggle realism enhancement feature. Enable for lifelike representation.


guidance_scalefloat ( default: 3.5 )

Adjustment on prompt adherence. Set higher for precise, lower for creative outputs.

min : 0,

max : 10


output_qualityint ( default: 80 )

Defines the output quality. 80 for general use, 100 for optimal.

min : 1,

max : 100


enable_anti_blurbool ( default: 1 )

Activate to reduce blur. Ideal for sharp, defined structures.


infusenet_guidance_endfloat ( default: 1 )

Defines when identity guidance stops. Generally kept at 1.0 for full application.

min : 0,

max : 1


infusenet_guidance_startfloat ( default: 1 )

Defines when to apply identity guidance. Typical range is 0.0-0.1.

min : 0,

max : 1


infusenet_conditioning_scalefloat ( default: 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

  1. •Provide an ID image (id_image):
    • Clear frontal portrait (minimum 256×256).
  2. •Craft a descriptive prompt (prompt):
    • Include lighting, mood, style.
  3. •Choose a model stage (model_version):
    • sim_stage1 for fast previews
    • aes_stage2 for polished realism
  4. •Adjust resolution (width/height):
    • Portrait: 768×960
    • Landscape/detail: 960×1280
  5. •Set diffusion steps (num_steps):
    • 30 for standard speed
    • 50+ for maximum detail
  6. •Control prompt adherence (guidance_scale):
    • 2–4 for creative variation
    • 5–8 for strict fidelity
  7. •Toggle realism & sharpness:
    • enable_realism=true
    • enable_anti_blur=true
  8. •Fine-tune identity influence:
    • infusenet_conditioning_scale=0.8–1.0
    • infusenet_guidance_start=0.0 and infusenet_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 or infusenet_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.

Cookie settings

We use cookies to enhance your browsing experience, analyze site traffic, and personalize content. By clicking "Accept all", you consent to our use of cookies.