Back to home
ONLINE 2026 PRIVATE Personal

AI TikTok Video Generator

An AI system producing TikTok videos end-to-end: research → script → voiceover → render → auto-publish

PythonFastAPIClaude Agent SDK9routerRemotionedge-TTSPlaywrightn8nElectron
E0E
Automated pipeline
0router
AI gateway
0
Pipeline stages
0/7
Scheduled posting

Overview

A fully automated AI system that produces TikTok videos through a closed-loop pipeline. An AI agent (built on the Claude Agent SDK) researches the web itself (google_search + web_fetch), writes a Vietnamese voiceover script and picks real images from reputable sources; all model calls go through '9router' — an AI gateway/proxy that routes to multiple models (gemini-pro-agent, search-combo...). Then edge-TTS generates the voiceover, Remotion renders the video (images + voice + captions from templates), and Playwright auto-publishes to TikTok (solving captchas, managing cookies) with scheduling and hashtags. Everything is orchestrated with n8n and driven from an Electron desktop app; the backend runs on FastAPI.

Role: Author — designed the AI pipeline, 9router integration, Remotion rendering and TikTok auto-upload

System architecture

> Input
Topic / News
news pipeline
Desktop App
Electron
> AI Agent (9router)
Claude Agent SDK
9router
model gateway
Web research
search + fetch
> Production
edge-TTS
voiceover
Remotion
render video
> Publishing
Playwright
auto-upload
Captcha solver
Scheduler
+ hashtags
> Orchestration & Infra
n8n
workflow
FastAPI

Modules & Services

AI & Script

4
Claude Agent SDK9router gatewayWeb researchScript tiếng Việt

Media

4
edge-TTS voiceoverRemotion renderImage fetchTemplates

TikTok Auto-Post

4
Playwright uploadCaptcha solverCookie managerSchedule + hashtag

Orchestration

3
n8n workflowElectron appNews pipeline

Backend

4
FastAPIJinja2httpxPillow

Key features

AI agent (Claude Agent SDK) researches the web, writes a Vietnamese voiceover script and picks real images (no fabricated URLs)
Integrates 9router — an AI gateway/proxy routing to multiple models (gemini-pro-agent, search-combo)
Automatic voiceover with edge-TTS
Video rendering with Remotion: images + voice + captions from templates
Auto-publish to TikTok with Playwright: captcha solving, cookie management, multi-account
Scheduled posting + auto hashtags; news pipeline: many news items → batch videos
Orchestrated with an n8n workflow, controlled via an Electron desktop app
FastAPI backend (uvicorn, jinja2, httpx, Pillow)

Highlights

Closed-loop pipeline: from a topic → a published TikTok video, no manual steps
AI agent self-researches the web + picks real images, avoiding fabricated info/URLs
9router: a single AI gateway flexibly routing many models
Captcha solving + cookie management for stable TikTok posting at scale
Lý Vĩnh Thái - Backend Developer & DevOps Engineer