Skip to content

P-005 · 2025

CinematicTale — AI storytelling SaaS

Users create characters, generate narratives, produce AI images via PuLID face-swap. Live and monetised — Razorpay subscriptions, Firebase auth, 7-phase launch playbook.

Role
Founder · solo engineer
Year
2025
Outcome
Live · cinematictale.com
Next.js 16React 19Firebase Auth / Firestore / StorageGoogle GenAIKie.AIPuLID / fal.aiUpstash RedisRazorpaySigned webhooksPWA

The problem

Generating AI imagery for stories has a fundamental coherence problem: every frame produces a different person. Without character consistency, you can generate "a girl walking down a street" twenty times and get twenty different girls. That's not storytelling — that's a slideshow.

Architecture

Interactive system view

See the product from purpose to implementation.

Follow the work, then switch views when you want the practical answer: who it is for and what it is built with.

Flow pausedStep 01 / 05

Step 01 of 05

Use PuLID face-swap (fal.ai) as…

Use PuLID face-swap (fal.ai) as the core mechanism — generate the scene, then face-swap the consistent character in.

Full system map

The grouped dependency view stays visible so the infrastructure is readable at a glance.

System map

How the pieces connect

The AI Adapter is the architectural keystone — every storybook page, comic panel, and video clip flows through a Gemini-primary, Kie.AI-fallback chain guarded by a circuit breaker, so a Gemini rate-limit, content-block, or outage transparently retries on Kie's Veo/Flux without the user seeing failover. Async paths (Video Tale generation, Razorpay subscriptions) close the loop via HMAC-signed webhooks that grant credits and stitch video URLs back into the same Firestore documents the UI is already reading — so the page just re-renders when the work finishes, no polling protocol needed.

Outcome

  • Live and monetised at cinematictale.com.
  • Real users generating real stories with consistent characters.

Lessons learned

  • Character consistency is the leap from "AI image generator" to "AI storytelling." It's the entire product.
  • Subscription requires bulletproof auth. Razorpay integration is straightforward; the hard part is handling the edge cases (cancellation mid-cycle, plan changes, payment failures).
  • Marketing is a system, not an afterthought. The 7-phase playbook turned launch from "hit publish and pray" into a deliberate sequence.