PuLID

Novel tuning-free ID customization method for text-to-image generation.

Playground

Try the model in real time below.

Face_Image
realvis_xl.jpeg selected

Files up to 2MB

output image


Examples

Check out what others have created with PuLID
Example preview

anime middle aged professional guy

seed: 451312

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 import requests api_key = "YOUR_API_KEY" url = "https://api.segmind.com/v1/pulid-base" # Prepare data and files data = {} files = {} data['seed'] = 451312 data['width'] = 1024 data['height'] = 1024 data['prompt'] = "anime middle aged professional guy" # For parameter "face_image", you can send a raw file or a URI: # files['face_image'] = open('IMAGE_PATH', 'rb') # To send a file # data['face_image'] = 'IMAGE_URI' # To send a URI data['face_style'] = "high-fidelity" data['output_format'] = "png" data['output_quality'] = 80 data['negative_prompt'] = "None" data['checkpoint_model'] = "general - dreamshaperXL_alpha2Xl10" data['number_of_images'] = 1 headers = {'x-api-key': api_key} response = requests.post(url, data=data, files=files, 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: -1 )

Set a seed for reproducibility. Random by default.


widthint ( default: 1024 )

Width of the output image (ignored if structure image given)


heightint ( default: 1024 )

Height of the output image (ignored if structure image given)


promptstr ( default: anime middle aged professional guy )

You might need to include a gender in the prompt to get the desired result


face_imagestr *

The face image to use for the generation


face_styleenum:str ( default: high-fidelity )

An enumeration.

Allowed values:


output_formatenum:str ( default: webp )

An enumeration.

Allowed values:


output_qualityint ( default: 80 )

Quality of the output images, from 0 to 100. 100 is best quality, 0 is lowest quality.

min : 0,

max : 100


negative_promptstr ( default: None )

Things you do not want to see in your image


checkpoint_modelenum:str ( default: general - dreamshaperXL_alpha2Xl10 )

An enumeration.

Allowed values:


number_of_imagesint ( default: 1 )

Number of images to generate

min : 1,

max : 10

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.


Pricing

Serverless Pricing

Buy credits that can be used anywhere on Segmind

$ 0.0038 /per second
FEATURES

PixelFlow allows you to use all these features

Unlock the full potential of generative AI with Segmind. Create stunning visuals and innovative designs with total creative control. Take advantage of powerful development tools to automate processes and models, elevating your creative workflow.

Segmented Creation Workflow

Gain greater control by dividing the creative process into distinct steps, refining each phase.

Customized Output

Customize at various stages, from initial generation to final adjustments, ensuring tailored creative outputs.

Layering Different Models

Integrate and utilize multiple models simultaneously, producing complex and polished creative results.

Workflow APIs

Deploy Pixelflows as APIs quickly, without server setup, ensuring scalability and efficiency.

PuLID: Pure ID Customization via Contrastive Alignment

Pure and Lightning ID customization (PuLID) is a novel tuning-free ID customization method for text-to-image generation. By incorporating a Lightning T2I branch with a standard diffusion one, PuLID introduces both contrastive alignment loss and accurate ID loss, minimizing disruption to the original model and ensuring high ID fidelity.

Experiments show that PuLID achieves superior performance in both ID fidelity and editability. Another attractive property of PuLID is that the image elements (e.g., background, lighting, composition, and style) before and after the ID insertion are kept as consistent as possible.

F.A.Q.

Frequently Asked Questions

Take creative control today and thrive.

Start building with a free account or consult an expert for your Pro or Enterprise needs. Segmind's tools empower you to transform your creative visions into reality.

Pixelflow Banner