HeyGen Video 1.0 API reference
5–15-second clips from text with sound, from a photo up to 2K, or from mixed references
Call HeyGen Video 1.0 from your own code with one PopNow API key. Below are the exact model IDs to send, every input field the model accepts, what each request costs in USD, and a request you can paste into a terminal.
At a glance
- Made by
- HeyGen
- Output
- Video
- From
- $0.028 USD per second of output
Prices are in USD, charged to your PopNow balance. A task reserves the maximum possible charge when accepted and settles actual usage on completion; any remainder is released. Failed tasks are not charged. Call POST /api/v1/jobs/quote for an exact quote before running.
Create Video
heygen/video-1/text-to-video
Price
| Option | USD |
|---|---|
480p | $0.028 per second of output |
768p | $0.051 per second of output |
Parameters
| Field | Type | Default | Allowed | What it does |
|---|---|---|---|---|
promptRequired | string | — | up to 32,000 characters | Describe the subject, setting, action, camera and the sound you want, up to 32,000 characters. Put spoken lines in double quotes. |
aspect_ratioOptional | string | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 | Frame shape: 16:9 (default), 9:16, 1:1, 4:3, 3:4 or 21:9. |
resolutionOptional | string | 768p | 480p, 768p | Output size class: 480p or 768p (default). 480p costs less per second. |
duration_secondsOptional | integer | 5 | 5 to 15 | Clip length in whole seconds, 5 to 15. Billed per requested second. |
prompt_optimization_modeOptional | string | disabled | disabled, turbo, quality | Optional prompt rewrite before generation: disabled keeps your text as written, turbo is the quick rewrite, quality the more thorough one. Free. |
seedOptional | integer | — | 0 to 2147483647 | Optional random seed for one-change-at-a-time comparisons. Omit it for a random result. |
Example request
This request runs as it is; any field you leave out uses its default. Put your key in POPNOW_API_KEY first.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "heygen/video-1/text-to-video",
"input": {
"prompt": "A paper boat drifts down a rain-soaked street at dusk, neon signs reflecting in the water, slow tracking shot at ground level",
"duration_seconds": 5,
"resolution": "768p"
}
}'The response carries a taskId straight away. Read the result with GET /api/v1/jobs/recordInfo, or add callBackUrl to be notified.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Image to Video
heygen/video-1/image-to-video
Price
| Option | USD |
|---|---|
480p | $0.028 per second of output |
768p | $0.051 per second of output |
1080p | $0.135 per second of output |
2k | $0.135 per second of output |
Parameters
| Field | Type | Default | Allowed | What it does |
|---|---|---|---|---|
promptRequired | string | — | up to 32,000 characters | Describe what happens after the opening frame: motion, camera, spoken lines in double quotes and the sound, up to 32,000 characters. |
image_urlRequired | string (uri) | — | — | Opening frame. The clip starts exactly on this picture and keeps its proportions at every resolution. |
resolutionOptional | string | 768p | 480p, 768p, 1080p, 2k | Output size class: 480p, 768p (default), 1080p or 2k. 1080p and 2k share a higher per-second rate. |
duration_secondsOptional | integer | 5 | 5 to 15 | Clip length in whole seconds, 5 to 15. Billed per requested second. |
prompt_optimization_modeOptional | string | disabled | disabled, turbo, quality | Optional prompt rewrite before generation: disabled keeps your text as written, turbo is the quick rewrite, quality the more thorough one. Free. |
seedOptional | integer | — | 0 to 2147483647 | Optional random seed for one-change-at-a-time comparisons. Omit it for a random result. |
Example request
This request runs as it is; any field you leave out uses its default. Put your key in POPNOW_API_KEY first.
The example uses PopNow sample files in image_url. Replace them with your own public HTTPS links, uploads or saved assets.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "heygen/video-1/image-to-video",
"input": {
"prompt": "He lands softly on the rooftop, laughs and turns toward the camera while the balloons sway in the evening breeze; slow push-in",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"duration_seconds": 5,
"resolution": "768p"
}
}'The response carries a taskId straight away. Read the result with GET /api/v1/jobs/recordInfo, or add callBackUrl to be notified.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Reference to Video
heygen/video-1/reference-to-video
Price
| Option | USD |
|---|---|
480p | $0.096 per second of output |
768p | $0.135 per second of output |
Parameters
| Field | Type | Default | Allowed | What it does |
|---|---|---|---|---|
promptRequired | string | — | up to 32,000 characters | Describe the new scene and point at each reference with its label: <Picture 1>, <Video 1>, <Audio 1>. Images, videos and audio are numbered separately, in upload order. |
reference_image_urlsOptional | array<string (uri)> | — | up to 9 items | Up to nine pictures of people, products or places, named <Picture 1>, <Picture 2> and so on. The first two are included; each further image adds a charge. |
reference_video_urlsOptional | array<string (uri)> | — | up to 3 items | Up to three clips for motion or a setting, named <Video 1> and so on, 15 seconds in total. Every uploaded second is billed like an output second. |
reference_audio_urlsOptional | array<string (uri)> | — | up to 3 items | Up to three voice or sound clips, named <Audio 1> and so on. Needs at least one picture or video beside it. Free. |
aspect_ratioOptional | string | 16:9 | 16:9, 9:16 | Frame shape: 16:9 (default) or 9:16. |
resolutionOptional | string | 768p | 480p, 768p | Output size class: 480p or 768p (default). 480p costs less per second. |
duration_secondsOptional | integer | 5 | 5 to 15 | Clip length in whole seconds, 5 to 15. Billed per requested second. |
prompt_optimization_modeOptional | string | disabled | disabled, turbo, quality | Optional prompt rewrite before generation: disabled keeps your text as written, turbo is the quick rewrite, quality the more thorough one. Free. |
seedOptional | integer | — | 0 to 2147483647 | Optional random seed for one-change-at-a-time comparisons. Omit it for a random result. |
Example request
This request runs as it is; any field you leave out uses its default. Put your key in POPNOW_API_KEY first.
The example uses PopNow sample files in reference_image_urls. Replace them with your own public HTTPS links, uploads or saved assets.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "heygen/video-1/reference-to-video",
"input": {
"prompt": "The man from the reference image jogs across a sunlit rooftop at golden hour and smiles at the camera; smooth tracking shot",
"reference_image_urls": [
"https://media.popnow.ai/influencer/examples/ava.webp"
],
"duration_seconds": 5,
"resolution": "768p"
}
}'The response carries a taskId straight away. Read the result with GET /api/v1/jobs/recordInfo, or add callBackUrl to be notified.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
