Skip to main content

What you can build

create-avatar

Create Your Avatar

A digital twin from video, or an avatar from one photo.
video-agent

Video Agent

Prompt to finished video. Edit single scenes after.
heygen-video

HeyGen Video

Text, image, or reference to a 5–15s clip, up to 2K. New.
avatar-video

Avatar Video

Your avatar, voice, and script, up to Avatar V.
research-3

HeyGen Image

Your identity, a new look. Portraits from reference photos.
templates

Templates

Turn any video into a template, then one call per viewer. New.
look-packs

Look Packs

Dress an avatar in a curated set of looks.
hyperframes

HyperFrames

HTML, CSS, and JS to motion-graphics video.
voice-clone

Instant Voice Clone

One recording to a HeyGen Voice in seconds. New.
professional-voice-clone

Professional Voice Clone

Studio-grade voice trained on 20+ minutes of audio.
text-to-speech

Text to Speech

Completed or streaming speech from your HeyGen Voice. New.
video-translation

Video Translation

175+ languages with voice cloning and lip-sync.

Start with your agent

Paste this into Claude Code, Codex, or Cursor. It reads the whole API, sets up your key, and makes your first video with you.
Prompt for your agent

Your first video

Get your API key

Create a key in the API dashboard. Every request below needs it.

Try it in the Playground

Fire a real request from your browser before writing any code.
Base URL https://api.heygen.com · Auth header X-Api-Key: <your-key>

Authenticate

Create a key in the API keys page. For key rotation, see the API Key guide.

Create a video

Send a prompt to the Video Agent. It scripts, picks the avatar and voice, and renders.
Response
Watch it build live at https://app.heygen.com/video-agent/{session_id}.

Get the result

Poll the session for a video_id, then the video for its video_url. Or skip polling with a webhook via callback_url.
Response (completed)

Working from an agent or terminal?

Skip the raw HTTP. Both surfaces wrap the same API.

MCP Server

Plug HeyGen into Claude, Cursor, or any MCP-capable agent. It handles the calls for you.

CLI

heygen video create, heygen video download. Scriptable from any shell or CI job.

Build with your stack

Webhooks

Authentication

Usage Limits

Migrating from v1/v2? Supported until October 31, 2026. See the version comparison.

Troubleshooting

Inspect failure_code and failure_message on GET /v3/videos/{video_id}. Full catalog in Error Codes.
Confirm the X-Api-Key header is set and the key is active in the API keys page.
Rate or concurrency limit hit. Respect Retry-After and back off. Enterprise plans get higher limits; see Usage Limits.
A URL you passed couldn’t be fetched. It must be publicly accessible and point directly at the file.