Android app + API · Kotlin · TypeScript

Short AI videos, from prompt to player.

An Android (Kotlin/Compose) app plus a Node/TypeScript API that turns prompts and images into short videos. Providers are swappable: a free mock, Kling in the cloud, ComfyUI (LTX or Wan) on your own GPU, or any REST aggregator like fal and Replicate via environment config. Provider keys never leave the API — the app uses a per-user key and signed video links, with SSE events and an admin panel.

  • Kotlin
  • TypeScript
  • Android
  • Node API
  • Prototype

View on GitHub Read the setup guide

What it does

Create on the phone, render where it makes sense.

  • Create, history, player

    The Android app creates jobs from prompts and images, follows the queue and plays the finished videos.

  • Swappable providers

    One API, several backends: mock (free, ~15 s), kling (prepaid cloud), comfyui (LTX), comfyui-wan* (Wan 2.1/2.2 on a modest GPU) and generic-* (any REST provider — fal, Replicate — configured by environment, no code per provider).

  • Queue, SQLite, worker

    Express API with a job queue, SQLite persistence via node:sqlite, background worker, video storage and an OpenAPI contract (backend/openapi.yaml).

  • Live events and admin

    Job state streams over SSE (/jobs/:id/events), and a zero-build admin panel exposes queue depth, pause/resume/run-now and per-provider p50/p95 stats.

  • Signed links, isolated users

    Per-user app keys, signed video URLs, seed-based repeat/variations and tested isolation between users.

  • Prompt enhancement

    Optional prompt enhancer before dispatch — see docs/prompt-enhancement.md for the details and limits.

  • Documented and tested

    Architecture, ADRs, runbooks, data model, API reference and provider guides under docs/; tests cover model, security, migrations, OpenAPI contract, SSE, worker/admin and property checks, with coverage gates in CI.

Providers

Start free, pay or self-host when ready.

ProviderCostWhat you need
mock Free Nothing — the default for development.
kling Paid (prepaid packages) No hardware; legacy API implemented, new API on the roadmap.
comfyui (LTX) Electricity / GPU NVIDIA GPU (official LTX asks for 32 GB+; lower-VRAM variants work); depends on your workflow.
comfyui-wan* (Wan 2.1/2.2) Electricity / GPU Modest NVIDIA GPU (8–12 GB; validated on an RTX 3060 12 GB).
generic-* (fal, Replicate…) Provider pricing Any REST text-to-video API; URL, auth and field mapping in environment variables.

Choosing guide: docs/providers/README.md. Adding a new backend: docs/adding-a-provider.md.

Quick start

Three minutes, nothing to spend.

cd backend
npm install
cp .env.example .env   # set APP_KEY; PROVIDER=mock is the default
npm run dev            # requires Node >= 22.13

Try it: curl -H "X-App-Key: <your key>" -F prompt="astronaut cat" localhost:3000/jobs and poll /jobs/<id>. Then open android/ in Android Studio.

Project status

Working prototype, honestly scoped.

Tested: full API with mock, real ComfyUI workflows (LTX 2.3 and Wan 2.2 on an RTX 3060 12 GB), user isolation, signed links, SSE, worker/admin control, the generic provider mapping and FCM push; running locally behind ngrok + Caddy. Not yet validated against real services: live Kling, the Anthropic enhancer with a real key and Docker Compose in production. See docs/roadmap.md.