For Agents
Generate AI avatar videos, talking-photo clips, and translated videos by submitting text and template inputs to HeyGen, then poll for the rendered output URL.
Install Jentic One Beta
Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the HeyGen API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.
Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.
Step 1: Jentic One Host machine
# On the machine that will host your Jentic One instance:
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | shStep 2: Agent machine
# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh
jentic register # connects your agent to your Jentic One instanceJentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.
What an agent can do with HeyGen API.
Generate AI avatar videos from a script and a chosen avatar via POST /v1/video/generate
Create a digital twin or photo avatar from a source image using /v1/avatar/photo and /v1/avatar/digital-twin
Translate an existing video into another language while preserving the speaker's voice via POST /v1/video_translate/translate
GET STARTED
Use for: I need to generate a 30-second avatar video from a script, Translate this English product video into Spanish with a matching voice, Create a digital twin avatar from this headshot photo, List all available HeyGen avatars I can use
Not supported: Does not handle live video streaming, video conferencing, or generic image generation — use for AI avatar video, talking-photo, and video translation jobs only.
The HeyGen API generates AI-powered videos featuring lifelike avatars, talking photos, and translated voiceovers. Across 11 endpoints, agents can list available avatars and voices, create photo or digital-twin avatars, generate videos from text prompts and templates, translate existing videos into other languages, and check the status of generation jobs. Authentication uses an X-Api-Key header issued from the HeyGen dashboard.
List available avatars and voices to let users pick a presenter and language combination
Render videos from saved templates with POST /v1/video_agent/generate for repeatable branded content
Poll a video's status with GET /v1/video/{video_id} until the rendered URL is ready
Generate talking-photo clips from a still image and a text script using /v1/talking_photo
Patterns agents use HeyGen API for, with concrete tasks.
★ Personalised Video Outreach
Sales and marketing teams generate one-to-one prospecting videos by passing a personalised script and a chosen avatar to POST /v1/video/generate. The job returns a video_id, then GET /v1/video/{video_id} polls until the MP4 URL is ready — typically within a few minutes for short clips. This produces avatar videos at thousands of permutations without recording each one manually.
Call POST /v1/video/generate with avatar_id, script 'Hi Alex, here is a quick demo for you', and voice_id, then poll GET /v1/video/{video_id} every 30 seconds until status is completed.
Multilingual Content Localisation
Content teams send an existing English video URL to POST /v1/video_translate/translate with a target language; HeyGen produces a translated version with the original speaker's voice cloned into the new language. This drops localisation time from days of voiceover work to minutes per language.
Submit POST /v1/video_translate/translate with video_url and output_language=es-ES, then poll the returned job until the translated MP4 URL is ready.
Template-Driven Video Production
Brand teams set up a HeyGen template with placeholders for name, product, and call-to-action, then generate hundreds of videos via POST /v1/video_agent/generate by passing variable values per recipient. The API renders consistent on-brand output without designers re-cutting each clip.
Call POST /v1/video_agent/generate with template_id and variables {name: 'Alex', product: 'Pilot'}, then capture the returned video_id for status polling.
AI Agent Video Workflow
Through Jentic, an AI agent can search 'generate an avatar video' and receive HeyGen's create-and-poll pattern with the input schema. Jentic holds the X-Api-Key in the vault, so the agent can drive end-to-end video production — script generation in an LLM, render in HeyGen, post to a CMS — without ever seeing the API key.
Search Jentic for 'generate an avatar video', load the schema for POST /v1/video/generate, and execute with avatar_id, voice_id, and a 100-word script.
11 endpoints — the heygen api generates ai-powered videos featuring lifelike avatars, talking photos, and translated voiceovers.
METHOD
PATH
DESCRIPTION
/v1/video/generate
Generate an AI avatar video from a script
/v1/video/{video_id}
Get the status and URL of a generated video
/v1/video_translate/translate
Translate an existing video into another language
/v1/avatar/photo
Create a photo avatar from an image
/v1/avatar/digital-twin
Create a digital twin avatar
/v2/avatars
List available avatars
/v2/voices
List available voices
/v1/video/generate
Generate an AI avatar video from a script
/v1/video/{video_id}
Get the status and URL of a generated video
/v1/video_translate/translate
Translate an existing video into another language
/v1/avatar/photo
Create a photo avatar from an image
/v1/avatar/digital-twin
Create a digital twin avatar
Three things that make agents converge on Jentic-routed access.
Credential isolation
HeyGen API keys are stored encrypted in the Jentic vault. Agents call HeyGen via Jentic and the X-Api-Key header is injected at execution time — the raw key never enters the agent's context.
Intent-based discovery
Agents search by intent (e.g., 'generate an avatar video' or 'translate a video into Spanish') and Jentic returns the matching HeyGen operation with its input schema, so the agent calls the right endpoint without browsing docs.
Time to first call
Direct HeyGen integration: 1-2 days for the create-and-poll pattern, asset uploads, and webhook handling. Through Jentic: under 1 hour — search, load schema, execute.
Alternatives and complements available in the Jentic catalogue.
Specific to using HeyGen API through Jentic.
What authentication does the HeyGen API use?
HeyGen uses an API key passed in the X-Api-Key header. Generate the key from the HeyGen dashboard. Through Jentic, the key sits in the encrypted vault and is injected per call so the agent never holds it in context.
Can I generate a translated video with the original speaker's voice via the HeyGen API?
Yes. POST /v1/video_translate/translate accepts a video URL and a target language and returns a job that produces a translated MP4 with the original speaker's voice cloned into the new language. Poll the returned job id until the output URL is available.
How do I poll for video render completion through Jentic?
Run pip install jentic, search for 'check video render status', and execute against GET /v1/video/{video_id}. The response includes status (pending, processing, completed, failed) and, when completed, the video_url for download.
What rate limits apply to the HeyGen API?
Rate limits depend on the HeyGen plan tier (free, creator, team, enterprise) and are not exposed in the spec; the API returns HTTP 429 when exceeded. Implement exponential backoff and prefer template-based generation for bulk runs to reduce per-render overhead.
Can I create a custom avatar from a single photo?
Yes. POST /v1/avatar/photo creates a photo avatar from an uploaded image, while POST /v1/avatar/digital-twin produces a higher-fidelity digital twin from one or more images. Once created, the avatar id can be passed to /v1/video/generate.
/v2/avatars
List available avatars
/v2/voices
List available voices