headshot-generation-of-qwen-image-editGenerate a professional headshot from a person image using Qwen-Image-Edit. An example for the prompt is "Professional headshot image of the reference subject in a studio".
/v1/images/generates/headshotCredit cost: 21
Authorization — This endpoint requires an API key. Pass it in the api-key header on every request. See the quickstart
| Name | Type | Status | Description |
|---|---|---|---|
input_image | file | Required | Person image file or URL to transform into a headshot. |
prompt | string | Required | Prompt for outfit, background, lighting, or style preferences. |
Image generated successfullySingleImageResponse
| Name | Type | Description |
|---|---|---|
created | integer | Unix timestamp of when the response was created |
data | object[] | |
url | string | URL to download the result image |
curl -X POST "https://api.snapapi.ai/v1/images/generates/headshot" \
-H "api-key: YOUR_API_KEY" \
-F "input_image=@./image.jpg" \
-F "prompt=value"{
"created": 1745827200,
"data": [
{
"url": "https://outputs.snapapi.ai/outputs/abc123.png"
}
]
}