Head Shot endpoint result
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 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/image_editing/head_shot' \

Body

json
{
  "key": "your_api_key",
  "face_image": "https://example.com/face-image.jpg",
  "prompt": "professional headshot, business attire, studio lighting",
  "negative_prompt": "blurry, low quality, distorted",
  "num_inference_steps": "21",
  "guidance_scale": 7.5,
  "seed": null,
  "webhook": null,
  "track_id": null
}

Body Attributes

key
string
required
Your API Key used for request authorization
face_image
string
required
Link or valid base64 data of the face image for headshot generation
prompt
string
required
Text prompt describing the desired headshot style and appearance
negative_prompt
string
required
Items you don’t want in the generated headshot
num_inference_steps
integer
required
Number of denoising steps. Value accepted are 21, 31, or 41
guidance_scale
number
required
Scale for classifier-free guidance
seed
integer
required
Random seed for reproducible results
webhook
string
required
Set an URL to get a POST API call once the image generation is complete
track_id
string
required
This ID is returned in the response to the webhook API call. This will be used to identify the webhook request