<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: QingQiu</title>
    <description>The latest articles on DEV Community by QingQiu (@qingqiu).</description>
    <link>https://dev.to/qingqiu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4122225%2Ff8b677c8-dcd3-4f0b-9a9d-3396a02d3325.png</url>
      <title>DEV Community: QingQiu</title>
      <link>https://dev.to/qingqiu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/qingqiu"/>
    <language>en</language>
    <item>
      <title>I built a choose-your-own-adventure site where every choice is an AI-generated video</title>
      <dc:creator>QingQiu</dc:creator>
      <pubDate>Sat, 12 Sep 2026 14:07:24 +0000</pubDate>
      <link>https://dev.to/qingqiu/i-built-a-choose-your-own-adventure-site-where-every-choice-is-an-ai-generated-video-2p92</link>
      <guid>https://dev.to/qingqiu/i-built-a-choose-your-own-adventure-site-where-every-choice-is-an-ai-generated-video-2p92</guid>
      <description>&lt;p&gt;&lt;strong&gt;Live: &lt;a href="https://playcyoa.com" rel="noopener noreferrer"&gt;https://playcyoa.com&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A few weeks ago, AI video crossed a weird threshold: generation became &lt;em&gt;faster than playback&lt;/em&gt;. Fal's H3 Max (a post-trained MiniMax H3) renders a 5-second clip in under 3 seconds, and Pieter Levels immediately turned it into Infinite Slop — an endless crowd-steered AI livestream that reportedly costs ~$4,000/day to run.&lt;/p&gt;

&lt;p&gt;I wanted the same "the video doesn't exist until you choose it" feeling, but for a single player — and at a cost a solo dev can actually afford. So I built PlayCYOA: choose-your-own-adventure stories where every branch plays a real AI-generated scene.&lt;/p&gt;

&lt;h2&gt;
  
  
  The trick: most players take the same branches
&lt;/h2&gt;

&lt;p&gt;A 24/7 shared livestream burns money nonstop. A branching story doesn't have to: a depth-3 tree is only 7 clips, generated once (~$0.45 each at MetaSo's ¥0.09/sec pricing), then served from a static directory forever. Ten thousand people can play it for the same $3.&lt;/p&gt;

&lt;p&gt;The API is only called when someone writes their &lt;em&gt;own&lt;/em&gt; premise — and that's where the cost guardrails live:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A hard daily generation cap&lt;/strong&gt; (currently 30 scenes/day, one env var)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prepaid provider balance&lt;/strong&gt; — when it's gone, generation just pauses; the site and all cached stories keep working&lt;/li&gt;
&lt;li&gt;If traffic ever explodes, the expensive action is already the gated action&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Next.js 16&lt;/strong&gt; — static genre/story pages for SEO, API routes for the generation proxy&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MiniMax H3 via MetaSo&lt;/strong&gt; — MiniMax-compatible API at roughly 1/6 the official price; the provider is abstracted so I can swap to fal or MiniMax direct with one env var&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An LLM&lt;/strong&gt; for writing the two branch options in custom mode (with static fallbacks when no key is set)&lt;/li&gt;
&lt;li&gt;A small Python script that expands a premise into a branching tree (LLM) and renders every node's clip offline — content production is a batch job, not a runtime dependency&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Async branching is the sweet spot.&lt;/strong&gt; Real-time infinite streams are a rich team's game right now; letting a single user wait ~40s per scene works today and the UX holds up.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Continuity is the hard part.&lt;/strong&gt; Each clip is generated independently, so characters drift between branches. Framing each scene as a &lt;em&gt;location change&lt;/em&gt; ("follow the candlelight upstairs") hides most of it — the cut becomes a feature.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Video SEO pages are thin on the ground.&lt;/strong&gt; The SERP for "AI choose your own adventure" is mostly text-only tools and tiny new sites — felt like an open lane.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you try it, I'd love to hear where the story continuity breaks for you — that's the thing I'm iterating on next.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>ai</category>
      <category>webdev</category>
      <category>nextjs</category>
    </item>
  </channel>
</rss>
