# HeyGen Avatar 6 Identity to Video API

> HeyGen Avatar 6 by HeyGen creates a talking video with a public HeyGen avatar from a script or speech audio.

Source: https://www.sandbase.ai/models/heygen/avatar6/identity-to-video
API reference: https://www.sandbase.ai/models/heygen/avatar6/identity-to-video#api

## Facts

- Provider: HeyGen
- Type: Video model
- Model ID: `heygen/avatar6/identity-to-video`
- Price: From $0.60 per run
- Capabilities: text 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/avatar6/identity-to-video",
  "voice": "Warm Pro Narrator",
  "avatar": "Abigail Sofa Front",
  "prompt": "Hello and welcome to this demonstration of HeyGen Avatar 6.",
  "resolution": "1080p",
  "aspect_ratio": "16:9",
  "motion_expressiveness": "default"
}'
```

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 Avatar 6 Identity to Video through SandBase?

Create a SandBase API key, then send requests with the model ID "heygen/avatar6/identity-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 Avatar 6 Identity to Video and the other models in the catalog; you do not need to sign up with HeyGen separately.

## README

### HeyGen Avatar 6 Identity to Video
HeyGen Avatar 6 makes a talking video with one of HeyGen's public avatars, from a written script or a speech track.
#### Fields
| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string | — | Script; required unless `audio` is set. |
| `avatar` | string | `Abigail Sofa Front` | Public Avatar 6 avatar name. |
| `voice` | string | `Warm Pro Narrator` | Voice for the script. |
| `audio` | audio file or URL | — | Overrides script and voice. |
| `aspect_ratio` | `16:9` / `9:16` / `1:1` / `4:5` / `5:4` | `16:9` | Frame shape. |
| `motion_prompt` | string | — | Direction for motion and expression. |
| `motion_expressiveness` | `default` / `less` | `default` | `less` for calmer motion. |
| `resolution` | `1080p` / `2k` | `1080p` | Sets the per-second rate. |
#### Billing
$0.12 per output second at 1080p, $0.145 at 2k. Length follows the audio or the spoken script; the quote before submission assumes 5 seconds.
| Output | 1080p | 2k |
|---|---|---|
| 10s | $1.20 | $1.450 |
| 60s | $7.20 | $8.70 |
Failed runs are not charged.
#### Also on SandBase
Related: `heygen/avatar6/image-to-video`, `heygen/avatar6/ref-video-to-video`, `heygen/avatar5/digital-twin`.
