## Basic model info

Model name: heygen/avatar-iv
Model description: Create realistic talking avatar videos from text with HeyGen's Avatar IV engine


## Model inputs

- avatar_id (required): Unique identifier of the avatar. Get available avatar IDs from the HeyGen List All Avatars API. (string)
- input_text (required): Text that the avatar will speak. Must be less than 5000 characters. (string)
- voice_id (required): Unique identifier of the voice. Get available voice IDs from the HeyGen List All Voices API. (string)
- title (optional): Title of the video. (string)
- avatar_style (optional): Visual style of the avatar. (string)
- voice_speed (optional): Voice speed. Value ranges from 0.5 to 1.5. (number)
- voice_emotion (optional): Adds emotion to voice, if supported by the selected voice. Set to 'none' for no emotion. (string)
- caption (optional): Whether to enable captions in the video. (boolean)
- width (optional): Width of the output video in pixels. (integer)
- height (optional): Height of the output video in pixels. (integer)


## Model output schema

{
  "type": "string",
  "title": "Output",
  "format": "uri"
}

If the input or output schema includes a format of URI, it is referring to a file.


## Example inputs and outputs

Use these example outputs to better understand the types of inputs the model accepts, and the types of outputs the model returns:

### Example (https://replicate.com/p/0m06khc7qnrmw0cwq798efc3nw)

#### Input

```json
{
  "title": "",
  "width": 1920,
  "height": 1080,
  "caption": false,
  "voice_id": "KQkyHvsV1wdsvvqTolHK",
  "avatar_id": "Abigail_standing_office_front",
  "input_text": "We just launched Avatar IV on Replicate! Create custom talking head avatar videos with this model. ",
  "voice_speed": 1,
  "avatar_style": "normal",
  "voice_emotion": "none"
}
```

#### Output

```json
"https://replicate.delivery/xezq/YyGbGevrwG0OKySD50P51RE4aVJus05u7OnFSRzLZKYS0wGLA/tmpba6kye9z.mp4"
```


### Example (https://replicate.com/p/spp1pdnensrmy0cwq7ntz47zxw)

#### Input

```json
{
  "title": "",
  "width": 1920,
  "height": 1080,
  "caption": false,
  "voice_id": "KQkyHvsV1wdsvvqTolHK",
  "avatar_id": "Annie_Bar_Standing_Front_2_public",
  "input_text": "We just launched Avatar IV and video agent on Replicate! Create custom talking head avatar videos and also use video agent to turn a text prompt into a complete, polished video with AI-generated script, avatar presenter, voiceover, visuals, and editing. Plus, video translate has a new speed parameter. Check it out!",
  "voice_speed": 1,
  "avatar_style": "normal",
  "voice_emotion": "none"
}
```

#### Output

```json
"https://replicate.delivery/xezq/2O9Uz5dfs8UkEqp9CTHdKKi2NPrNXwIri045shyQfEZ3BiNWA/tmpp_muzpyf.mp4"
```


### Example (https://replicate.com/p/zfhg708e65rmy0cxkja9cvyre0)

#### Input

```json
{
  "width": 1920,
  "height": 1080,
  "voice_id": "73c0b6a2e29d4d38aca41454bf58c955",
  "avatar_id": "Abigail_expressive_2024112501",
  "input_text": "Welcome to Replicate. I'm an AI-generated avatar built with HeyGen's Avatar IV engine. Give me a script, and I'll deliver it on camera with natural lip sync, expressions, and emotion. Perfect for marketing videos, training content, and social media.",
  "voice_speed": 1,
  "avatar_style": "normal",
  "voice_emotion": "Friendly"
}
```

#### Output

```json
"https://replicate.delivery/xezq/vUpLtKu2DAYMBVPslTjxylNGJreSaB9rc3gTZRdzrUeTbCcWA/tmpz07xj85_.mp4"
```


## Model readme

> # HeyGen Avatar IV
> 
> Generate realistic talking avatar videos from text using HeyGen's Avatar IV engine. Provide an avatar, a voice, and a script — get back a video of the avatar speaking your text with natural motion and expressions.
> 
> ## Overview
> 
> Avatar IV is HeyGen's latest avatar engine, producing higher-quality motion, expressions, and lip sync compared to Avatar III. It supports public avatars, digital twins, and photo avatars.
> 
> ## Inputs
> 
> - **avatar_id** — The avatar to use. Get available IDs from [HeyGen's List All Avatars API](https://docs.heygen.com/reference/list-avatars-v2).
> - **input_text** — The script the avatar will speak (up to 5,000 characters).
> - **voice_id** — The voice to use. Get available IDs from [HeyGen's List All Voices API](https://docs.heygen.com/reference/list-voices-v2).
> - **avatar_style** — Visual framing: `normal`, `closeUp`, or `circle`.
> - **voice_speed** — Speech speed from 0.5× to 1.5×.
> - **voice_emotion** — Optional emotion: Excited, Friendly, Serious, Soothing, or Broadcaster.
> - **caption** — Enable on-screen captions.
> - **width** / **height** — Output video dimensions (default 1920×1080).
> 
> ## Output
> 
> Returns an MP4 video of the avatar speaking the provided text.
> 
> ## Use cases
> 
> - **Marketing** — Create personalized video ads at scale.
> - **Education** — Build multilingual course videos with consistent presenters.
> - **Sales** — Generate personalized outreach videos.
> - **Support** — Produce how-to videos with a friendly face.
> - **Social media** — Create talking-head content without a camera.
> 
> ## Links
> 
> - [HeyGen API docs](https://docs.heygen.com/reference/create-an-avatar-video-v2)
> - [List of avatars](https://docs.heygen.com/reference/list-avatars-v2)
> - [List of voices](https://docs.heygen.com/reference/list-voices-v2)

