Adds HeyGen as a first-class provider for OpenClaw's built-in video_generate tool. Same interface every other video provider in OpenClaw uses (Google Veo, Runway, Kling, Wan, MiniMax, Dashscope) — now with identity-preserving avatar/presenter video.
openclaw plugin install heygen
Set HEYGEN_API_KEY in your environment (get one at
const result = await video_generate({
model: "heygen/video_agent_v3",
prompt: "Hi team, here's the product update for this week.",
providerOptions: {
avatar_id: "<your-avatar-id>",
voice_id: "<your-voice-id>",
orientation: "landscape", // or "portrait"
},
});
// result.url → downloadable .mp4
Avatar / voice ids: list from the HeyGen dashboard or the heygen-skills companion skill (which composes opinionated avatar/voice picking on top of this plugin).
| Field | Type | Notes | |
|---|---|---|---|
| ------- | ------ | ------- | |
avatar_id | string | HeyGen avatar id; falls back to models.providers.heygen.defaultAvatarId. | |
voice_id | string | HeyGen voice id; falls back to models.providers.heygen.defaultVoiceId. | |
style_id | string | Optional style template. | |
orientation | `"landscape" \ | "portrait"` | Maps from aspect ratio. 1:1 rejected. |
mode | `"generate" \ | "chat"` | Default generate. chat keeps full poll budget for interactive flows. |
callback_url | string | Async webhook completion. | |
callback_id | string | Caller-supplied correlation id for the webhook. | |
incognito_mode | boolean | Skip retention on HeyGen side where supported. |
401 → HeyGen API key missing or invalid402 / quota → HeyGen credit limit reachedthinking polls → fast-fail with a hint pointing at avatar_id / voice_id.failed status surfaces HeyGen's failure_message rather than a generic error.Three-tier backoff: 5s × 6 → 15s × 12 → 30s until MAX_POLL_ATTEMPTS. Long renders (20–45 min) stay under typical HeyGen per-key rate limits.
api.heygen.com.MIT. See LICENSE.
共 1 个版本