Create HeyGen Image
Generate one to five portraits with identity_remix, the default and only supported mode. Provide one to five identity_images and exactly one item in reference_images. The output preserves the identity while following the reference image’s clothing, pose, composition, and background. Returns a generation_id to poll. The job completes when all requested images are available; partial results are not returned.
Authorizations
HeyGen API key. Obtain from your HeyGen dashboard.
Headers
Optional client-supplied key for safely retrying mutations. Subsequent calls within 24 hours that share this key replay the original response — even if the request body differs slightly (a warning is logged). A retry that arrives while the original is still in flight gets a 409 request_in_progress. Keys must be 1–255 characters from [A-Za-z0-9_:.-]; a UUID is a safe default. Scope is per-endpoint and per-resource: the same key on a different route or path parameter is independent.
1 - 255^[A-Za-z0-9_\-:.]{1,255}$Body
Required identity-focused image model. Only heygen-image-1 is supported.
"heygen-image-1"One to five images of the identity to preserve.
1 - 5 elementsAsset input via publicly accessible HTTPS URL.
- AssetUrl
- AssetId
- AssetBase64
Supply exactly one image whose clothing, pose, composition, and background should guide the result.
1 elementAsset input via publicly accessible HTTPS URL.
- AssetUrl
- AssetId
- AssetBase64
Generation operation. Only identity_remix is supported. Defaults to identity_remix when omitted.
"identity_remix"Output aspect ratio. Omit to match the reference image after EXIF orientation. Explicit presets are exact; inferred ratios round to the nearest pixel. Output resolution follows the model's canvas policy; read width and height from each result.
1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9 Number of images to generate in this job. Supports one to five.
1 <= x <= 5Seed for the first image. Each subsequent image increments the seed by one. A random seed is chosen when omitted.
0 <= x <= 4294967295Response
Accepted — submission acknowledged; poll for completion.

