
Request
Make aPOST request to below endpoint and pass the required parameters as a request body to the endpoint.
curl
Body
json
Body Attributes
string
required
Your API Key used for request authorization
string
required
Text prompt with description of the things you want in the image to be generated.
string
required
Link or valid base64 data which follows
data:image/jpeg;base64,{your_base64_string} to the image of the face you want your generations to resemble.integer
required
Width of your generated image. Max dimension: 512 x 768
integer
required
Height of your generated image. Max dimension: 512 x 768
integer
required
Number of denoising steps. Value accepted are 21, 31, or 41
number
required
Scale for classifier-free guidance.
string
required
This is required to generate output image in particular style. Default value is
realistic. Options: comic, chibi, 3d, anime, realisticnumber
required
Adjust the weight of the face structure [float] [0.0 to 2.0] [default 1.0].
integer
required
The number of images to be returned in response. The maximum value is 2. Note: For resolutions such as 512x768, one sample will be generated.
boolean
required
Whether to run the safety checker to prevent NSFW image generation. One of
true or false.string
required
Must be one of
black, blur, sensitive_content_text, pixelateboolean
required
If provided face_image is in base64 format or if you want your generated images as a base64 string, must be set to
true. Default: false.string
required
Set an URL to get a POST API call once the image generation is complete.
string
required
This ID is returned in the response to the webhook API call. This will be used to identify the webhook request.

