# ainnate-geminigen/geminigen.ai-api-demo architecture

> Architecture diagram of the GitHub repository ainnate-geminigen/geminigen.ai-api-demo, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-10-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ainnate-geminigen/geminigen.ai-api-demo
- Repository: https://github.com/ainnate-geminigen/geminigen.ai-api-demo

## Overview

##### File structure
- Top-level files:
- LICENSE, NOTICE (legal)
- README.md (project overview and API docs link)
- yeucau.txt (likely requirements/notes)
- Directories:
- assets/images — logo and other static graphics
- css — index.css for styling of pages
- js — index.js (page logic and API wrapper), code_demo.js (live demo scripts)
- HTML pages:
- index.html — landing page
- demo.html — API demo/integration page
- No server code, build scripts, or backend folders.

##### README for additional insights
- Purpose: public web portal for users to try GeminiGen AI (image, video, TTS, chat)
- They host API docs and demo UI: uses simple client-side JS to call HTTPS endpoints

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph "Client Side (Browser)"
        Browser["User Browser"]:::user
        subgraph "Static Assets"
            LandingPage["Landing Page\n(index.html)"]:::frontend
            DemoPage["Demo UI Page\n(demo.html)"]:::frontend
            Stylesheet["Global Stylesheet\n(css/index.css)"]:::frontend
            MainScript["Main Script & API Wrapper\n(js/index.js)"]:::frontend
            DemoScript["Live Demo Scripts\n(js/code_demo.js)"]:::frontend
            Images["Static Images & Graphics\n(assets/images)"]:::frontend
            README["Project Overview & Docs\n(README.md)"]:::frontend
            LICENSE["License Information\n(LICENSE)"]:::frontend
            NOTICE["Legal Notices\n(NOTICE)"]:::frontend
            Notes["Requirements/Notes\n(yeucau.txt)"]:::frontend
        end
    end

    Browser -->|"GET HTML/CSS/JS"| Hosting["Static Hosting\n(Netlify/GitHub Pages)"]:::hosting
    Hosting -->|"Serves Assets"| Browser
    Browser -->|"HTTPS API Calls"| APIGateway["API Gateway\n(geminig en.ai)"]:::api

    subgraph "GeminiGen AI Services"
        subgraph "Public API Endpoints"
            ImageAPI["Image Generation Service"]:::api
            VideoAPI["Video Generation Service"]:::api
            TTSAPI["Text-to-Speech Service"]:::api
            ChatAPI["Chat Service"]:::api
        end
        subgraph "AI Service Layer"
            Microservices["Model Serving Clusters\n& Microservices"]:::internal
            Database["Storage/Database"]:::internal
        end
    end

    APIGateway -->|"Route Request"| ImageAPI
    APIGateway -->|"Route Request"| VideoAPI
    APIGateway -->|"Route Request"| TTSAPI
    APIGateway -->|"Route Request"| ChatAPI

    ImageAPI -->|"Process Request"| Microservices
    VideoAPI -->|"Process Request"| Microservices
    TTSAPI -->|"Process Request"| Microservices
    ChatAPI -->|"Process Request"| Microservices

    Microservices -->|"Read/Write"| Database
    Microservices -->|"Response"| APIGateway
    APIGateway -->|"Response"| Browser

    click LandingPage "https://github.com/ainnate-geminigen/geminigen.ai-api-demo/blob/develop/index.html"
    click DemoPage "https://github.com/ainnate-geminigen/geminigen.ai-api-demo/blob/develop/demo.html"
    click Stylesheet "https://github.com/ainnate-geminigen/geminigen.ai-api-demo/blob/develop/css/index.css"
    click MainScript "https://github.com/ainnate-geminigen/geminigen.ai-api-demo/blob/develop/js/index.js"
    click DemoScript "https://github.com/ainnate-geminigen/geminigen.ai-api-demo/blob/develop/js/code_demo.js"
    click Images "https://github.com/ainnate-geminigen/geminigen.ai-api-demo/tree/develop/assets/images"
    click README "https://github.com/ainnate-geminigen/geminigen.ai-api-demo/blob/develop/README.md"
    click LICENSE "https://github.com/ainnate-geminigen/geminigen.ai-api-demo/tree/develop/LICENSE"
    click NOTICE "https://github.com/ainnate-geminigen/geminigen.ai-api-demo/tree/develop/NOTICE"
    click Notes "https://github.com/ainnate-geminigen/geminigen.ai-api-demo/blob/develop/yeucau.txt"

    classDef frontend fill:#E8F8F5,stroke:#1ABC9C,stroke-width:2px
    classDef hosting fill:#FEF9E7,stroke:#F1C40F,stroke-width:2px
    classDef api fill:#FDEDEC,stroke:#E74C3C,stroke-width:2px
    classDef internal fill:#EBF5FB,stroke:#3498DB,stroke-width:2px
    classDef user fill:#FCF3CF,stroke:#F39C12,stroke-width:2px
```
