# AI Avatar with AI Generated B-roll

Create AI avatar videos with automatically generated B-roll footage that complements the narration.

## When to Use This Template

* You have a talking head video (from HeyGen, a webcam, or your phone) and want to add AI-generated b-roll footage that matches your narration
* You are a coach, educator, or thought leader who records yourself speaking and wants to make the video more engaging with relevant visuals
* You want to enhance existing avatar or webcam footage for LinkedIn, YouTube, or Instagram without manually sourcing b-roll

## Template Information

| Property    | Value                                                              |
| ----------- | ------------------------------------------------------------------ |
| Template ID | `/base/v2/ai-avatar-broll/7c26a1cd-d5b3-42da-9c73-2413333873b3/v1` |
| Output Type | Video                                                              |
| Category    | AI Avatar                                                          |

## Parameters

| Parameter      | Type  | Required | Default | Description                                |
| -------------- | ----- | -------- | ------- | ------------------------------------------ |
| avatarVideoUrl | video | Yes      | -       | Video URL of avatar speaking the narration |

## How It Works

1. Upload a video of your avatar speaking (e.g., a talking head video)
2. The system analyzes the narration and automatically generates relevant B-roll footage
3. The B-roll is intelligently cut into the avatar video to create an engaging final product

## Example 1: Basic Usage

```json
POST https://backend.blotato.com/v2/videos/from-templates
Content-Type: application/json
blotato-api-key: YOUR_API_KEY

{
  "templateId": "/base/v2/ai-avatar-broll/7c26a1cd-d5b3-42da-9c73-2413333873b3/v1",
  "inputs": {
    "avatarVideoUrl": "https://example.com/my-avatar-speaking.mp4"
  },
  "render": true
}
```

## Example 2: With Hosted Video

```json
POST https://backend.blotato.com/v2/videos/from-templates
Content-Type: application/json
blotato-api-key: YOUR_API_KEY

{
  "templateId": "/base/v2/ai-avatar-broll/7c26a1cd-d5b3-42da-9c73-2413333873b3/v1",
  "inputs": {
    "avatarVideoUrl": "https://storage.example.com/videos/talking-head-video.mp4"
  },
  "render": true
}
```

## Tips for Best Results

1. Record a clear talking head video with good audio quality
2. Speak at a moderate pace to allow for B-roll insertion
3. Use natural pauses in your narration
4. Ensure consistent lighting and framing in your avatar video

## Related Templates

* [AI Video with AI Voice](https://help.blotato.com/api/visuals/5903fe43-514d-40ee-a060-0d6628c5f8fd)
* [AI Selfie Talking Video](https://help.blotato.com/api/visuals/57f5a565-fd17-458b-be43-4a2d8ccaca75)
* [Combine Clips and Apply Basic Edits](https://help.blotato.com/api/visuals/c306ae43-1dcc-4f45-ac2b-88e75430ffd8)

## See Also

* [Create Visual API Reference](https://help.blotato.com/api/create-video)
* [All Visual Templates](https://help.blotato.com/api/visuals)
