# HeyGen v5 digital twin

Takes fit, avatar, resolution and more, all optional. Served by fal.ai.

Heygen v5 Digital Twin, served by fal.ai. The OpenAPI schema for the fal-ai/heygen/avatar5/digital-twin queue. Price: $0.10 per second of generated output video. The charge is based on final output duration in seconds. Actual-cost billing: the initial reservation is an estimate, not a maximum. 30 seconds at $0.1/s; actual input/output duration determines cost. The unique Billing Events receipt for this exact endpoint and request_id is the final USD charge, including usage above the estimate. Missing receipts retain the reservation for reconciliation; no guessed final fee. Asynchronous: returns a request_id; poll fal/status and fetch fal/result with model "fal-ai/heygen" and that request_id. Billed once, when the result is ready; a generation that fails is refunded.

- Tool ID: `fal/heygen-avatar5-digital-twin`
- Name in the catalog: Heygen v5 Digital Twin
- Provider: [fal.ai](/providers/fal.md)
- Capability: [AI video generation](/tools/video-generation.md)
- Price: usage based, the maximum is shown before a run
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

Billed at the exact provider cost, without a per-call cap. The initial reservation is an estimate; additional usage is debited and unused funds are refunded.


```json
{
  "model": "reported",
  "costPath": "cost_usd",
  "requireCost": true,
  "costMode": "actual",
  "reservationBasis": "30 seconds at $0.1/s; actual input/output duration determines cost.",
  "maxUsdDefault": 3,
  "maxUsdCap": 3
}
```

