Status: PrototypeAI applications & agentsSource: Private
Rangkai
Product architecture for an AI video advertisement generator: model routing, prompt compilation, job orchestration, and cost estimation.

- My role
- Product engineer: product research, architecture, and backend foundation.
- Stack
- Next.js · TypeScript · PostgreSQL · Drizzle · Trigger.dev
Approach
- A model router resolves the requested model, checks template compatibility and duration/aspect support, and records the routing reason and estimated cost for each job.
- A prompt compiler builds the provider payload from platform safety rules, a versioned template recipe, locked product inputs, and user direction.
- Provider adapters sit behind one interface; only a mock provider runs today, so the pipeline can be tested without paid API calls.
Status
Prototype. Real video providers are not yet connected, and it has no commercial users.