Overview
This endpoint allows you to generate head shot with flux capabilities
Make sure you add your 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 24hoursRequest
POST
request to https://modelslab.com/api/v1/enterprise/flux_headshot/make_gen endpoint and pass the required parameters as a request body to the endpoint.
Body Attributes
Parameter | Description |
---|---|
key | Required. Your API Key used for request authorization |
prompt | Required. Text prompt with description of the things you want in the image to be generated. |
face_image | Required. Link or valid base64 string image. This is the face you want your generations to resemble. |
width | Width of your generated image. Max dimension: 2048 x 2048 |
height | Height of your generated image. Max dimension: 2048 x 2048 |
num_inference_steps | Number of denoising steps. Max step accepted are 26 |
guidance_scale | Scale for classifier-free guidance. Min value accepted is 1.0 and max value is 10.0 |
seed | Required. Seed is used to reproduce results, same seed will give you same image in return again. |
base64 | If provided init_image is in base64 format or if you want your generated images as a base64 string, must be set to true . Default: false . |
webhook | Set an URL to get a POST API call once the image generation is complete. |
track_id | This ID is returned in the response to the webhook API call. This will be used to identify the webhook request. |
Example
Body
BodyRequest
- JS
- PHP
- NODE
- PYTHON
- JAVA