Pricing source: [https://fal.ai/models/fal-ai/heygen/avatar5/digital-twin](https://fal.ai/models/fal-ai/heygen/avatar5/digital-twin). $0.10  per second of generated output video. The charge is based on final output duration in seconds. Actual-cost billing: the initial reservation is an estimate, not a maximum. 30 seconds at $0.1/s; actual input/output duration determines cost. The unique Billing Events receipt for this exact endpoint and request_id is the final USD charge, including usage above the estimate. Missing receipts retain the reservation for reconciliation; no guessed final fee..

Price verification date: 2026-10-07.

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "fit": {
      "enum": [
        "contain",
        "cover"
      ],
      "default": "cover",
      "type": "string",
      "description": "How the avatar fits within the output frame. 'contain' keeps the full avatar in view (may letterbox); 'cover' fills the frame (may crop).",
      "title": "Fit"
    },
    "avatar": {
      "description": "Name of the Avatar V-eligible avatar to use.",
      "default": "Abigail Sofa Front",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Avatar"
    },
    "resolution": {
      "enum": [
        "720p",
        "1080p",
        "4k"
      ],
      "default": "720p",
      "type": "string",
      "description": "Output resolution preset.",
      "title": "Resolution"
    },
    "voice": {
      "enum": [
        "Warm Pro Narrator",
        "Chill Brian",
        "Ivy",
        "John Doe",
        "Monika Sogam",
        "Hope ",
        "Archer ",
        "Brittney",
        "Patrick",
        "David Castlemore",
        "Michael C",
        "Adam Stone ",
        "Juniper",
        "Cassidy ",
        "Jessica Anne Bogart",
        "Arabella",
        "Andrew",
        "Spuds Oxley ",
        "Grace Elder",
        "Helen",
        "Canyon Rivers",
        "Derya - Lifelike - Excited 🤩",
        "Mellow Marcus",
        "Jack Sterling - Broadcaster 🎙️",
        "Brenda - UGC - 1.mp4",
        "Reid",
        "Reagan",
        "Terry",
        "Jenny",
        "Radio Rick",
        "Denise",
        "Tim in car - Excited 🤩",
        "Iskander",
        "Thompson",
        "Delicate Daisy - Excited 🤩",
        "Kingston",
        "George UGC 1",
        "Bold Blake",
        "Jane",
        "Expressive Evan",
        "Marianne - IA",
        "Aaron",
        "Modern Recipe Host - Voice 1",
        "Willow",
        "Cute Chloe - Friendly 😊",
        "Rafael",
        "June - Lifelike",
        "Crisp Chloe",
        "Slick Simon",
        "Nassim - Informative",
        "Baritone Ben",
        "Maxwell",
        "Ellie Faye - Excited 🤩",
        "Milani",
        "Feisty Fiona - Excited 🤩",
        "Professor Dean",
        "Rose - UGC - 1.mp4",
        "Shona",
        "Hudson Wilder",
        "Ann - IA",
        "Alastair Kensington",
        "Oxley",
        "Christina",
        "Andrew Rizz ",
        "Peyton",
        "Gerardo - Outdoor",
        "Chloe - Lifelike",
        "Stephanie",
        "Anthony - IA",
        "Signal - Voice 1",
        "Luca",
        "Lisa - Voice 1",
        "T.W.Tucker",
        "Jack Sullivan - Serious 😐",
        "Winter",
        "Mireia - Lifelike",
        "Georgia",
        "Stella",
        "Masha - Lifelike",
        "Charming Charles - Friendly 😊",
        "Serenity",
        "Annie - Excited",
        "Ralph",
        "Bethany",
        "Dominic",
        "Mason Finn",
        "Leena",
        "Veteran Victor",
        "Tamara",
        "Nik Public",
        "Calm Chloe",
        "Sevik",
        "Reilly",
        "Raul",
        "Imposing Ian",
        "Relaxed Ray",
        "Dexter - Professional",
        "Relaxed Rick",
        "Edwin",
        "Rupert Blackwood",
        "Ginny",
        "Hope"
      ],
      "default": "Warm Pro Narrator",
      "description": "Name of the text-to-speech voice to use for the avatar when ``audio_url`` is not provided.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Voice"
    },
    "prompt": {
      "description": "Text the avatar will speak. Required when ``audio_url`` is not provided.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Prompt"
    },
    "audio_url": {
      "description": "HTTP(S) URL of an audio file for the avatar to lip-sync to. When provided, the avatar uses this audio instead of text-to-speech and ``prompt``/``voice`` are ignored.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Audio Url"
    },
    "output_format": {
      "enum": [
        "mp4",
        "webm"
      ],
      "default": "mp4",
      "type": "string",
      "description": "Output container format. 'webm' produces a transparent video (automatically removes the background) and ignores the ``background`` field.",
      "title": "Output Format"
    },
    "background": {
      "description": "Optional background to composite behind the avatar. Ignored when ``output_format='webm'`` (webm output is transparent).",
      "anyOf": [
        {
          "description": "Background configuration for Avatar V videos.\n\nEither a solid color (``type=\"color\"``) or an image URL\n(``type=\"image\"``). Background is ignored when\n``output_format=\"webm\"`` because webm output forces a transparent\n(background-removed) result.",
          "type": "object",
          "properties": {
            "type": {
              "enum": [
                "color",
                "image"
              ],
              "default": "color",
              "type": "string",
              "description": "Type of background. 'color' for a solid hex color, 'image' for an image URL.",
              "title": "Type"
            },
            "value": {
              "type": "string",
              "default": "#FFFFFF",
              "description": "Background value — hex color for 'color' type, or HTTP(S) URL for 'image' type.",
              "title": "Value"
            }
          },
          "x-fal-order-properties": [
            "type",
            "value"
          ],
          "title": "AvatarVBackground"
        },
        {
          "type": "null"
        }
      ]
    },
    "watermark": {
      "description": "Optional watermark image to overlay on the output video.",
      "anyOf": [
        {
          "description": "Watermark configuration for Avatar V videos.",
          "type": "object",
          "properties": {
            "scale": {
              "description": "Watermark scale relative to the video (0.0 exclusive–2.0).",
              "anyOf": [
                {
                  "type": "number",
                  "maximum": 2,
                  "exclusiveMinimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Scale"
            },
            "image_url": {
              "description": "HTTP(S) URL of the watermark image to overlay on the video.",
              "type": "string",
              "title": "Image Url"
            },
            "placement": {
              "description": "Where to place the watermark on the video.",
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "top-left",
                    "top-right",
                    "bottom-left",
                    "bottom-right"
                  ]
                },
                {
                  "type": "null"
                }
              ],
              "title": "Placement"
            },
            "opacity": {
              "description": "Watermark opacity (0.0 = transparent, 1.0 = opaque).",
              "anyOf": [
                {
                  "minimum": 0,
                  "maximum": 1,
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Opacity"
            }
          },
          "x-fal-order-properties": [
            "image_url",
            "scale",
            "opacity",
            "placement"
          ],
          "required": [
            "image_url"
          ],
          "title": "AvatarVWatermark"
        },
        {
          "type": "null"
        }
      ]
    },
    "caption": {
      "description": "Generate a sidecar SRT caption file alongside the video.",
      "default": false,
      "type": "boolean",
      "title": "Caption"
    },
    "aspect_ratio": {
      "enum": [
        "16:9",
        "9:16",
        "4:5",
        "5:4",
        "1:1",
        "auto"
      ],
      "default": "16:9",
      "type": "string",
      "description": "Aspect ratio of the output video. Supported values: '16:9', '9:16', '4:5', '5:4', '1:1', and 'auto'. 'auto' preserves the source aspect ratio when HeyGen can read it, falling back to '16:9' otherwise.",
      "title": "Aspect Ratio"
    },
    "remove_background": {
      "description": "Remove the avatar's background. Requires a matting-enabled avatar.",
      "default": false,
      "type": "boolean",
      "title": "Remove Background"
    }
  },
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "fal/heygen-avatar5-digital-twin",
  "input": {
    "avatar": "Abigail Office Front",
    "prompt": "Hello and welcome to this demonstration of HeyGen Avatar V.",
    "voice": "Warm Pro Narrator",
    "fit": "cover",
    "output_format": "mp4",
    "resolution": "720p",
    "aspect_ratio": "16:9"
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

This tool uses deferred settlement. Follow its returned task/run instructions; preserve the existing reservation until the result is reconciled.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

[Provider documentation](https://fal.ai/models/fal-ai/heygen/avatar5/digital-twin)

[REST inspection](https://api.agentik.cc/v1/tools/fal/heygen-avatar5-digital-twin) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/fal/heygen-avatar5-digital-twin) · [Agent index](/llms.txt)
