Skip to main content
HeyGen offers three ways to create videos programmatically. The right choice depends on how much control you need and whether you want a spoken script or a prompt-composed cinematic shot.

Video Agent — best for speed

Send a text prompt, get a video. The agent handles scripting, avatar selection, and scene composition automatically.
Use when:
  • You want a video fast without managing avatars or scripts
  • You’re building a product where end users describe videos in natural language
  • You want to iterate interactively — use mode: "chat" to review the storyboard before rendering
Trade-off: Less control over exact scene composition and creative choices.

Direct Video — best for control

Explicitly specify the avatar, voice, and script. Predictable, repeatable output for automated pipelines.
Use when:
  • Building automated pipelines (personalized sales videos, daily reports)
  • You need exact control over avatar, voice, and script
  • Generating videos programmatically from data (CRM records, form submissions)
Trade-off: You handle all creative decisions — avatar IDs and voice IDs must be known upfront.

Cinematic Avatar — best for cinematic shots

A prompt-driven variant of POST /v3/videos. Hand HeyGen 1–3 avatar looks plus a natural-language prompt and the Seedance pipeline composes the scene, motion, and framing — no script or voice. See the full Cinematic Avatar guide.
Use when:
  • You want cinematic b-roll or motion of an avatar rather than a talking-head script
  • You want to feature up to three looks in one composed shot
  • You want to steer style and motion with your own reference videos and images
Trade-off: No spoken script or voice, and output is capped at 720p / 1080p (4K is not supported). Clips run 4–15 seconds.

Not sure which to pick?

Start with Video Agent. If you need precise control over the script, avatar, or timing, switch to POST /v3/videos. If you want a prompt-composed cinematic shot with no script, reach for Cinematic Avatar. You can also combine them — use Video Agent to explore ideas and find the right style, then recreate with explicit parameters for the final production version.