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

### Flux Headshot

<img src="https://mintcdn.com/mod/i8dYICFkuz1vpdrI/images/image-editing/assets/images/Face-Gen-90cdf5a0be5cc4e52b36cfcc87d9fb29.jpg?fit=max&auto=format&n=i8dYICFkuz1vpdrI&q=85&s=a2a238f5be8c32772d9913cef2aacbf8" alt="Face gen endpoint result" width="691" height="518" data-path="images/image-editing/assets/images/Face-Gen-90cdf5a0be5cc4e52b36cfcc87d9fb29.jpg" />

## 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/v6/image_editing/flux_headshot' \
```

## 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
}
```


## OpenAPI

````yaml POST /image_editing/flux_headshot
openapi: 3.1.0
info:
  title: ModelsLab Image Editing API
  description: >-
    Image editing endpoints for ModelsLab API including background removal,
    super resolution, face generation, fashion try-on, and various image
    manipulation tools
  license:
    name: MIT
  version: 6.0.0
servers:
  - url: https://modelslab.com/api/v6
    description: Image Editing API v6 server
security: []
paths:
  /image_editing/flux_headshot:
    post:
      summary: Flux head shot generator
      description: >-
        This endpoint allows you to generate head shot with flux capabilities
        (Enterprise feature)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FluxHeadshotRequest'
      responses:
        '200':
          description: Flux headshot response
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/ImageEditingSuccessResponse'
                  - $ref: '#/components/schemas/ImageEditingProcessingResponse'
                  - $ref: '#/components/schemas/ImageEditingErrorResponse'
components:
  schemas:
    FluxHeadshotRequest:
      type: object
      required:
        - key
        - prompt
        - face_image
        - seed
      properties:
        key:
          type: string
          description: Your API Key used for request authorization
        prompt:
          type: string
          description: Text prompt with description of the things you want in the image
        face_image:
          type: string
          description: Link or valid base64 string image for the face
        width:
          type: integer
          maximum: 1024
          description: >-
            Width of your generated image, If not provided, the width of
            face_image is used
        height:
          type: integer
          maximum: 1024
          description: >-
            Height of your generated image, If not provided, the height of
            face_image is used
        num_inference_steps:
          type: integer
          maximum: 26
          description: Number of denoising steps
        guidance_scale:
          type: number
          minimum: 1
          maximum: 10
          description: Scale for classifier-free guidance
        seed:
          type: integer
          description: Seed is used to reproduce results
        webhook:
          type: string
          format: uri
          description: URL to receive POST API call when complete
        track_id:
          type: integer
          description: ID for webhook identification
    ImageEditingSuccessResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - success
        generationTime:
          type: number
          description: Time taken to generate the image in seconds
        id:
          type: integer
          description: Unique identifier for the generation request
        output:
          type: array
          items:
            type: string
            format: uri
          description: Array of generated image URLs
        proxy_links:
          type: array
          items:
            type: string
            format: uri
          description: Array of proxy image URLs
        meta:
          type: object
          description: Metadata about the generation process
          additionalProperties: true
    ImageEditingProcessingResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - processing
        tip:
          type: string
          description: Information about the processing status
        eta:
          type: integer
          description: Estimated time remaining in seconds
        message:
          type: string
          description: Processing status message
        fetch_result:
          type: string
          format: uri
          description: URL to fetch the result when ready
        id:
          type: integer
          description: Unique identifier for the generation request
        output:
          type: array
          items:
            type: string
          description: Empty array during processing
        future_links:
          type: array
          items:
            type: string
            format: uri
          description: Array of future image URLs
        proxy_links:
          type: array
          items:
            type: string
            format: uri
          description: Array of proxy image URLs
        meta:
          type: object
          description: Metadata about the generation process
          additionalProperties: true
    ImageEditingErrorResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - error
        message:
          type: string
          description: Error message describing what went wrong

````