API Reference

Generate professional headshot from image

Generate 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".

Model:headshot-generation-of-qwen-image-edit
Credit:21
post/v1/images/generates/headshot

AuthorizationThis endpoint requires an API key. Pass it in the api-key header on every request. Learn more

Parameters

NameTypeStatusDescription
input_image
fileRequiredPerson image file or URL to transform into a headshot.
prompt
stringRequiredPrompt for outfit, background, lighting, or style preferences.

Responses

Image generated successfullySingleImageResponse

FieldTypeDescription
createdintegerUnix timestamp of when the response was created
dataobject[]
urlstringURL to download the result image
curl -X POST "https://api.snapedit.app/v1/images/generates/headshot" \
  -H "api-key: YOUR_API_KEY" \
  -F "input_image=@./image.jpg" \
  -F "prompt=value"
Response
{
  "created": 1745827200,
  "data": [
    {
      "url": "https://outputs.snapedit.app/outputs/abc123.png"
    }
  ]
}

Examples (1 example)

Prompt

Professional high-end editorial headshot of the reference subject, modern "quiet luxury" aesthetic. Perfectly tailored charcoal suit, crisp white shirt, understated watch and ring.

Input

Input 1

Output

Output