Skip to main content
Face gen endpoint result
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 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/flux_headshot/make_gen' \

Body Attributes

key
string
required
Required. Your API Key used for request authorization.
prompt
string
required
Required. Text prompt with description of the things you want in the image to be generated.
face_image
string
required
Required. Link or valid base64 string image. This is the face you want your generations to resemble.
width
number
Width of your generated image. Max dimension: 2048 × 2048.
height
number
Height of your generated image. Max dimension: 2048 × 2048.
num_inference_steps
number
Number of denoising steps. Maximum accepted steps: 26.
guidance_scale
number
Scale for classifier-free guidance. Accepted range: 1.0 – 10.0.
seed
number
required
Required. Seed is used to reproduce results, same seed will give you the same image again.
base64
boolean
default:"false"
If provided init_image is in base64 format or if you want generated images as base64 string, set to true. Default: false.
webhook
string
Set a URL to get a POST API call once the image generation is complete.
track_id
string
This ID is returned in the response to the webhook API call. This will be used to identify the webhook request.
I