Get your API key
Go to Settings → API in the HeyGen dashboard and generate a key. Save it — you can’t view it again.
Create a video
Send a prompt to the Video Agent and let it handle the rest:
- curl
- Python
- Node.js
Request
Response
Resources
Video Agent
Generate videos from a text prompt — the agent handles avatar, script, and production.
Video Translation
Translate videos into 30+ languages with natural voice cloning and lip-sync.
Webhooks
Get notified when videos, translations, and avatars finish processing.
API Limits and Costs
Rate limits, usage, and pricing per operation.
Tools
CLI
Script video creation and translation from your terminal.
MCP Server
Connect HeyGen to AI agents and copilots via Model Context Protocol.
Authentication
API key setup, OAuth tokens, and request signing.

