How to Use HeyGen Avatar V Digital Twin in opencode
HeyGen Avatar V Digital Twin turns scripts or recorded speech into presenter videos with consistent facial detail and gestures learned from video. Compared with HeyGen Avatar IV, it is better suited to realistic human presenters than stylized characters.
Prompts to try with HeyGen Avatar V Digital Twin in opencode
Copy an example into opencode, or ask in your own words.
Read CHANGELOG.md and use HeyGen Avatar V Digital Twin to make a presenter announcement about the latest release. Write 90 words covering the main change, who it helps, and one next step. Use only documented behavior.
Use HeyGen Avatar V Digital Twin to create an onboarding introduction from this project's README. Write 100 words for a first-time user, explain the purpose before the terminology, and keep production instructions outside the spoken script.
Read the user documentation and use HeyGen Avatar V Digital Twin to create three separate presenter answers to common questions. Keep each answer under 70 words and cite the supporting project file in your accompanying notes.
Use HeyGen Avatar V Digital Twin to turn the approved Spanish onboarding copy in this repository into a presenter video. Preserve the reviewed wording and product names. Flag any unclear text before generating.
Find the approved narration recording referenced in the project and use HeyGen Avatar V Digital Twin to create its presenter segment. Preserve the recorded speech and timing. Keep the presenter separate from any screen demonstration.
How to set up HeyGen Avatar V Digital Twin in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run HeyGen Avatar V Digital Twin
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "fal", "model": "fal-ai/heygen/avatar5/digital-twin", "input": { "prompt": "Hello and welcome to this demonstration of HeyGen Avatar V." } }'
Then paste one of the prompts above: opencode finds HeyGen Avatar V Digital Twin on Spiral, shows the price and runs it.
HeyGen Avatar V Digital Twin providers and prices
Spiral runs HeyGen Avatar V Digital Twin through fal. Open a card for today's price, with every fee included.
Settings you can ask for
HeyGen Avatar V Digital Twin works from your prompt and audio URL. Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Voice | Warm Pro Narrator, Chill Brian, Ivy, John Doe, Monika Sogam, Hope , Archer , Brittney and 94 more | Warm Pro Narrator | Name of the text-to-speech voice to use for the avatar when ` |
| Fit | contain or cover | cover | How the avatar fits within the output frame. 'contain' keeps the full avatar in view (may letterbox); 'cover' fills the frame (may crop). |
| Remove background | on or off | off | Remove the avatar's background. Requires a matting-enabled avatar. |
| Caption | on or off | off | Generate a sidecar SRT caption file alongside the video. |
| Output format | mp4 or webm | mp4 | Output container format. 'webm' produces a transparent video (automatically removes the background) and ignores the ` |
| Resolution | 720p, 1080p, or 4k | 720p | Output resolution preset. |
| Aspect ratio | 16:9, 9:16, 4:5, 5:4, 1:1, or auto | 16:9 | Aspect ratio of the output video. Supported values: '16:9', '9:16', '4:5', '5:4', '1:1', and 'auto'. 'auto' preserves the source aspect ratio when HeyGen can read it, falling back to '16:9' otherwise. |
Every API field of HeyGen Avatar V Digital Twin is on its tool page: open its card above.
What can you do with HeyGen Avatar V Digital Twin in opencode?
Turn project documentation and release notes into presenter videos for users. A coding agent can prepare accurate narration from the repository and keep it aligned with documented behavior.
Feature announcement presenter
Turn approved release notes into a short presenter video explaining the change, who benefits, and the next action.
Customer onboarding lessons
Create one presenter lesson per task, such as inviting a teammate or completing a first project. Update the narration when the instructions change.
Employee training introductions
Give each training module a consistent presenter who introduces the topic and explains what employees should learn.
Multilingual customer education
Render reviewed translations of the same explanation for different audiences while keeping a consistent on-screen presenter.
Recorded narration to presenter video
Use an approved voice recording as the basis for a lip-synced presenter segment in a lesson or product explanation.
Recurring team updates
Convert an approved weekly summary into a presenter briefing covering completed work, upcoming milestones, and decisions.
Video answers to common questions
Create a separate presenter answer for each common customer question, using approved support wording and a concrete next step.
More on HeyGen Avatar V Digital Twin and opencode
Overview
HeyGen Avatar V Digital Twin in other agents
Questions about HeyGen Avatar V Digital Twin in opencode
Can opencode use HeyGen Avatar V Digital Twin?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run HeyGen Avatar V Digital Twin like any built-in tool.
How much does HeyGen Avatar V Digital Twin cost in opencode?
Up to $0.65 per run at the default inputs. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need a fal account to use HeyGen Avatar V Digital Twin in opencode?
No. Spiral runs HeyGen Avatar V Digital Twin on its own fal account. You sign in to Spiral once and never paste a key.
How long does it take to set up HeyGen Avatar V Digital Twin in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while HeyGen Avatar V Digital Twin runs?
HeyGen Avatar V Digital Twin runs in the background. opencode starts the run, checks on it and gives you the video when it's ready.
What is HeyGen Avatar V best for?
Use it for a human presenter delivering explanations, lessons, announcements, or customer education. Its focus is preserving the speaker's appearance and characteristic expressions and gestures.
How does Avatar V compare with Avatar IV?
HeyGen recommends Avatar V for realistic human presenters and consistent identity. Avatar IV is the stronger choice for illustrated, 3D, or other virtual characters.
Which languages does Avatar V support?
Avatar V supports more than 175 languages and dialects with lip synchronization, including English, Spanish, and Japanese. Have a fluent speaker review translated scripts before generating the final video.
What resolution and video length can Avatar V produce?
HeyGen's technical report describes 1080p output and generation of unlimited duration at the model level. That is not a verified maximum duration or resolution guarantee for this particular endpoint.
How should I write an Avatar V script?
Write sentences that sound natural aloud, with short clauses and punctuation that makes the pacing clear. Keep the spoken script separate from production instructions.
Start using HeyGen Avatar V Digital Twin in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


