# HeyGen Image to Video (`heygen_image_video`)

> HeyGen avatar video made from an image, billed per second.

- Capability: Video (tool `video`) — Avatar
- Price: $0.05 per second on the cheapest route; the total depends on the request (1 credit = $0.01). Exact price for a request: POST https://api.varg.ai/v2/estimate
- Typical time: ~3 min
- JSON Schema: https://api.varg.ai/v2/tools/video?model=heygen_image_video (public, no key)
- Try it: https://varg.ai/dashboard/tools/playground?model=heygen_image_video

## Call it

REST: `POST https://api.varg.ai/v2/tools/video/call` with `Authorization: Bearer $VARG_API_KEY` (create a key at https://varg.ai/dashboard/api).
It answers `202` with a job right away. Poll `GET /v2/jobs/{id}` until `status` is `completed`, then read `output.outputs[0].url` — or pass `options.webhook_url` and get the finished job POSTed to you.

```bash
curl -X POST https://api.varg.ai/v2/tools/video/call \
  -H "Authorization: Bearer $VARG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "heygen_image_video"
}'
```

MCP: the varg server `https://mcp.varg.ai/mcp` (OAuth sign-in, no key) runs it with `call_tool`:

```json
{
  "tool": "video",
  "input": {
    "model": "heygen_image_video"
  },
  "wait": true
}
```

## Inputs

| field | type | required | default | allowed | description |
|---|---|---|---|---|---|
| `model` | string | yes | — | `heygen_image_video` or a route key below | Which model runs the job. |
| `prompt` | string | no | — | — | — |
| `files` | array of { url } | no | — | — | — |
| `aspect_ratio` | string | no | — | e.g. 16:9 \| 9:16 \| 1:1 \| 4:3 \| 3:4 \| 21:9 \| auto | — |
| `resolution` | string | no | — | 480p \| 720p \| 1080p \| 4k | Quality tier. Not supported by this model — ignored if sent. |
| `audio` | boolean | no | — | — | Native audio track request. Not supported by this model — ignored if sent. |
| `duration` | integer | no | — | 1–120 | Length in seconds. Not mapped by this model — ignored if sent. |

Media inputs are URLs. Upload a local file first with `POST /v2/files` and pass the returned URL.

## Provider options

Optional, per provider, under `provider_options.<provider>`. Only the options of the provider that runs the job apply — pin a route to choose it.

### provider_options.heygen

| field | type | required | default | allowed | description |
|---|---|---|---|---|---|
| `script` | string | no | — | — | — |
| `type` | string | no | — | avatar \| image | — |
| `image.url` | string | no | — | — | — |
| `image.type` | string | no | — | url \| asset_id | — |
| `image.asset_id` | string | no | — | — | — |
| `voice_id` | string | no | — | — | — |
| `audio_url` | string (URL) | no | — | — | — |
| `avatar_id` | string | no | — | — | — |
| `resolution` | string | no | — | — | — |
| `callback_id` | string | no | — | — | — |
| `aspect_ratio` | string | no | — | e.g. 16:9 \| 9:16 \| 1:1 \| 4:3 \| 3:4 \| 21:9 \| auto | — |
| `callback_url` | string | no | — | — | — |
| `motion_prompt` | string | no | — | — | — |
| `expressiveness` | string | no | — | low \| medium \| high | — |

## Routes

`"model": "heygen_image_video"` picks a route automatically (priority order, then the inputs you send). To pin one, pass its key as `model`.

| model key | provider | modality | price from | typical time |
|---|---|---|---|---|
| `heygen:heygen_avatar` | heygen | avatar-video | $0.05/s | ~3 min |

---

Catalog version 2026-11-11T12:59:09.901887+00:00. All models: https://varg.ai/models/llms.txt
