
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 24hoursRequest
Make aPOST
request to below endpoint and pass the required parameters as a request body to the endpoint.
curl
Body
json
Body Attributes
Your API Key used for request authorization.
Text prompt with description of the things you want in the image to be generated.
Link or valid base64 data (data:image/jpeg;base64,) of the face you want generations to resemble.
Whether to run the safety checker to prevent NSFW image generation.
Modify image if NSFW images are found. Options: blur, sensitive_content_text, pixelate, black.
Width of your generated image. Max dimension: 512 x 768.
Height of your generated image. Max dimension: 512 x 768.
Number of denoising steps. Accepted values: 21, 31, 41.
Scale for classifier-free guidance.
Adjust the weight of the face structure. Range: 0.0 to 2.0.
Seed used to reproduce results. Same seed will generate the same image again.
Number of images to be returned in response. Max: 2.
If true, face_image is in base64 format or output images will be returned as base64 strings.
URL to receive a POST call once image generation is complete.
ID returned in the webhook API call to identify the request.