Skip to main content
POST
Head shot generator
Image url generated will not be accessible after 24 hours, kindly save your image generations accordingly

Head Shot

Head-Shot endpoint result

Request

Make a POST request to below endpoint and pass the required parameters as a request body to the endpoint.
curl

Body

json

Body

application/json
key
string
required

Your API Key used for request authorization

prompt
string
required

Text prompt describing the content you want in the generated image

face_image
string
required

Link or valid base64 data of the face you want your generations to resemble

width
integer

Width of your generated image, If not provide width of face_image is used

Required range: x <= 512
height
integer

Height of your generated image, If not provide height of face_image is used

Required range: x <= 768
num_inference_steps
enum<integer>

Number of denoising steps

Available options:
21,
31,
41
guidance_scale
integer

Scale for classifier-free guidance

Required range: 1 <= x <= 5
s_scale
number
default:1

Adjust the weight of the face structure

Required range: 0 <= x <= 2
samples
integer

The number of images to be returned in response

Required range: x <= 2
safety_checker
boolean

Whether to run the safety checker

safety_checker_type
enum<string>
Available options:
black,
blur,
sensitive_content_text,
pixelate
base64
boolean
default:false

Set to true for base64 response

webhook
string<uri>

URL to receive POST API call when complete

track_id
integer

ID for webhook identification

Response

200 - application/json

Head shot response

status
enum<string>
Available options:
success
generationTime
number

Time taken to generate the image in seconds

id
integer

Unique identifier for the generation request

output
string<uri>[]

Array of generated image URLs

Array of proxy image URLs

meta
object

Metadata about the generation process