# HeyGen integrations: videos, avatars and voices

> Create a video, create an avatar and generate speech in HeyGen, and start a workflow when HeyGen sends “Avatar video succeeded”.

**Canonical page:** https://tray.ai/connectors/heygen-integrations/
**Categories:** AI
**Connects through:** HTTP Connector

## Overview

HeyGen is an AI video platform that creates videos presented by digital avatars, clones voices, and translates videos into other languages with lip sync. Tray.ai connects to HeyGen through the HTTP Connector, so your workflows can call the HeyGen API alongside the rest of your stack.

## Use cases

### Videos

Read, create, and delete videos in HeyGen from any Tray.ai workflow. The HeyGen API covers calls such as create a video and get a video.

- Create a video
- Get a video
- List videos

### Avatars

Read, create, and delete avatars in HeyGen from any Tray.ai workflow. The HeyGen API covers calls such as create an avatar and list avatar groups.

- Create an avatar
- List avatar groups
- List avatar looks

### Voices

Read and create voices in HeyGen from any Tray.ai workflow. The HeyGen API covers calls such as list voices and get a voice.

- List voices
- Get a voice
- Generate speech

### Video translations

Read and create video translations in HeyGen from any Tray.ai workflow. The HeyGen API covers calls such as create a video translation and get a translation batch.

- Create a video translation
- Get a translation batch

### Templates

Read templates in HeyGen from any Tray.ai workflow. The HeyGen API covers calls such as list templates and get a template.

- List templates
- Get a template

### HeyGen events

Start a Tray.ai workflow the moment something happens in HeyGen. HeyGen sends events such as avatar video succeeded and avatar video failed to a Tray.ai webhook trigger.

- Avatar video succeeded
- Avatar video failed
- Video translation succeeded

## Challenges Tray.ai solves

### Keeping HeyGen credentials out of logs

A raw API call usually means pasting a key or token into the request, where it ends up in step inputs, logs, and screenshots.

**How Tray.ai helps:** Store HeyGen credentials once as a Tray.ai authentication and reference them from the HTTP Connector. Tray.ai masks authentication values in logs, so the secret never shows up in a step's input or output.

### Going from the HeyGen API docs to a working call

Translating an example request from API docs into a workflow step means copying the method, URL, headers, and body by hand.

**How Tray.ai helps:** Paste a cURL example from the HeyGen API docs into the HTTP Connector and Tray.ai fills in the method, URL, headers, and body for you.

### Handling files and non-JSON responses

Not every API answers in JSON. Some return XML, files, or binary data, or expect a multipart upload.

**How Tray.ai helps:** The HTTP Connector parses JSON and XML responses, returns files you can pass to the next step, and sends multipart form data for uploads.

## Frequently asked questions

### Does Tray.ai connect to HeyGen?

Yes. Tray.ai connects to HeyGen through the HTTP Connector, which calls the HeyGen API directly. Any call the HeyGen API documents can run as a step in a Tray.ai workflow.

### How does Tray.ai authenticate with HeyGen?

The HeyGen API uses an API key in a request header. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

### Can I get a dedicated HeyGen connector?

HeyGen runs through the HTTP Connector rather than a dedicated connector. If your team wants one, the Tray.ai connector SDK can build a dedicated HeyGen connector from the HeyGen API.

## Learn more

- Tray iPaaS: https://tray.ai/platform/ipaas/
- Tray Helix agents: https://tray.ai/helix/agents/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
