Generate, translate, and scale with one API
Our Video Agent, Video Generation, Translation, and Lipsync models are production-ready, built to scale, and starting at $5 pay-as-you-go
const res = await fetch("https://api.heygen.com/v3/videos", {
method: "POST",
headers: {
"X-Api-Key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
type: "avatar",
avatar_id: "YOUR_AVATAR_ID",
engine: { type: "avatar_v" },
script: "Hello, this is a sample video.",
voice_id: "YOUR_VOICE_ID"
})
});
console.log(await res.json());Model Gallery

Video Agent
Go from idea to finished video in a single prompt. No scripting, no avatar selection — just describe what you want and let AI handle the rest.

Avatar V (New)
Digital Twin
Character consistency is what separates a useful avatar from a gimmick. Avatar V delivers it across every angle, every expression, and every video you create.

Avatar IV
Digital Twin
A Digital Twin is a lifelike avatar trained from real video footage of a person. Once created, you can make it speak any script in any supported voice — no camera or studio required.

Avatar IV
Photo Avatar
A Photo Avatar is created from a single still image of a person. HeyGen animates the face, syncs lip movements to your script, and produces a realistic talking-head video — all from one photo.

Precision
Video Translation
Translate any video into 175+ languages with context-aware, highly natural lip-sync and accurate gender detection. Your content speaks every language — in your voice — just the way you intended.

Speed
Video Translation
Translate any video into 175+ languages quickly with fast, scalable dubbing — your content speaks every language.

Starfish
Voices
Generate speech audio from text using HeyGen’s TTS engine.

Precision
Lipsync
Dub or replace audio on a video using a provided audio file. HeyGen re-syncs the speaker’s lip movements to match the new audio.
HeyGen for Agents
To let Claude or Codex use the HeyGen API, just drop the HeyGen CLI command into your Claude or Codex setup and ask it to generate videos or translate something. Simple, but effective. The CLI uses your API key and consumes your API balance. If you want to use your web subscription instead, you'll need to connect MCP to your agent.
Pricing
Start from $5 and only pay for what you generate
| Models | Costs start from | Use Case |
|---|---|---|
| Video Agent | $0.0333 / sec | One prompt in, polished video out. Avatar, script, and editing handled! |
| Digital Twin - Avatar V | $0.0667 / sec | Clone your face and voice from a video — scale yourself instantly |
| Photo Avatar - Avatar V | $0.05 / sec | Turn a single photo into videos — demos, intros, and social media content. |
| Video Translation - Precision | $0.0667 / sec | Lip-synced dubbing in 40+ languages, no re-shoots or voice actors needed. |
| Video Translation - Speed | $0.0333 / sec | Lip-synced dubbing in 40+ languages, no re-shoots or voice actors needed. |
| Lipsync - Precision | $0.0667 / sec | Replace your video's audio and the lips re-sync automatically. |
| Voices - Starfish | $0.000667 / sec | Natural AI voiceovers for explainers, IVR, and training at a fraction of a cent. |
| Lipsync - Speed | $0.0333 / sec | Replace your video's audio and the lips re-sync automatically. |
Start building with HeyGen
Explore the building blocks behind HeyGen's video APIs and find everything you need to get your next project off the ground.
The Basics

50M+ videos generated
HeyGen's global video infrastructure is built to handle production workloads of any size, giving developers and enterprise teams the reliability and scale they need to keep up with demand and grow without limits.

Agentic ready
HeyGen is designed to work alongside your AI agents. Our production-ready APIs integrate directly into agentic workflows, giving your systems the ability to generate and translate video automatically and at scale.
SOC 2 Type II and GDPR
Your data security is our top priority. HeyGen is independently audited and certified for SOC 2 Type II and GDPR compliance, ensuring your information stays protected at the highest possible standards.
99.9% API uptime
HeyGen is built for dependable performance with a 99.9% API uptime, ensuring your video infrastructure stays available and your automated video workflows run without interruption.
Have questions? We have answers
What are the different ways to integrate with HeyGen?
HeyGen offers three integration paths: MCP for connecting to AI assistants like Claude without managing APIs, Skills for extending AI coding agents like Claude Code and Cursor, and Direct API for full programmatic control over video generation.
How does authentication work for each integration path?
MCP uses OAuth — users authorize via a consent screen with no API keys needed. Skills and Direct API both use an API key passed via the X-Api-Key header, generated from Settings → API in your HeyGen dashboard.
Are MCP credits and API balance the same?
No. MCP usage is deducted from your web plan's premium credit balance, while Skills and Direct API usage is deducted from your API dashboard balance. The two billing pools are independent.
What's the minimum amount to get started with Pay-As-You-Go?
You can start with as little as $5. Just top up your API wallet and pay only for what you use — no monthly commitment required.
What does the Enterprise plan offer beyond Pay-As-You-Go?
Enterprise includes everything in Pay-As-You-Go plus customized scalability, dedicated developer support, Digital Twin Creation API, Proofread API, and discounted rates.
