# HeyGen Video Reference to Video API

> HeyGen Video Reference to Video generates a 5-15 second video guided by reference images, videos and audio.

Source: https://www.sandbase.ai/models/heygen/heygen-video/reference-to-video
API reference: https://www.sandbase.ai/models/heygen/heygen-video/reference-to-video/docs

## Facts

- Provider: HeyGen
- Type: Video model
- Model ID: `heygen/heygen-video/reference-to-video`
- Price: From $0.50 per run
- Capabilities: reference to video
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "heygen/heygen-video/reference-to-video",
  "duration": 5,
  "resolution": "768p"
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call HeyGen Video Reference to Video through SandBase?

Create a SandBase API key, then send requests with the model ID "heygen/heygen-video/reference-to-video" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate HeyGen account?

No. One SandBase API key and balance gives you access to HeyGen Video Reference to Video and the other models in the catalog; you do not need to sign up with HeyGen separately.

## README

### HeyGen Video Reference to Video
HeyGen Video Reference to Video generates a 5–15 second video guided by reference images, videos and audio clips.
#### Fields
| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Scene and action; describe how each reference is used. |
| `images` | image URL[] | — | Up to 9 reference images (characters, products, scenes). |
| `videos` | video URL[] | — | Up to 3 reference videos for motion or style. |
| `audios` | audio URL[] | — | Up to 3 reference audio clips (voice or music). |
| `aspect_ratio` | `21:9` / `16:9` / `4:3` / `1:1` / `3:4` / `9:16` | — | Leave empty to follow the references. |
| `resolution` | `480p` / `768p` / `1080p` / `2k` | `768p` | Output resolution; 1080p and 2k cost more. |
| `duration` | 5–15 | 5 | Output length in seconds. |
#### Billing
Billed per output second: $0.07 at 480p, $0.10 at 768p, $0.18 at 1080p and 2k. References are not billed separately.
| Output | Price |
|---|---|
| 5s, 768p (default) | $0.50 |
| 5s, 480p | $0.35 |
| 10s, 1080p | $1.80 |
Failed runs are not charged.
#### Prompting
- Say which reference is the subject and which sets motion, style or sound.
#### Limits
- Clips are 5–15 seconds.
#### Also on SandBase
Other HeyGen Video endpoints: `heygen/heygen-video/text-to-video`, `heygen/heygen-video/image-to-video`.
