> ## 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.

# Flux Head Shot

> This endpoint allows you to generate head shot with flux capabilities.

<img src="https://mintcdn.com/mod/Xe_I2k0P2zG5615S/images/enterprise-api/flux-headshot/assets/images/Face-Gen-90cdf5a0be5cc4e52b36cfcc87d9fb29.jpg?fit=max&auto=format&n=Xe_I2k0P2zG5615S&q=85&s=135a190a420bf908b5a249bd2cea6a77" alt="Face gen endpoint result" width="691" height="518" data-path="images/enterprise-api/flux-headshot/assets/images/Face-Gen-90cdf5a0be5cc4e52b36cfcc87d9fb29.jpg" />

<Warning>
  Make sure you add your [s3 details](/enterprise-api/general/update-s3-details) for `flux_headshot` 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/flux_headshot/make_gen' \
```

## Body

```json json theme={null}
{
   "key": "your_api_key",
   "prompt": "pretty woman",
   "negative_prompt": "anime, cartoon, drawing, big nose, long nose, fat, ugly, big lips, big mouth, face proportion mismatch, unrealistic, monochrome, lowres, bad anatomy, worst quality, low quality, blurry",
   "face_image":"https://assets.modelslab.ai/generations/dadf8fb5-ee78-4038-b0d7-3dde65547217",
   "width": "1024",
   "height": "1024",
   "num_inference_steps": "21",
   "seed":null,
   "guidance_scale": 7.5,
   "webhook": null,
   "track_id": null
}
```

## Body Attributes

<ParamField query="key" type="string" required placeholder="Your API key">
  Required. Your API Key used for request authorization.
</ParamField>

<ParamField query="prompt" type="string" required placeholder="Text prompt">
  Required. Text prompt with description of the things you want in the image to be generated.
</ParamField>

<ParamField query="face_image" type="string" required placeholder="Face image URL or base64">
  Required. Link or valid base64 string image. This is the face you want your generations to resemble.
</ParamField>

<ParamField query="width" type="number" placeholder="Width in px">
  Width of your generated image. Max dimension: 2048 × 2048.
</ParamField>

<ParamField query="height" type="number" placeholder="Height in px">
  Height of your generated image. Max dimension: 2048 × 2048.
</ParamField>

<ParamField query="num_inference_steps" type="number" placeholder="1-26">
  Number of denoising steps. Maximum accepted steps: 26.
</ParamField>

<ParamField query="guidance_scale" type="number" placeholder="1.0-10.0">
  Scale for classifier-free guidance. Accepted range: 1.0 – 10.0.
</ParamField>

<ParamField query="seed" type="number" required placeholder="Seed number">
  Required. Seed is used to reproduce results, same seed will give you the same image again.
</ParamField>

<ParamField query="base64" type="boolean" default="false">
  If provided `init_image` is in base64 format or if you want generated images as base64 string, set to <code>true</code>. Default: <code>false</code>.
</ParamField>

<ParamField query="webhook" type="string" placeholder="Webhook URL">
  Set a URL to get a POST API call once the image generation is complete.
</ParamField>

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