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

Wondershare logo
Deloitte logo
HubSpot logo
HubSpot logo
Lemonade logo
Duolingo logo
Zoom logo
Shopify logo
Salesforce logo
Wondershare logo
Deloitte logo
HubSpot logo
HubSpot logo
Lemonade logo
Duolingo logo
Zoom logo
Shopify logo
Salesforce logo
Wondershare logo
Deloitte logo
HubSpot logo
HubSpot logo
Lemonade logo
Duolingo logo
Zoom logo
Shopify logo
Salesforce logo
Trusted by over 1,000,000 developers and leading companies.

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 / secClone your face and voice from a video — scale yourself instantly
Photo Avatar - Avatar V$0.05 / secTurn 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 / secReplace your video's audio and the lips re-sync automatically.
Voices - Starfish$0.000667 / secNatural AI voiceovers for explainers, IVR, and training at a fraction of a cent.
Lipsync - Speed$0.0333 / secReplace your video's audio and the lips re-sync automatically.
Powered by V3 API

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.

50M+ videos generated

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

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.