> For the complete documentation index, see [llms.txt](https://help.blotato.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.blotato.com/rest-api-reference/visuals/7c26a1cd-d5b3-42da-9c73-2413333873b3.md).

# 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

```http
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

```http
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](/rest-api-reference/visuals/5903fe43-514d-40ee-a060-0d6628c5f8fd.md)
* [AI Selfie Talking Video](/rest-api-reference/visuals/57f5a565-fd17-458b-be43-4a2d8ccaca75.md)
* [Combine Clips and Apply Basic Edits](/rest-api-reference/visuals/c306ae43-1dcc-4f45-ac2b-88e75430ffd8.md)

## See Also

* [Create Visual API Reference](/rest-api-reference/create-video.md)
* [All Visual Templates](/rest-api-reference/visuals.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.blotato.com/rest-api-reference/visuals/7c26a1cd-d5b3-42da-9c73-2413333873b3.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
