> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vidgo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# HeyGen Avatar 6 Public Avatar to Video

> The HeyGen Avatar 6 Public Avatar to Video API makes one of 1,248 HeyGen public avatars speak your audio or read text with a HeyGen voice, at 1080p or 2K in 5 aspect ratios.

> [!TIP]
>
> 1. After submission, a `task_id` will be returned. If you provided a `callback_url`, when the task status becomes `finished` or `failed`, a POST request will be sent to the `callback_url`.
> 2. Regardless of whether `callback_url` is provided, you can retrieve the result through the unified [Query Task Status](https://docs.vidgo.ai/api-manual/task-management/status.md) endpoint.

HeyGen Avatar 6 Public Avatar to Video creates a talking video with one of HeyGen's 1,248 ready-made public avatars. The avatar speaks your audio, or reads `text` aloud with one of the HeyGen voices. Names of all avatars and voices are listed in [Avatars and Voices](https://docs.vidgo.ai/api-manual/video-series/heygen-avatar-6-avatars.md).

Other modes: [HeyGen Avatar 6 Image to Video](https://docs.vidgo.ai/api-manual/video-series/heygen-avatar-6-image-to-video.md) / [HeyGen Avatar 6 Reference Video to Video](https://docs.vidgo.ai/api-manual/video-series/heygen-avatar-6-ref-video-to-video.md). HeyGen Avatar 6 Turbo offers the same inputs and modes at a lower cost. See [HeyGen Avatar 6 Turbo Public Avatar to Video](https://docs.vidgo.ai/api-manual/video-series/heygen-avatar-6-turbo-identity-to-video.md).

## Models

* **heygen/avatar-6/identity-to-video** — HeyGen public avatar + speech audio or text to a talking video, 1080p or 2K.

## Features

* 1,248 public avatars (156 people in several looks).
* Speech from your audio (2–60 seconds) or from `text` (up to 1,000 characters) read by a HeyGen voice.
* Five aspect ratios: `16:9`, `9:16`, `1:1`, `4:5`, `5:4`.
* `1080p` or `2K` output.

## Input modes

| Speech source | Send | Optional |
| - | - | - |
| Audio | `avatar`, `audio_url` | `prompt`, `aspect_ratio`, `resolution` |
| Text | `avatar`, `text` | `voice`, `prompt`, `aspect_ratio`, `resolution` |

Send exactly one of `audio_url` or `text`.

## Required parameters

* `avatar` (string): The name of a HeyGen public avatar from [Avatars and Voices](https://docs.vidgo.ai/api-manual/video-series/heygen-avatar-6-avatars.md), such as `Abigail Sofa Front`. Names match regardless of letter case and extra spaces.
* `audio_url` (string) or `text` (string): Exactly one of them. `audio_url` is speech audio, 2–60 seconds long and up to 15 MB; `text` is what the avatar reads aloud, up to 1,000 characters.

## Optional parameters

* `voice` (string): Used with `text`. The HeyGen voice that reads the text, from the 102 voices in [Avatars and Voices](https://docs.vidgo.ai/api-manual/video-series/heygen-avatar-6-avatars.md#voices). Default `Warm Pro Narrator`. Names match regardless of letter case and extra spaces.
* `aspect_ratio` (string): `16:9`, `9:16`, `1:1`, `4:5` or `5:4`. Default `16:9`.
* `prompt` (string): Direction for gestures, expression and posture, up to 1,200 characters.
* `resolution` (string): `1080p` or `2K`. Default `1080p`.

## Output

* One MP4 video with lip-synced speech, in the selected `aspect_ratio`.
* The video length follows the speech: the duration of `audio_url`, or the time the avatar takes to read `text`.

## Examples

* **Text**: an avatar reads a short script with a chosen voice, `16:9`, `1080p`.
* **Audio**: an avatar speaks an MP3 in vertical `9:16`.

## Notes

* `avatar` is checked against the avatar list at submission; an unknown name returns 400 with the closest matches. Other HeyGen voice names are passed through as given; if HeyGen rejects the voice, the task is refunded in full.
* Send exactly one of `audio_url` and `text`, use `voice` together with `text`, and keep `text` within 1,000 characters; other combinations return 400.
* The audio is checked at submission: it needs to be 2–60 seconds long, up to 15 MB and downloadable; other audio returns 400.
* Put `model` and `callback_url` at the request root, next to `input`. `input` accepts the fields listed above for this mode; other fields return 400.
* Credits are billed per second at the rate for `resolution`. With `audio_url`, the audio duration rounded up to whole seconds is charged at submission. With `text`, the video length is estimated from the text (about 14 Latin characters, 4.5 CJK characters or 3 digits per second, at least 1 second); the estimate is multiplied by 1.5, rounded up and reserved at submission; when the task succeeds you are charged for the actual video length, rounded up to whole seconds, and the rest is refunded. The final charge is at most the reserved amount. A failed task is refunded in full. See the [pricing page](https://vidgo.ai/apis/api-pricing) for current rates.


## OpenAPI

````yaml api-manual/video-series/heygen-avatar-6-identity-to-video.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - HeyGen Avatar 6 Public Avatar to Video
  description: >-
    The HeyGen Avatar 6 Public Avatar to Video API makes one of 1,248 HeyGen
    public avatars speak your audio or read text with a HeyGen voice, at 1080p
    or 2K in 5 aspect ratios.
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: Production server
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - HeyGen Avatar 6 Public Avatar to Video
      summary: Submit HeyGen Avatar 6 Public Avatar to Video Task
      operationId: submitHeyGenAvatar6PublicAvatarToVideoTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              avatar-text:
                summary: Public avatar reading text
                value:
                  model: heygen/avatar-6/identity-to-video
                  input:
                    avatar: Abigail Office Front
                    text: >-
                      Hello and welcome. In the next minute I will walk you
                      through our new dashboard.
                    voice: Warm Pro Narrator
                    prompt: Speak with calm confidence and nod slightly at the end.
                    aspect_ratio: '16:9'
                    resolution: 1080p
              avatar-audio:
                summary: Public avatar with speech audio
                value:
                  model: heygen/avatar-6/identity-to-video
                  input:
                    avatar: Abigail Sofa Front
                    audio_url: https://cdn.vidgo.ai/temp/speech.mp3
                    aspect_ratio: '9:16'
      responses:
        '200':
          description: >-
            Task submission result. A task ID identifies asynchronous work;
            generation may still be running.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SubmitRequest:
      type: object
      required:
        - model
        - input
      additionalProperties: false
      properties:
        model:
          type: string
          example: heygen/avatar-6/identity-to-video
        callback_url:
          type: string
          format: uri
          description: Optional webhook URL for completion or failure notifications.
          example: https://your-domain.com/callback
        input:
          type: object
          required:
            - avatar
          additionalProperties: false
          properties:
            avatar:
              type: string
              maxLength: 200
              description: >-
                The name of one of the 1,248 HeyGen public avatars listed in
                [Avatars and
                Voices](/api-manual/video-series/heygen-avatar-6-avatars), such
                as `Abigail Sofa Front`. Names match regardless of letter case
                and extra spaces; an unknown name returns 400 with the closest
                matches.
            audio_url:
              type: string
              format: uri
              description: >-
                Speech audio, 2–60 seconds long and up to 15 MB. Send exactly
                one of `audio_url` and `text`. The video runs the length of the
                audio.


                Use a publicly accessible HTTP(S) download URL.
            text:
              type: string
              maxLength: 1000
              description: >-
                The text the avatar reads aloud, up to 1,000 characters. Send
                exactly one of `audio_url` and `text`.
            voice:
              type: string
              default: Warm Pro Narrator
              description: >-
                Used with `text`. The HeyGen voice that reads the text: one of
                the 102 voices in [Avatars and
                Voices](/api-manual/video-series/heygen-avatar-6-avatars#voices).
                Names match regardless of letter case and extra spaces.
            aspect_ratio:
              type: string
              enum:
                - '16:9'
                - '9:16'
                - '1:1'
                - '4:5'
                - '5:4'
              default: '16:9'
              description: Output aspect ratio.
            prompt:
              type: string
              maxLength: 1200
              description: >-
                Direction for the avatar's gestures, expression and posture, up
                to 1,200 characters.
            resolution:
              type: string
              enum:
                - 1080p
                - 2K
              default: 1080p
              description: Output resolution.
    SubmitResponse:
      type: object
      required:
        - code
        - data
      properties:
        code:
          type: integer
          example: 200
        data:
          type: object
          required:
            - task_id
            - status
            - created_time
          properties:
            task_id:
              type: string
              example: task-example-001
            status:
              type: string
              example: not_started
            created_time:
              type: string
              format: date-time
              example: '2026-11-19T10:30:00'
    ErrorResponse:
      type: object
      required:
        - detail
      properties:
        detail:
          type: string
          description: Error message. See [Error Codes](/api-manual/error-codes).
          example: avatar mode requires exactly one of audio_url or text
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Use `Authorization: Bearer VIDGO_API_KEY`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.