# Flux Headshot > Generate ultra-realistic headshots instantly with advanced image generation and facial optimization, supporting resolutions up to 1024x1024. ## Overview - **Model ID**: `flux-headshot` - **Category**: image - **Provider**: modelslab - **Status**: active - **Screenshot**: `https://assets.modelslab.com/generations/0c5cf357-16cb-42a5-974e-a5dd6a679dfa.webp` ## API Information This model can be used via our HTTP API. See the API documentation and usage examples below. ### Endpoint - **URL**: `https://modelslab.com/api/v6/image_editing/flux_headshot` - **Method**: POST ### Parameters - **`prompt`** (required): 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 - Type: textarea - Example: Enter label - **`face_image`** (required): Required. Link or valid base64 string image. This is the face you want your generations to resemble. - Type: file ( "image/jpeg,image/png") - Example: Enter Url - **`negative_prompt`** (optional): Negative Prompt - Type: textarea - Example: Enter negative prompt ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v6/image_editing/flux_headshot \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "flux-headshot", "prompt": "a beautiful woman, wearing pirate costume, on pirate boat, ocean in the background", "face_image": "https://assets.modelslab.com/generations/373b4973-c74b-4096-9fa9-51558f463b7d", "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" }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v6/image_editing/flux_headshot", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "flux-headshot", "prompt": "a beautiful woman, wearing pirate costume, on pirate boat, ocean in the background", "face_image": "https://assets.modelslab.com/generations/373b4973-c74b-4096-9fa9-51558f463b7d", "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" } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v6/image_editing/flux_headshot", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "flux-headshot", "prompt": "a beautiful woman, wearing pirate costume, on pirate boat, ocean in the background", "face_image": "https://assets.modelslab.com/generations/373b4973-c74b-4096-9fa9-51558f463b7d", "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" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/flux-headshot/flux-headshot) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)