HeyGen
Let your AI make HeyGen avatar videos with your own key: pick avatars and voices, turn a script or a prompt into a talking video, fill your templates, translate videos into other languages with lip-sync, create photo avatars, and check renders and your balance.
7 天免费 · 无需信用卡 · EU 托管
问 HeyGen 任何事
通过 AnythingMCP 对 HeyGen 试一个真实提示 — Claude 调用工具并返回答案。在你的消息上按 Enter 即可在 Cloud 安装。
在 Cloud 上安装 HeyGenClaude 是 AI,可能会出错。请核对回答。
2 分钟设置
- 1在 cloud.anythingmcp.com 开始免费试用。
- 2在连接器商店点击 HeyGen。提示时粘贴凭据。
- 3生成 MCP API 密钥,将 AI 客户端指向生成的 MCP URL。
HeyGen 指南
面向主流 AI 客户端的逐步设置。
配置 HeyGen
直接来自连接器定义:在哪里获取凭据、需要哪些权限,以及该适配器调用的是哪个 API。 由连接器作者以英文提供。
HeyGen
This connector works with HeyGen (AI avatar videos) through the HeyGen API v3 at https://api.heygen.com with the user's own API key: avatars and their looks, voices, talking avatar videos, template videos, prompt-to-video with the Video Agent, video translation with voice cloning and lip-sync, photo avatars, and the account balance.
Spending: making videos, translations and avatars is paid from the HeyGen API balance (pay-as-you-go wallet, or the plan's credits). HeyGen bills video by length and engine; its current prices are on the API dashboard (https://app.heygen.com/developers/api). Before any call that creates something, tell the user what will be made (length, languages, engine) and wait for a yes; heygen_get_account shows what is left. Listing and checking is free.
Setup (about 2 minutes)
- Sign in at https://app.heygen.com and open the API dashboard: https://app.heygen.com/developers/api.
- Generate an API key and copy it. API usage is billed separately from a HeyGen web subscription; add balance or a payment method there if the account has none.
- Paste the key into
HEYGEN_API_KEYand install the connector. It is sent as theX-Api-Keyheader, only to HeyGen. A key restricted to some scopes needs read access to avatars, voices, videos, templates, translations and the user, and write access for the tools that create.
How a video is made
- Pick a presenter:
heygen_list_avatar_groups(characters), thenheygen_list_avatar_lookswithgroup_id. The lookidis theavatar_id. Pick a voice withheygen_list_voices(or leave it out to use the avatar's default voice). heygen_create_videowithavatar_id,script(up to 5,000 characters) and optionallyvoice_id,aspect_ratio(9:16 for shorts),engine. It returnsvideo_idright away; the video renders in the background.- Poll
heygen_get_videoabout every 30 seconds (rendering takes from a minute to several minutes, longer for long scripts). Atcompleted, give the uservideo_url(MP4),captioned_video_url,subtitle_urlandvideo_page_url. Atfailed, readfailure_message. Download links are signed and expire: callheygen_get_videoagain for fresh ones.
- Templates:
heygen_list_templates,heygen_get_template(variables and their current values), thenheygen_generate_from_templatewith every text variable filled; follow the returned video id withheygen_get_video. - Video Agent:
heygen_create_agent_videowith a prompt makes the whole video (script, scenes, avatar). Followheygen_get_agent_sessionuntil it has avideo_id, thenheygen_get_video. - Translation:
heygen_list_translation_languages, thenheygen_translate_videowith a public video link and the language names. It returns one id per language; pollheygen_get_video_translationevery 30 to 60 seconds.heygen_list_video_translationslists past jobs. - Photo avatar:
heygen_create_photo_avatarwith a portrait link (only a person who agreed, such as the user), thenheygen_get_avatar_lookuntilstatusiscompleted; the look id works inheygen_create_video. - Library:
heygen_list_videoslists finished and running videos;heygen_delete_videois installed switched off.
Engines: avatar_iv is the default; avatar_v gives the most natural motion but only for looks whose supported_api_engines lists it; avatar_iii supports 4K for digital twins and studio avatars but no motion_prompt. Pass it as engine: {"type": "avatar_v"}.
Limits: 10 videos, translations or agent sessions rendering at once on pay-as-you-go (more on Enterprise); 300 list calls and 500 status checks a minute; source files must be public links (video up to 100 MB, audio up to 50 MB and 10 minutes).
Common errors (the reason is in error.code and error.message)
- 401
unauthorized: the key is wrong or revoked. - 402
insufficient_credit: the balance does not cover this video; the message says how much is needed.usage_limit_reachedortrial_limit_exceeded: a workspace or trial limit; an admin or a paid plan lifts it. - 403
insufficient_api_key_scope: the key is restricted; give it the scopes above. - 400
invalid_parameter:paramnames the field (for example an engine the look does not support). - 404
video_not_found,avatar_not_found,voice_not_found,template_not_found: check the id with the list tools. - 429
rate_limit_exceededorquota_exceeded: wait and retry once later, do not loop.
Out of scope here: multi-scene studio videos, image-to-video and prompt video models, lipsync of existing videos, voice cloning and voice design, text to speech on its own, interactive streaming avatars, uploading files (sources must be public links), proofreading translations, webhooks, brand kits and glossaries, folders, batches, and the older v1 and v2 endpoints (retired by HeyGen on 31 October 2026).