Face gen endpoint result
Make sure you add your s3 details for face_gen server, so you can receive image generated in your bucket. Images generated without s3 details being added will be delete after 24hours

Request

Make a POST request to below endpoint and pass the required parameters as a request body to the endpoint.
curl
--request POST 'https://modelslab.com/api/v1/enterprise/face_gen/make_gen' \

Body

json
{  
  "key": "enterprise_api_key",  
  "prompt": "pretty woman",  
  "negative_prompt": "anime, cartoon, drawing, big nose, long nose, fat, ugly, big lips, big mouth, face proportion mismatch, unrealistic, monochrome, lowres, bad anatomy, worst quality, low quality, blurry",  
  "face_image":"https://media.allure.com/photos/647f876463cd1ef47aab9c88/3:2/w_2465,h_1643,c_limit/angelina%20jolie%20blonde%20hair%20chloe.jpg",  
  "width": "512",  
  "height": "512",  
  "samples": "1",  
  "num_inference_steps": "21",  
  "safety_checker": false,  
  "s_scale":1.0,  
  "seed":1234,  
  "safety_checker_type":"blur",  
  "base64": false,  
  "guidance_scale": 7.5,  
  "webhook": null,  
  "track_id": null
}

Body Attributes

key
string
required
Your API Key used for request authorization.
prompt
string
required
Text prompt with description of the things you want in the image to be generated.
face_image
string
required
Link or valid base64 data (data:image/jpeg;base64,) of the face you want generations to resemble.
safety_checker
bool
required
Whether to run the safety checker to prevent NSFW image generation.
safety_checker_type
string
default:"sensitive_content_text"
Modify image if NSFW images are found. Options: blur, sensitive_content_text, pixelate, black.
width
number
Width of your generated image. Max dimension: 512 x 768.
height
number
Height of your generated image. Max dimension: 512 x 768.
num_inference_steps
number
Number of denoising steps. Accepted values: 21, 31, 41.
guidance_scale
number
Scale for classifier-free guidance.
s_scale
number
default:"1.0"
required
Adjust the weight of the face structure. Range: 0.0 to 2.0.
seed
number
required
Seed used to reproduce results. Same seed will generate the same image again.
samples
number
default:"1"
Number of images to be returned in response. Max: 2.
base64
bool
default:"false"
If true, face_image is in base64 format or output images will be returned as base64 strings.
webhook
string
URL to receive a POST call once image generation is complete.
track_id
string
ID returned in the webhook API call to identify the request.