Heygen Video 1.0 Image To Video API Documentation
Playground
Try it on WaveSpeedAI!HeyGen Video 1.0 Image-to-Video animates a starting image into high-quality AI video with prompt-guided motion, automatic aspect-ratio matching, and output up to 2K for creative content, marketing videos, social media, and production workflows. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Features
HeyGen Video 1.0 Image-to-Video animates a starting image with prompt-guided motion and camera movement. Upload an image, describe how the subject and scene should move, then choose a duration and output resolution up to 2K.
The generated video follows the input image’s aspect ratio, making it suitable for product animation, character motion, creative concepts, and short-form visual storytelling.
Why Choose This?
-
Image-to-video generation
Turn a still image into a prompt-guided video. -
Prompt-guided motion
Describe subject movement, scene progression, and camera behavior. -
Up to 2K output
Choose480p,768p,1080p, or2k. -
Automatic framing
The generated video follows the aspect ratio of the input image. -
Prompt enhancement
Choosedisabled,turbo, orqualitydepending on how much prompt enhancement you want. -
Seed control
Use a fixed seed when comparing prompt or parameter variations.
Parameters
| Parameter | Required | Description |
|---|---|---|
| image | Yes | Starting image URL or upload used as the first frame of the generated video. |
| prompt | Yes | Text description of the desired action, motion, and camera movement. Supports up to 32000 characters. |
| duration | No | Video duration in whole seconds. Range: 5–15. Default: 5. |
| resolution | No | Output resolution: 480p, 768p, 1080p, or 2k. Default: 768p. |
| prompt_enhancement | No | Prompt enhancement mode: disabled, turbo, or quality. Default: disabled. |
| seed | No | Optional integer seed. Omit for automatic selection. |
How to Use
- Upload an image — Provide the starting frame for the video.
- Describe the motion — Explain how the subject, environment, and camera should move.
- Set duration — Choose a video length from
5to15seconds. - Choose resolution — Select
480p,768p,1080p, or2k. - Configure prompt enhancement optional — Use
turboorqualitywhen additional prompt enhancement is useful. - Set seed optional — Use a fixed seed when reproducibility is needed.
- Submit — Generate and retrieve the animated video.
Pricing
Pricing is based on the requested duration and selected resolution.
| Resolution | Price per Second | 5s | 10s | 15s |
|---|---|---|---|---|
| 480p | $0.020 | $0.10 | $0.20 | $0.30 |
| 768p | $0.036 | $0.18 | $0.36 | $0.54 |
| 1080p | $0.100 | $0.50 | $1.00 | $1.50 |
| 2K | $0.100 | $0.50 | $1.00 | $1.50 |
prompt_enhancement and seed do not add separate charges.
Best Use Cases
- Product animation — Add movement and camera motion to product images.
- Portrait and character animation — Bring people, characters, or illustrations into motion.
- Creative concepts — Animate concept art, campaign visuals, and scene designs.
- Social media content — Turn static assets into short-form video content.
- Visual storytelling — Extend a still composition into a moving scene.
- Promotional videos — Animate marketing and advertising imagery for campaigns.
Pro Tips
- Use a clear source image with the subject and composition already close to the desired result.
- Focus the prompt on motion, action, and camera behavior instead of repeating everything visible in the image.
- Keep the main action clear and consistent with the source image.
- Use
480pfor lower-cost testing before moving to higher resolutions. - Leave
prompt_enhancement=disabledwhen you want the model to follow your original wording more directly. - Use a fixed
seedwhen comparing prompt or setting changes.
Notes
imageandpromptare required.durationsupports whole-second values from5to15.durationdefaults to5.resolutiondefaults to768p.- Output framing follows the input image’s aspect ratio.
- Additional image, video, or audio references are not supported.
prompt_enhancementdefaults todisabled.- A fixed seed can help compare variations but does not guarantee identical output.
Related Models
- HeyGen Video 1.0 Text-to-Video — Generate videos directly from text prompts.
- HeyGen Video 1.0 Image-to-Video — Animate an input image with prompt-guided motion and camera movement.
Authentication
For authentication details, please refer to the Authentication Guide.
API Endpoints
Submit Task & Query Result
set -euo pipefail
export WAVESPEED_API_KEY="your-api-key"
REQUEST_BODY=$(cat <<'JSON'
{
"image": "https://interactive-examples.mdn.mozilla.net/media/cc0-images/painted-hand-298-332.jpg",
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"duration": 5,
"resolution": "768p",
"prompt_enhancement": "disabled"
}
JSON
)
# 1. Submit the prediction.
SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
-X POST "https://api.wavespeed.ai/api/v3/heygen/video-1.0/image-to-video" \
-H "Authorization: Bearer ${WAVESPEED_API_KEY}" \
-H "Content-Type: application/json" \
-d "${REQUEST_BODY}")
TASK=$(printf '%s' "${SUBMIT_RESPONSE}" | jq 'if type == "object" and has("data") then .data else . end')
PREDICTION_ID=$(printf '%s' "${TASK}" | jq -r '.id // empty')
if [ -z "${PREDICTION_ID}" ]; then
printf 'Submission response did not contain a prediction id
' >&2
exit 1
fi
RESULT_URL="https://api.wavespeed.ai/api/v3/predictions/${PREDICTION_ID}/result"
# 2. Poll until the prediction finishes.
while true; do
RESPONSE=$(curl --silent --show-error --fail-with-body \
"${RESULT_URL}" \
-H "Authorization: Bearer ${WAVESPEED_API_KEY}")
RESULT=$(printf '%s' "${RESPONSE}" | jq 'if type == "object" and has("data") then .data else . end')
STATUS=$(printf '%s' "${RESULT}" | jq -r '.status // empty')
case "${STATUS}" in
completed) printf '%s\n' "${RESULT}" | jq '.outputs'; break ;;
failed|cancelled|timeout|deleted) printf '%s\n' "${RESULT}" | jq . >&2; exit 1 ;;
*) sleep 2 ;;
esac
doneParameters
Task Submission Parameters
Request Parameters
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
| image | string | Yes | 1 ~ unlimited characters | First-frame image. The output follows its aspect ratio. | |
| prompt | string | Yes | 1 ~ 32000 characters | Describe the scene, action, and camera movement. | |
| duration | integer | No | 5 | 5 ~ 15 · step 1 | Requested video duration in seconds. |
| resolution | string | No | 768p | 480p, 768p, 1080p, 2k | Output video resolution. |
| prompt_enhancement | string | No | disabled | disabled, turbo, quality | Optional prompt enhancement. Disabled by default. |
| seed | integer | No | - | 0 ~ 2147483647 | Random seed. Omit for a random result. |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data.id | string | Unique identifier for the prediction, Task Id |
| data.model | string | Model ID used for the prediction |
| data.outputs | array | Output values, usually URL strings; some models return text strings or structured result objects (empty when status is not completed) |
| data.urls | object | Object containing related API endpoints |
| data.status | string | Task status. completed is successful; failed, cancelled, timeout, and deleted are failure terminal statuses. |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |
Result Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Yes | - | Task ID |
Result Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data | object | The prediction data object containing all details |
| data.id | string | Unique identifier for the prediction |
| data.model | string | Model ID used for the prediction |
| data.outputs | array<string | object> | Array of generated outputs (empty when status is not completed). Items are usually URL strings, but may be text strings or structured result objects, depending on the model. |
| data.urls | object | Object containing related API endpoints |
| data.status | string | Status: completed is successful; failed, cancelled, timeout, and deleted are failure terminal statuses |
| data.created_at | string | ISO timestamp of when the request was created |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |