Which open-source HeyGen alternative can run in our own infrastructure?
If your organization cannot send EU personal data, voices or likenesses to a hosted service, the closest self-hosted options are MuseTalk, LivePortrait, SadTalker and Hallo2. These are open-source talking head and lip sync projects you can run on your own GPUs, but they are research-grade components. They do not replace HeyGen's hosted workflow, avatar management, templates, or the contractual controls a vendor provides. HeyGen's published compliance and DPA material describes a hosted service with Zero Data Retention for designated workspaces, and it does not describe an on-premise deployment, so the self-hosted route is a different product decision, not a configuration change. Security, privacy and procurement reviewers should treat it that way from the start.
Each project carries its own license, and the licenses differ in ways that matter for commercial use. MuseTalk's code is MIT licensed and its README says the trained model is available for any purpose, even commercially, while advising that the owner of its HDTF training data be consulted about commercialization. LivePortrait's code is MIT, but its bundled InsightFace detection models are for non-commercial research only and must be replaced before commercial use. SadTalker's README says its license was updated to Apache 2.0 with the non-commercial restriction removed. Hallo2's code is MIT, but its high resolution feature uses a modified CodeFormer component under the separate S-Lab License 1.0. Legal should review each model file and dependency in the actual pipeline, not only the repository license.
A self-hosted pipeline also leaves gaps that a hosted service fills. Ask your team to confirm, for each project, what it lacks compared with HeyGen: consent and likeness verification for the person being portrayed, a managed avatar and voice library, admin roles and SSO, audit logging, and any retention controls for uploaded faces and audio. Your team will also own the data flow, storage, patching and access control, and the evidence a privacy or security review will ask for. Before approving a self-hosted option, require a written list of the models, weights and dependencies used, their licenses, and the controls around each input. If those controls cannot be shown, the hosted service with a signed DPA remains the only option you can document.
How the open-source projects' licenses differ
This table compares MuseTalk, LivePortrait, SadTalker and Hallo2 on code license, model or component license and commercial-use conditions. Read each row across both the code and the model columns, because a permissive code license does not always cover every file the project ships. The main takeaway is that no project should be approved for commercial use until its linked license text and bundled components have been checked.
| Project | Code license and model or component license | Commercial-use conditions |
|---|---|---|
| MuseTalk | Code is MIT licensed. The README says the trained model is available for any purpose, even commercially. | The README says the HDTF training data owner should be consulted about commercialization. Confirm this with counsel before production use. |
| LivePortrait | Code is MIT licensed. The LICENSE file says the bundled InsightFace detection models are for non-commercial research only. | Commercial use requires replacing the InsightFace detection models. Budget engineering and retesting for that swap. |
| SadTalker | The README says the license was updated to Apache 2.0 and the non-commercial restriction removed. | Apache 2.0 terms apply. Confirm the current LICENSE file in the repository matches the README before approval. |
| Hallo2 | Code is MIT licensed. The high resolution feature uses a modified CodeFormer component under the separate S-Lab License 1.0. | The high resolution feature is governed by S-Lab License 1.0, not MIT. Review that license separately or disable the component. |
| Who must review | Legal or open-source compliance owner for each project and each bundled component. | Record the license version, the commit reviewed and the date in your third-party software register. |
What is free and what your team still has to run
The open-source talking head and lip sync projects are free to download under their licenses, but the license is the cheapest part of the decision. The cards below cover what your organization or a services partner must still supply to run them in its own infrastructure, and what to confirm before approving one for staff use with personal data.
Licenses are not the whole bill
Each project is free to download, but a free license does not mean a free deployment. The code and model licenses govern use, not operation. Hosting, GPU capacity, integration, identity, logging, upgrades and security testing are paid for by your organization in staff time, infrastructure or a services partner's fees. Ask each project's maintainers and your infrastructure team to size the GPUs for your expected render volume before comparing options.
GPU capacity and sizing
Talking head generation is compute-heavy, and the hardware needed depends on the model, output resolution and how many jobs run at once. Your infrastructure team should ask the project maintainers which GPUs they test against, then load test with representative clips. Cloud GPU instances recur as a monthly cost, while owned hardware is a one-time purchase plus power, cooling and replacement. Neither figure is supplied here, so request it in writing from your team or partner.
Identity and access control
HeyGen's hosted service includes account and workspace controls that your team would have to rebuild. A self-hosted pipeline needs single sign-on, role separation between people who can upload faces and voices and people who can only render video, and removal of access when staff leave. Confirm how each project handles authentication, because most research releases are built for a single user on a workstation rather than a multi-user service.
Consent records for likenesses and voices
Talking head tools use a person's face and voice, so your organization must hold the consent and rights evidence for every likeness it renders. Self-hosting does not transfer that duty to the open-source project. Build a register that records who consented, to what use, for how long, and where the source footage is stored. Check the license for each model separately, since a permissive code license can sit beside a dataset or model component with narrower terms.
Logging, retention and deletion
The hosted service documents retention windows and Zero Data Retention for designated workspaces, which your team would now define itself. Decide how long source images, audio and rendered video are kept, who can delete them, and how deletion is logged and checked. Confirm that application and GPU logs do not capture personal data by default, because debug output often holds full file paths and request payloads.
Upgrades and security testing
Open-source projects release fixes on their own schedule, and a research repository may not publish security advisories. Assign an owner for tracking upstream changes, patching dependencies and retesting after each change. Commission security testing of the deployed pipeline, including the upload path, file parsing and the web interface, before staff use it with personal data. Ask any services partner to deliver findings with fixes and a retest.
Which self-hosted option fits which situation
For teams testing talking head or lip sync output on non-sensitive material, the main question is whether the code and model licenses permit the use you have in mind. SadTalker is the simplest starting point for image plus audio video, since its README states the license was updated to Apache 2.0 and the non-commercial restriction removed. MuseTalk's code is MIT licensed and its README says the trained model is available for any purpose, but it also asks you to consult the owner of the HDTF training data before commercializing. A pilot on your own GPU hardware keeps test footage inside your network, yet it does not give you vendor-style controls.
- SadTalker: Apache 2.0 according to its README, with the non-commercial restriction removed.
- MuseTalk: MIT code license, with a model-level note on HDTF training data.
- LivePortrait: MIT for the code, but its bundled InsightFace detection models are non-commercial research only.
- Hallo2: MIT for the project, but its high resolution feature uses a CodeFormer component under the separate S-Lab License 1.0.
- Test data: Use synthetic or consenting-subject images and audio so that no real patient or EU personal data enters the pilot.
Before any pilot widens, confirm each component's license in the repository you actually deploy, because a fork or bundled model can differ from the upstream README.
Organizations that must show who generated what, under which account, and with which data handling need more than a working model. None of the open-source projects listed here offers SSO, role-based access or audit logging out of the box, so those controls must be built around the pipeline by your own platform team or an implementation partner. A self-hosted deployment also moves the processor role in-house, which changes the GDPR and HIPAA analysis compared with a vendor contract. Your compliance team needs to decide whether the in-house pipeline will be documented as a processing activity, and how biometric likeness and voice data are classified in your records.
- Access control: Place the service behind your identity provider and restrict who can submit source images and audio.
- Audit trail: Log job requests, operator identity, input hashes and output locations in your own logging system.
- Likeness consent: Record written consent for each subject whose face or voice is used, since no project supplies this workflow.
- Retention: Define deletion for source footage, generated video and intermediate files, because the projects do not manage these for you.
- Dependency review: Track each model checkpoint and third-party component so that a license change or a removed model can be traced.
Before approval, ask your security and privacy teams to review the pipeline as a system, not as a model, and confirm that controls described here are in place in your environment.
Teams that embed a talking head or lip sync feature in a product they sell face the strictest license review, because the code license is only one layer. Each model checkpoint, detection model and training dataset can carry its own terms. SadTalker's README describes an Apache 2.0 license with the non-commercial restriction removed, which makes it the clearest option on paper. MuseTalk's model note and LivePortrait's InsightFace requirement both need explicit legal sign-off before commercial release. Hallo2's CodeFormer component under S-Lab License 1.0 is a separate license that must be assessed on its own terms.
- Component inventory: List every model, detection network and enhancement module that ships with the product.
- Replacement plan: For LivePortrait, replace the bundled InsightFace detection models before commercial use, as its LICENSE file requires.
- Training data: For MuseTalk, document the consultation with the HDTF data owner or a legal conclusion on it.
- Likeness rights: Confirm that users may only generate video of people who have consented, and build that check into the product.
- Version pinning: Pin each release so that license terms are reviewed against a known artifact.
Before shipping, have counsel sign off on a written component register, since the code license alone does not settle commercial use.
Air-gapped environments remove the cloud from the data path entirely, which resolves the transfer and sub-processor questions that a hosted service raises. The trade-off is that you must move code, model weights and any dependencies across the gap through an approved process, and then verify them. HeyGen's compliance and DPA materials describe a hosted service with Zero Data Retention for designated workspaces, not an on premise deployment, so an air-gapped requirement rules that option out. Open-source projects can run offline once their files are present, but you must confirm that every runtime dependency, including face detection and enhancement components, is available inside the enclave.
- Artifact transfer: Route code, weights and checkpoints through your media control process and record hashes at each step.
- Offline dependencies: Mirror Python packages, CUDA libraries and model files that the pipeline loads at runtime.
- Network egress: Block outbound calls so that no inference, telemetry or model download reaches the internet.
- Hardware planning: Confirm GPU capacity for the chosen model, since generation is compute heavy and the projects do not publish service levels.
- Licenses in scope: Apply the same component review as in other tabs, because an offline deployment does not change license obligations.
Before deployment, test the enclave build with network egress disabled to confirm that the pipeline runs without any external call.
What a self-hosted pipeline is missing compared with HeyGen
The first gap to plan for is product scope. HeyGen's hosted service bundles avatar and voice clone management, brand kits, templates and a managed workflow for producing videos, and the open-source projects in this topic are research and model code rather than a finished production platform. MuseTalk handles real-time lip synchronization, LivePortrait animates still portraits, SadTalker generates a talking head from one image and an audio track, and Hallo2 animates portraits from audio. None of these, as far as the supplied material shows, provides a managed library of consented avatars, a voice clone registry, shared brand assets or a review and approval flow. Before you assume any of that is absent or present, read each repository's README, issues and documentation, and check the releases you plan to pin, because community forks and wrappers often add interfaces that the upstream project does not ship.
The second gap is the contract and retention layer. HeyGen's compliance page describes Enterprise data excluded from AI training by default, Zero Data Retention for API content on designated workspaces under a ZDR addendum, and retention windows from 24 hours to 100 days, with avatars, voice clones, brand kits and templates kept until deleted. A self-hosted pipeline has none of these vendor-side controls to rely on. Retention, deletion and training use become properties of your own storage, logs, GPU hosts and backups, so you must write those rules yourself and test that uploaded faces, voice samples and generated videos are actually removed. Consent records for any real person's likeness also become your responsibility, because no vendor is keeping them for you.
The third gap is legal paper. The projects are open-source code and model weights published under licenses, not vendors, so they do not sign a BAA, a DPA or any transfer terms, and no one stands behind their security posture or breach notice. Check the license of every component separately: MuseTalk's model is described as available for any purpose while the training data owner should be consulted about commercialization, LivePortrait's bundled InsightFace detection models are non-commercial research only and must be replaced for commercial use, and Hallo2's high resolution feature depends on a modified CodeFormer component under the separate S-Lab License 1.0. Ask counsel to approve a component list, and treat any use with protected health information as outside what these projects can support without your own controls and a risk assessment.
What buyers ask before approving a self-hosted avatar tool
Can we use open-source talking head models for commercial work?
Yes for some projects, but the answer depends on each component's license, not the repository name. MuseTalk's code is MIT licensed and its README says the trained model is available for any purpose, even commercially, while advising you to consult the owner of its HDTF training data before commercializing. LivePortrait's code is MIT, but its bundled InsightFace detection models are for non-commercial research only and must be replaced for commercial use. SadTalker's README says its license moved to Apache 2.0 and the non-commercial restriction was removed. Hallo2 is MIT, but its high resolution feature uses a modified CodeFormer component under the separate S-Lab License 1.0. Have legal review the code license, every bundled model and every training data notice before approval.
Does self-hosting replace HeyGen's compliance program?
No. Running a model in your own infrastructure moves the data path under your control, but it does not create a vendor contract, certifications or audit reports. HeyGen's compliance page describes EU and UK GDPR as its standard, SOC 2 Type II and SOC 3 reports, a HIPAA BAA for Enterprise customers and Zero Data Retention for designated workspaces. An open-source project offers none of these by default. Your team must document the lawful basis, retention, access controls, subprocessors in your own stack and the evidence your auditors will ask for.
What work does our organization have to do itself?
The model is only one part of the pipeline. Your staff own the hosting, GPU capacity, patching of the Python environment and model weights, access control, logging, backup and the decision on what inputs are allowed. You also own the consent workflow for faces and voices, the review of generated video before release and the handling of any personal data in scripts or uploaded photos. Most of these tasks recur after launch, so ask any services partner to split its written scope into one-time build work and ongoing operations.
What drives the cost of a self-hosted avatar pipeline?
Cost has four main drivers. Infrastructure covers GPU hardware or cloud instances and storage for source media and rendered video, and it recurs. Staff time covers engineers who build, tune and operate the pipeline. License review covers legal time on each component and its training data, which is usually a one-time effort plus updates when models change. Security testing covers an assessment of the deployed system, including access controls and how uploaded faces and audio are handled. Hosted HeyGen costs are subscription-based, so compare against total ownership, not license fees alone.
Do we still need a likeness and voice consent process?
Yes. Running a model yourself does not remove the legal and ethical duty to get permission from the person whose face or voice is used. Open-source models make it easier to create lifelike output from a single photo or audio clip, so the risk of misuse sits with you. Keep written consent records that name the uses, the duration and the right to withdraw, and block generation from images or voices you cannot document. Confirm local rules on synthetic media and biometric data with your privacy counsel, since these vary by jurisdiction.
What should we ask a services partner in a quote?
Ask for a written scope that names each project in the pipeline, the license review for every model and bundled component, and the hosting environment inside your infrastructure. Request a list of deliverables, including architecture documentation, access and logging configuration, backup procedures and the handover of operating runbooks. Ask which items are one-time and which are retainers, what security testing is included and how findings are retested, and who approves changes to model versions. DeployOpen plans, implements, hardens and documents self-hosted open-source platforms in your own cloud accounts, data centers or air-gapped networks, and works from fixed-scope agreements agreed in writing before work starts.
What catches buyers out with open-source avatar projects
The open-source talking head projects differ in code license, model license and bundled components, and none of them ships with the controls a regulated deployment expects. Each card below is a point where a pipeline that looks free on paper can fail a legal, privacy or security review.
Mixed licenses in one pipeline
A self-hosted pipeline usually chains several projects, and each brings its own terms. MuseTalk's code is MIT licensed, but LivePortrait's LICENSE file says its bundled InsightFace detection models are for non-commercial research only and must be replaced for commercial use. Hallo2's high resolution feature is a modified CodeFormer component under the separate S-Lab License 1.0. Map every model and component in the chain, not only the repository you cloned, before any output reaches a customer.
LivePortrait LICENSETraining data consent for MuseTalk
MuseTalk's README says the trained model is available for any purpose, even commercially, but it also tells users to consult the owner of the HDTF training data about commercialization. The code license does not settle that question. Ask counsel whether the HDTF terms permit your intended use, and record the answer. Without that record, a commercial avatar built on the model carries an unresolved rights question about the faces used to train it.
MuseTalk on GitHubLikeness rights for avatars built from people
Talking head tools exist to make a person's face and voice speak. A license on the software says nothing about whether the person in the source image or audio agreed to that use. For employees, patients or customers appearing in training clips or synthetic presenters, obtain written consent that covers the specific model, the purposes and the retention period. Treat this as a separate approval from the code license review.
Research code without vendor support
These projects are published as research repositories. Nothing in the supplied materials indicates a support contract, a security response process or a committed release schedule for them. HeyGen's compliance page lists SOC 2 Type II and SOC 3 reports, and a self-hosted stack has no equivalent third party to produce them. Ask who will patch dependencies, fix vulnerabilities and answer questions from your auditors, and budget for that internal or contracted ownership.
Research repositories versus production controls
A research repository typically assumes a single trusted operator, a local file system and no tenant separation. A regulated deployment needs SSO, role-based access, audit logging, encryption at rest, retention enforcement and a documented data flow. Check whether the repository handles uploaded faces and audio in a way you can delete on request, and whether logs contain personal data. None of these controls is supplied by the project itself.
Hosted retention terms do not carry over
HeyGen's compliance page says avatars, voice clones, brand kits and templates are kept until deleted, and that Zero Data Retention for API content is enabled only for designated workspaces under a ZDR addendum. A self-hosted pipeline changes that picture entirely: you become the party that stores, copies and deletes source images, audio, intermediate frames and generated video. Write a retention schedule for each artifact, including GPU scratch space and backups, before you move any personal data into it.
HeyGen compliance pageWhat to collect before approving a self-hosted pipeline
This sequence turns a self-hosted talking head or lip sync pipeline into a reviewable record: every component, its license, its data path, its consent basis and its owner. The output is a file your security, privacy and legal reviewers can approve or reject before anyone generates a video with a real person's likeness or voice.
Inventory every component and its license
List each model, weight file, detection or face-processing library, codec, and supporting service in the pipeline, including the ones pulled in indirectly by a repository. For each item, record the code license, the model or weight license, and any training data terms, reading the license file itself rather than the project summary. Note that MuseTalk's README asks reviewers to consult the owner of its HDTF training data before commercial use, and that Hallo2's high resolution feature uses a CodeFormer component under a separate S-Lab License 1.0. The output is a dated license register signed off by legal, with one row per component.
Confirm the replacement plan for InsightFace models
The LivePortrait LICENSE file says its bundled InsightFace detection models are for non-commercial research only and must be replaced for commercial use. Ask the engineering owner to name the replacement detection model, its license, and the commit or release where the swap is made, then ask legal to confirm that license permits your intended use. Keep a record showing the bundled weights are absent from the production build. If no replacement is approved, the pipeline cannot be treated as cleared for commercial video, regardless of the MIT license on the code.
Record the consent basis for likeness and voice data
Before any real person's face, photo, or voice enters the pipeline, document the legal basis for processing it, the consent or contract that covers the person, and the purposes it covers, such as training courses for staff versus external marketing. Confirm with your privacy team how the basis maps to the EU or UK GDPR where the people depicted are in scope, and how the basis is withdrawn. Self-hosting moves the processing into your environment, but it does not create a consent basis. The output is a consent register linked to each source asset, and a rule that assets without a record are rejected at intake.
Define data handling and retention inside your environment
Map where source images, audio, generated video, intermediate frames, logs, and model outputs are written, which storage tier holds each, and who can read them. Set a retention period and a deletion method for each category, and confirm that temporary files are removed after rendering. HeyGen's compliance page describes retention windows for API content and says avatars and voice clones are kept until deleted, so compare your own deletion behavior against those categories when you document it. The output is a data flow diagram and a retention schedule that your security team can test in a sample run.
Confirm support and maintenance ownership
Name the person or team responsible for patching the inference stack, updating model weights, tracking upstream license changes, and responding to vulnerabilities in dependencies. Confirm who holds the GPU capacity, who monitors logs, and who approves changes to the model version in production. If you engage an outside implementer for deployment or support, ask for the responsibility split in writing, including what the implementer does not cover. The output is a responsibility matrix with named owners and a review date set by your change management process.
Test access control and audit logging
Verify that the pipeline sits behind your identity provider, that only approved staff can submit likeness or voice assets, and that every render is logged with the requester, source asset identifier, consent record reference, and output location. Run a test where a source asset without a consent record is rejected. The output is a short test report with screenshots or log excerpts that your reviewers can file with the approval.
Document an exit path back to a hosted tool
Decide in advance what happens if the self-hosted pipeline fails, a license changes, or a use case needs a feature the open-source stack lacks. Record whether the team would fall back to a hosted vendor, which vendor and plan would be used, what data would move, and how the vendor's DPA or BAA would be checked before any personal data is sent. Also record how generated assets and consent records are exported so they are not stranded in the pipeline. The output is a one-page exit plan approved by privacy and procurement, reviewed with the rest of the file.
How the self-hosted components fit together
The pipeline starts with a still portrait or a short video plus an audio track that the organization controls. The audio and image pass into a lip sync or talking head model running on the organization's own GPUs, and each model and its bundled detection or enhancement components must be checked against its own license before use. Generated frames are written to storage inside the organization's infrastructure, and nothing is published until a human review gate approves the output. Check each dependency's license, not only the headline project license.
Self-hosted talking head flow with license checks and a review gate before publishing.
How DeployOpen helps teams that must keep avatar video in their own infrastructure
DeployOpen plans, implements, hardens and documents self-hosted open-source talking head and lip sync platforms inside the client's own cloud accounts, data centers or air-gapped networks. The work starts with a written scope that fixes what replaces HeyGen, what data the pipeline touches and what evidence the client's compliance team will receive.
How we scope
- Engagements are fixed-scope, with scope and deliverables agreed in writing before work starts.
- The written scope lists which avatar, lip sync and voice components are in use, and which license terms each one must meet.
- We confirm with the client which likeness, voice and consent records must stay in-house and how long they are kept.
How we build
- We deploy the chosen open-source projects in the client's infrastructure with access control and audit logging.
- We replace or re-license any component whose model or bundled detection license restricts commercial use before production.
- We test the pipeline for data exposure, credential handling and misuse of uploaded faces and voices, then fix and retest findings.
How we hand over
- You receive documentation of the architecture, data flows, storage locations, retention settings and license review.
- We prepare the controls and evidence your privacy, security and compliance teams need for their own assessments.
- Handover covers how to run, update and back up the pipeline, so your staff can operate it without us.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Retainers can track upstream license changes and model updates in the projects your organization depends on.
- Any new scope, such as adding a feature or a new environment, is priced and agreed in writing before work starts.

