
Make sure you add your s3 details for
image_editing
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 which follows
data:image/jpeg;base64,{your_base64_string}
to the image of the face you want your generations to resemble.Width of your generated image. Max dimension: 512 x 768
Height of your generated image. Max dimension: 512 x 768
Number of denoising steps. Value accepted are 21, 31, or 41
Scale for classifier-free guidance.
This is required to generate output image in particular style. Default value is
realistic
. Options: comic
, chibi
, 3d
, anime
, realistic
Adjust the weight of the face structure [float] [0.0 to 2.0] [default 1.0].
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.
Whether to run the safety checker to prevent NSFW image generation. One of
true
or false
.Must be one of
black
, blur
, sensitive_content_text
, pixelate
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
.Set an URL to get a POST API call once the image generation is complete.
This ID is returned in the response to the webhook API call. This will be used to identify the webhook request.