← Back
coll3879xx-cyber

coll3879xx-cyber/dola-render-gateway

High-performance video generation gateway and session coordinator

View on GitHub ↗Sonicvoice.pro ↗
Stars
226
Forks
137
Watchers
226
Open issues
1
Contributors
1
Language
Python
License
—
Default branch
main
Created Sep 4, 2026Updated Sep 30, 2026

Star growth

Today—
This week—
This month—

Star history will appear here once this repo has been tracked for a couple of days.

README

Dola Render Gateway

A high-performance session coordinator and OpenAI-compatible video generation API service.

Provides automated browser session isolation, task queue distribution, extended duration handling, and an intuitive web management dashboard.


🌟 Key Capabilities

  1. OpenAI-Compatible Video API:
    • POST /v1/videos/generations: Submit generation tasks with prompt, aspect ratio, duration (10s, 15s, 30s), and reference images.
    • GET /v1/videos/<id>: Poll task lifecycle (queued -> processing -> completed / failed).
    • High-speed MP4 streaming and static asset delivery.
  2. Extended Duration & High-Definition Media Export:
    • Integrated browser automation profile for managing extended duration options.
    • Direct original quality stream extraction and processing.
  3. Multi-Account Browser Pool:
    • Manages multiple persistent browser profiles in accounts/.
    • Automatic concurrency management, mutual exclusion, and session rotation.
    • Built-in verification handling.
  4. Admin Web Dashboard:
    • Real-time dashboard at /web to monitor generation trends, success rate, account statuses, task queues, and API key management.

📁 Repository Structure

dola-render-gateway/
├── server.py              # FastAPI server (OpenAI-compatible video API & admin routes)
├── browser_pool.py        # Account pool concurrency manager and task scheduler
├── browser.py             # Playwright persistent context launcher
├── video_worker_ui.py     # UI automation worker with verification handler
├── video_worker.py        # Protocol worker and status polling
├── store.py               # SQLite task persistence and API key storage
├── dola_client.py         # API client communication module
├── media.py               # Reference media processor
├── config.py              # Configuration & environment variables
├── add_account.py         # Automated account profile setup
├── web/
│   └── index.html         # Single-page admin management dashboard
└── extensions/
    └── dola30/            # Chromium extension profile

🚀 Quick Start

1. Requirements

  • Python 3.11+
  • Chrome / Chromium browser
  • Proxy with JP/KR egress

2. Setup Environment

# Create virtual environment
python -m venv .venv
source .venv/bin/activate       # On Windows: .venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt
playwright install chromium

3. Configure

# Set your proxy configuration
export DOLA_PROXY="http://127.0.0.1:7890"

# Set API key for client authentication (optional, empty = dev mode)
export DOLA_API_KEYS="sk-your-secret-key"

# Concurrency limits
export DOLA_MAX_CONCURRENCY=3

4. Start Server

uvicorn server:app --host 0.0.0.0 --port 8000

Open http://127.0.0.1:8000/web to access the Admin Dashboard.

🌐 SonicVoice (For Voice Clone)

Website

💬 Admin & Support

Zalo


📜 License

For educational and internal testing purposes.