Skip to main content
Glama

generate_video

Start HeyGen video generation and receive a video_id instantly for self-polling via check_video. Intended for long videos; for standard requests, use create_video.

Instructions

Submit a video to HeyGen and return the video_id immediately without waiting for rendering. Use this only when you want to poll yourself with check_video (e.g. very long videos); for most cases use create_video instead. Consumes account credits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoScript the avatar speaks. Max 1500 characters per scene — split longer scripts across scenes.
speedNoSpeech rate (0.5–1.5). Default: 1.0
titleNoTitle shown in the HeyGen dashboard.
localeNoLocale for multilingual voices, e.g. 'es-MX'. Only for voices with support_locale: true.
scenesNoMulti-scene video: one entry per scene. Overrides the flat single-scene arguments.
captionNoBurn subtitles into the video. Default: false
emotionNoDelivery style. Only works on voices with emotion_support: true.
voice_idNoHeyGen voice ID. Use list_voices to find one. Required when text is used.
audio_urlNoPublic URL of a pre-recorded audio file to lip-sync instead of text+voice_id.
avatar_idNoHeyGen avatar ID. Use list_avatars to find one. Required unless talking_photo_id or scenes is given.
dimensionNoOutput size preset: 1080p_landscape (1920x1080), 720p_landscape (1280x720), 1080p_portrait (1080x1920), 720p_portrait (720x1280), square (1080x1080).720p_landscape
backgroundNoScene background. Omit to keep the avatar's original background.
avatar_styleNoFraming of the avatar. Default: normal
talking_photo_idNoTalking photo ID, as an alternative to avatar_id. Use list_avatars with include_talking_photos.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Without annotations, the description carries the burden. It discloses the asynchronous nature ('without waiting for rendering'), implies poll-based workflow ('poll yourself with check_video'), and warns of credit consumption ('Consumes account credits'). It could add more on side effects/failure modes, but the key behaviors are covered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three concise sentences: the first states the action and result, the second gives usage guidance with an alternative, and the third warns of cost. Every sentence earns its place, and the most important information is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (14 params, nested objects, no annotations, no output schema), the description + schema adequately inform an agent. The description clarifies when to use it and its async behavior, and the schema covers all parameter details. It lacks detailed return formatting or error handling, but states it returns video_id, which is sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema thoroughly documents all 14 parameters. The description adds no parameter-specific semantics beyond what the schema provides, which aligns with the baseline of 3 for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool submits a video to HeyGen and returns the video_id immediately without waiting for rendering, which is a specific verb+resource+behavior. It also distinguishes itself from the sibling create_video, satisfying the requirement for differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit recommendations are given: use this only when polling with check_video is appropriate (e.g., very long videos), and use create_video otherwise. This is a clear when-to-use/alternative guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/carlosvidal/heygen-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server