every 88-second video is generated through a multi-stage AI pipeline that turns your stream-of-consciousness writing into a psychoanalytic film. the entire codebase is open source.
before generating scenes, the system finds:
each scene includes an analyst's margin note — what the system sees in your writing that you might not see yourself. defenses, desires, repetition patterns, moments of genuine breakthrough. this is visible in the scene overlay when you click any frame.
if you've written before, the pipeline accesses your accumulated memory: psychological profile, recurring patterns, avoidances, breakthroughs, emotional signatures, and echoes from similar past sessions. this means your videos get more personal and insightful over time.
$5.00 USDC per video. Grok charges $0.05/second of video (~$4.40 for 88s), plus Gemini images (~$0.40) and Claude script (~$0.05). paid via wallet transaction on Base.
the entire pipeline is written in Rust (Axum + Tera + HTMX). you can read, fork, and modify every part of it:
github.com/jpfraneto/anky-monorepo
key files:
src/pipeline/video_gen.rs — the full pipeline: script generation, image gen, video gen, stitchingsrc/routes/api.rs — API endpoints for generation, polling, resumesrc/services/grok.rs — Grok image-to-video integrationsrc/services/gemini.rs — Gemini image generationsrc/memory/ — the memory system (embeddings, recall, profiles)templates/video.html — this page you're looking atwrite for 8 minutes to create an anky, then transform it into an 88-second video powered by Grok.
sign in