← All work

P-002 · 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
Live
Visit →
Next.js 16FirebaseGeminifal.aiRazorpay

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.

Approach

  • Use PuLID face-swap (fal.ai) as the core mechanism — generate the scene, then face-swap the consistent character in.
  • Firebase Auth + Firestore as the backbone: characters, stories, generations all live in user-scoped documents.
  • Multi-step generation: user defines character → writes story → system generates scenes one at a time with face conditioning.
  • Razorpay subscription wired through Firebase — cancellation, upgrade, plan management all handled.
  • 7-phase marketing playbook from Day 0: Foundation → Organic → PH Launch → Creator Seeding → India Push → SEO → Paid.

Architecture

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.