HeyGen Video - Image to Video
Animate a first frame into video with HeyGen Video. The output aspect ratio follows the image, so there is no ratio field.
Endpoint
Request Headers
| Field | Value |
|---|---|
| API-KEY | <api-key> |
| Content-Type | application/json |
Request Parameters
| Field Name | Type | Example | Description | Required |
|---|---|---|---|---|
| type | string | IMAGE_TO_VIDEO | Feature identifier | ✔️ |
| model | string | heygen/heygen-video-1 | AI model to use | ✔️ |
| conversationId | string | IMAGE_TO_VIDEO | Conversation context | ✔️ |
| promptObject.imageUrl | string | images/first.png | S3 object key (not a public URL) returned by the Asset API — upload the file first, then pass the returned path. The first frame to animate | ✔️ |
| promptObject.prompt | string | The cat rides the wave toward the camera | Text description guiding the animation. 1-32000 characters | ✔️ |
| promptObject.resolution | string | 768p | Output resolution: 480p, 768p or 2K | ✔️ |
| promptObject.duration | number | 5 | Video duration in seconds, an integer from 5 to 15 | ✔️ |
| promptObject.seed | number | 12345 | Random seed for reproducible generation. Integer from 0 to 4294967295 | ❌ |
| promptObject.prompt_enhancement | string | quality | How the prompt is expanded before generation: turbo (fastest), quality (default, balanced) or disabled (prompt sent exactly as written). Sent to the provider as prompt_enhancement | ❌ |
Code Examples
- cURL
- JavaScript
- Python
curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "IMAGE_TO_VIDEO",
"model": "heygen/heygen-video-1",
"conversationId": "IMAGE_TO_VIDEO",
"promptObject": {
"imageUrl": "images/first.png",
"prompt": "The cat rides the wave toward the camera",
"resolution": "768p",
"duration": 5
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'IMAGE_TO_VIDEO',
model: 'heygen/heygen-video-1',
conversationId: 'IMAGE_TO_VIDEO',
promptObject: {
imageUrl: 'images/first.png',
prompt: 'The cat rides the wave toward the camera',
resolution: '768p',
duration: 5
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
data = {
"type": "IMAGE_TO_VIDEO",
"model": "heygen/heygen-video-1",
"conversationId": "IMAGE_TO_VIDEO",
"promptObject": {
"imageUrl": "images/first.png",
"prompt": "The cat rides the wave toward the camera",
"resolution": "768p",
"duration": 5
}
}
response = requests.post(url, headers=headers, json=data)
Response
{
"aiRecord": {
"model": "heygen/heygen-video-1",
"type": "IMAGE_TO_VIDEO",
"metadata": {
"credit": 540000,
"usage": {
"cost": 0.18
}
},
"status": "SUCCESS",
"aiRecordDetail": {
"resultObject": [
"development/videos/2026_10_24_10_00_00_000_000000.mp4"
]
}
}
}