How to Use HeyGen Video Agent v2 in Muse Code
HeyGen Video Agent v2 turns a written brief into a narrated video for explainers, lessons, and product announcements. Give it a complete script and scene directions when the wording and visual sequence matter.
Prompts to try with HeyGen Video Agent v2 in Muse Code
Copy an example into Muse Code, or ask in your own words.
Read the README and use HeyGen Video Agent v2 to make a roughly 60-second introduction for new users. Explain the problem, the main workflow, and the next step. Use only documented claims.
Read CHANGELOG.md and use HeyGen Video Agent v2 to create a roughly 30-second release announcement. Cover the latest user-facing change, who benefits, and one action to take.
Use the project's quickstart documentation to write a three-scene tutorial, then generate it with HeyGen Video Agent v2. Target 60 seconds, with one narrated step per scene and consistent visuals.
Read the troubleshooting guide and use HeyGen Video Agent v2 to make a roughly 60-second how-to video about its most common error. Explain the symptom, cause, and documented fix.
Read the architecture overview and use HeyGen Video Agent v2 to create a roughly 90-second lesson for new contributors. Explain three components with narrated motion graphics and a closing recap.
How to set up HeyGen Video Agent v2 in Muse Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Install Muse Code
curl -fsSL https://dev.meta.ai/install.sh | bash
- Ask Muse to add the server
Start muse and ask:
Add the Spiral MCP server at https://api.spiral.ai/mcp
- Sign in
In your terminal, run:
muse mcp login spiral
Use the Spiral skill
- Send Muse Code 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 Video Agent v2
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/v2/video-agent", "input": { "prompt": "Create a 15-second explainer video about fal.ai Video Workflows.\n Target audience: Developers, AI engineers, and creative tech teams\n …" } }'
Then paste one of the prompts above: Muse Code finds HeyGen Video Agent v2 on Spiral, shows the price and runs it.
HeyGen Video Agent v2 providers and prices
Spiral runs HeyGen Video Agent v2 through fal. Open a card for today's price, with every fee included.
config.duration off adds $13.26 per run. config.duration adds $3.978 per minute. Billed on config.duration.
What can you do with HeyGen Video Agent v2 in Muse Code?
Turn project documentation into narrated explainers, tutorials, and release announcements. Have the coding agent extract the relevant facts and write scene instructions before generating the video.
Customer onboarding explainers
Explain one product concept with narration and a short sequence of supporting visuals.
How-to videos
Turn a written procedure into a narrated sequence with one clear instruction per scene.
Course lessons
Teach one concept, walk through an example, and finish with a recap.
Employee training
Explain a policy through a practical scenario and a short checklist.
Product announcements
Introduce a change, explain who it helps, and describe the next action.
Sales outreach
Build a short narrated introduction around a prospect's problem and a relevant product benefit.
Company news briefs
Summarize approved announcements with names, dates, and next steps supplied in the brief.
More on HeyGen Video Agent v2 and Muse Code
Overview
HeyGen Video Agent v2 in other agents
Questions about HeyGen Video Agent v2 in Muse Code
Can Muse Code use HeyGen Video Agent v2?
Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run HeyGen Video Agent v2 like any built-in tool.
How much does HeyGen Video Agent v2 cost in Muse Code?
`config.duration` off adds $13.26 per run. `config.duration` adds $3.978 per minute. Billed on `config.duration`. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Muse Code plan is separate.
Do I need a fal account to use HeyGen Video Agent v2 in Muse Code?
No. Spiral runs HeyGen Video Agent v2 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 Video Agent v2 in Muse Code?
About two minutes: install Muse Code, then ask Muse to add the server, then sign in.
Does Muse Code wait while HeyGen Video Agent v2 runs?
HeyGen Video Agent v2 runs in the background. Muse Code starts the run, checks on it and gives you the video when it's ready.
What is HeyGen Video Agent good for?
Use it for narrated explainers, how-to videos, course lessons, training, product demonstrations, and sales outreach. HeyGen also lists news briefs and company updates.
How long can a HeyGen Video Agent v2 video be?
The documented minimum is five seconds, with suggested lengths of 30, 60, or 90 seconds. Duration is approximate, and those suggestions do not establish a maximum.
Can I supply a complete script?
Yes. HeyGen recommends pasting a full script to guide the scene sequence, while Video Agent adjusts flow, timing, and visuals.
What should I include in the brief?
Identify the audience and list the facts, names, numbers, and steps that must appear. That gives Video Agent concrete requirements to work from.
How do I keep scenes visually consistent?
Define a visual style before generation and carry it through the scene instructions. HeyGen warns that unspecified styling can lead to scenes that look inconsistent.
Start using HeyGen Video Agent v2 in Muse Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Muse Code:
set up https://spiral.ai/SKILL.md


