> ## Documentation Index
> Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Head Shot

> This endpoint allows you to generate professional headshots from a face image.

<img src="https://mintcdn.com/mod/Xe_I2k0P2zG5615S/images/enterprise-api/image-editing/assets/images/Head-Shot-f4982ff9247a211781404e0a6badb559.jpg?fit=max&auto=format&n=Xe_I2k0P2zG5615S&q=85&s=8dbdfd5e70119fbcf1c746df29eee70b" alt="Head Shot endpoint result" width="691" height="518" data-path="images/enterprise-api/image-editing/assets/images/Head-Shot-f4982ff9247a211781404e0a6badb559.jpg" />

<Warning>
  Make sure you add your [s3 details](/enterprise-api/general/update-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**
</Warning>

## Request

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

```curl curl theme={null}
--request POST 'https://modelslab.com/api/v1/enterprise/image_editing/head_shot' \
```

## Body

```json json theme={null}
{
  "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

<ParamField body="key" type="string" required>
  Your API Key used for request authorization
</ParamField>

<ParamField body="face_image" type="string" required>
  Link or valid base64 data of the face image for headshot generation
</ParamField>

<ParamField body="prompt" type="string" required>
  Text prompt describing the desired headshot style and appearance
</ParamField>

<ParamField body="negative_prompt" type="string" required>
  Items you don't want in the generated headshot
</ParamField>

<ParamField body="num_inference_steps" type="integer" required>
  Number of denoising steps. Value accepted are 21, 31, or 41
</ParamField>

<ParamField body="guidance_scale" type="number" required>
  Scale for classifier-free guidance
</ParamField>

<ParamField body="seed" type="integer" required>
  Random seed for reproducible results
</ParamField>

<ParamField body="webhook" type="string" required>
  Set an URL to get a POST API call once the image generation is complete
</ParamField>

<ParamField body="track_id" type="string" required>
  This ID is returned in the response to the webhook API call. This will be used to identify the webhook request
</ParamField>
