Arts, Entertainment & SportsMedia, Software & TelecomProfessional Services
Argil
AI video creation and digital human platform
Built the Director agent and the Custom and Single-Image Avatar pipelines for Argil, an AI video platform that turns a brief into an edited, fully editable video with digital avatars.
Argil: AI video creation and digital human platform
96–99%
Storyboards valid on the first try
92–97%
Avatar shots pass QA on first render
6–10×
Faster avatar renders
60–80%
Lower cost per minute than avatar APIs
Stack
Overview
Argil (argil.ai) is a Paris-based AI video startup that went through Y Combinator. It turns an idea, a script or an article into an edited video: users describe what they want, and Argil's Director agent writes, shoots, cuts and mixes the video, with every shot still editable.
The central idea: separate creative reasoning from AI generation from video rendering, so AI-generated media behaves like normal editable project data instead of becoming an opaque final video.
The problem
Creating professional short-form video normally requires several tools and people: copywriting, storyboarding, recording a presenter, voice-over, B-roll, captions, editing and revisions.
- Character consistency: keeping the same person recognizable across scenes, angles and video models is hard.
- Agents that spend money: an agent that pays for video generation must not loop, guess or pay twice.
- Opaque output: many AI video tools generate one final MP4, which makes revision difficult.
My role
I worked on Argil's engineering team as an AI engineer and designed and built two parts of the product: the Director agent, and the Custom and Single-Image Avatar pipelines (consent capture, footage checks, per-avatar LoRA training, rendering, quality control and the Triton serving of the avatar, face and speech models). I shared with the team the interfaces my parts depend on: the Model Router adapters for avatar models, the GPU job queues and the hand-off to the render pipeline. The editor, the Remotion render pipeline, the public API, billing, authentication and the AWS infrastructure were built by other engineers on the team.
What I built
Director agent
- A LangGraph.js graph from brief to script, storyboard, shoot, review and cut, checkpointed after every node.
- Planning on Claude Sonnet 4 with tool use for structure; a stable system prompt lets most calls hit the prompt cache.
- Storyboards timed to the real voice, with shots split on Whisper large-v3 word timestamps.
Critic, budget and conversational edits
- A Review node pairing deterministic GPU checks with a Claude Sonnet 4 AI Critic; failed shots are rewritten or moved to the next model.
- A per-session credit budget checked before every paid step.
- Conversational edits classified by the Edit router, so only the affected nodes run again.
Custom and Single-Image Avatars
- Consent capture (Rekognition Face Liveness, a Whisper-checked consent statement, ArcFace matching) that must pass before training starts.
- A per-avatar LoRA behind an acceptance gate on ArcFace identity and lip-sync against held-out footage.
- Single-Image Avatars with no training step, created in about 30 seconds.
Talking-avatar rendering and serving
- Both avatar types render on InfiniteTalk, served by NVIDIA Triton, with audio cross-attention lip-sync and the LightX2V LoRA cutting sampling to 4 steps.
- Identity QA on sampled frames; a failed shot is retried with a new seed, then rendered without its LoRA.
Results
- Storyboards: 96–99% of the Director's storyboards passed schema, duration and shot-timing checks on the first try, and 99.5% or more after the single repair call.
- Shot review: 80–90% of generated shots passed the critic on the first take and 95–98% within two revisions; the rest were flagged to the user.
- AI Critic: the critic agreed with human reviewers on 85–92% of scores on the calibration set.
- Conversational edits: a typical conversational edit regenerated only 5–20% of a video's shots.
- Director cost: prompt caching and per-node prompts cut the Director's model cost per session by 40–60%.
- Avatar QA: 92–97% of avatar shots passed lip-sync (LSE-C / LSE-D) and identity QA on the first render, and 99% or more after the retry and fallback.
- Per-avatar LoRA: 90–96% of custom avatars passed the acceptance gate after their first training run; the adapter raised identity similarity by 3–8% over no adapter.
- Render speed: the LightX2V 4-step LoRA made avatar renders 6–10× faster than standard 40-step sampling.
- Cost: self-hosted InfiniteTalk cut the cost per rendered avatar minute by 60–80% compared with commercial avatar APIs.
Tech stack
| Layer | Technologies |
|---|---|
| Frontend | Next.js, React, TypeScript, Tailwind CSS, Remotion Player |
| Backend | NestJS, Zod, BullMQ, Redis, Kafka (Amazon MSK) |
| Agent | LangGraph.js, Claude Sonnet 4 (Anthropic API), MongoDB Atlas Vector Search |
| Avatar & ML | InfiniteTalk on Wan2.1-I2V-14B-480P, LightX2V LoRA, musubi-tuner, Whisper large-v3, RetinaFace, ArcFace, SyncNet, Real-ESRGAN, PyTorch |
| Generation APIs | FLUX, Veo, Seedance, Kling, Sora, ElevenLabs, MiniMax |
| Data | MongoDB Atlas, Amazon S3, CloudFront |
| Infrastructure | Amazon EKS, Karpenter GPU NodePools (L4, L40S), NVIDIA Triton, Argo Workflows, Terraform, GitHub Actions |
Related case studies


