# Gemini Multi-Node Cluster Orchestrator: Comprehensive System Specification ## 1. System Architecture The system employs a dual-track architecture: - **FastAPI Asynchronous Hub (:8765)**: Handles incoming client REST API requests, load balancing, health monitoring, queue dispatching, and task lifecycle management. - **Chrome MV3 Automation Extension**: Automates Google Gemini Web interactions, intercepts internal websocket streams, extracts lossless canvas images (Nano Banana 2.1), and streams MP4 videos (Gemini Omni) straight to disk. - **Isolated Sandbox Layer**: Each Google worker runs with `--user-data-dir=profiles/worker_N` and custom `--proxy-server`, guaranteeing complete isolation of cookies, localStorage, indexedDB, and hardware canvas fingerprints. ## 2. API Specifications ### 2.1 Image Generation Endpoint - **URL**: `POST /v1/images/generations` - **Headers**: `Content-Type: application/json`, `Authorization: Bearer ` (Optional) - **Request Body**: ```json { "prompt": "A futuristic cyberpunk city with neon lights and flying cars, cinematic 8k", "model": "imagen-3.0-generate-002", "n": 1, "size": "1024x1024", "response_format": "b64_json" } ``` - **Response**: Standard OpenAI image response with `created` timestamp and `data` array containing `b64_json` or URL. ### 2.2 Video Generation Endpoint - **URL**: `POST /v1/videos/generations` - **Request Body**: ```json { "prompt": "Drone shot flying through a mountain waterfall at sunrise", "model": "gemini-omni-video", "duration": 5 } ``` ### 2.3 Cluster Management - `GET /api/workers`: Returns online workers, quotas, active tasks, error rates, and average latency. - `POST /api/workers/{worker_id}/pause`: Pauses task dispatching to worker. - `POST /api/workers/{worker_id}/resume`: Resumes task dispatching to worker. ## 3. Cryptographic License Verification - Cloud Authority signs licenses with RSA-2048 private key. - Client verifies with baked-in RSA-2048 public key: `openssl dgst -sha256 -verify keys/public_key.pem -signature ` - Monotonic watermark mechanism prevents OS clock rollback attacks. - Re-installation resilience: HWID = SHA256(Motherboard_UUID + Disk_Serial + CPU_ID)[:16]. ## 4. Official Contacts - Commercial Support: mysuperhub@proton.me - Official Portal: https://mysuperhub.top/ - China Mirror: https://gitee.com/mysuperhub/gemini-cluster-controller