<?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: erniou86</title>
    <description>The latest articles on DEV Community by erniou86 (@ernioiu8).</description>
    <link>https://dev.to/ernioiu8</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%2F4117644%2F806358ce-f4cb-4fa7-b1e6-76d47fbf2859.png</url>
      <title>DEV Community: erniou86</title>
      <link>https://dev.to/ernioiu8</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ernioiu8"/>
    <language>en</language>
    <item>
      <title>I Put a Paid AI Video Generator on My Own Gaming GPU — No Cloud Bill</title>
      <dc:creator>erniou86</dc:creator>
      <pubDate>Wed, 09 Sep 2026 13:50:56 +0000</pubDate>
      <link>https://dev.to/ernioiu8/i-put-a-paid-ai-video-generator-on-my-own-gaming-gpu-no-cloud-bill-24hk</link>
      <guid>https://dev.to/ernioiu8/i-put-a-paid-ai-video-generator-on-my-own-gaming-gpu-no-cloud-bill-24hk</guid>
      <description>&lt;h1&gt;
  
  
  I Put a Paid AI Video Generator on My Own Gaming GPU — No Cloud Bill
&lt;/h1&gt;

&lt;p&gt;A few weeks ago I asked myself a dumb question: &lt;em&gt;what would it take to run a real, paid AI video service from the GPU that used to play Elden Ring?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Turns out the answer is: &lt;strong&gt;a lot of nights, one stubborn graphics card, and a pile of quantized weights.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Here's the honest walkthrough of how I built &lt;a href="https://ai.jxzhihi.com/intl" rel="noopener noreferrer"&gt;Marvis AI Studio&lt;/a&gt; — a tiny paid AI video generation service running entirely on a single RTX 5060 Ti 16GB at home.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why would anyone do this?
&lt;/h2&gt;

&lt;p&gt;Cloud GPU video generation costs real money per second. For a hobby project I wanted to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Own the full stack (queue, billing, generation) instead of renting it&lt;/li&gt;
&lt;li&gt;Learn how quantization and local inference actually behave under production-ish load&lt;/li&gt;
&lt;li&gt;Keep it cheap enough that "free trials" don't bankrupt me&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Spoiler: the hardware choice matters more than the model choice.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Choice&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GPU&lt;/td&gt;
&lt;td&gt;RTX 5060 Ti 16GB (single card, no SLI magic)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Generation engine&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://github.com/comfyanonymous/ComfyUI" rel="noopener noreferrer"&gt;ComfyUI&lt;/a&gt; on localhost:8188&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Video model&lt;/td&gt;
&lt;td&gt;MiniMax H3 (pruned INT8 quantized local weights)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;VLM&lt;/td&gt;
&lt;td&gt;qwen3-VL (32B, NVFP4/AWQ) for prompt understanding&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API gateway&lt;/td&gt;
&lt;td&gt;Python (FastAPI-style) on :8088 — queue, quota, redemption codes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Public access&lt;/td&gt;
&lt;td&gt;Cloudflare tunnel → &lt;code&gt;ai.jxzhihi.com&lt;/code&gt; (no port forwarding, no static IP needed)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Everything except the public domain runs on one Windows box in my apartment.&lt;/p&gt;

&lt;h2&gt;
  
  
  The model that actually fits
&lt;/h2&gt;

&lt;p&gt;The critical moment was finding &lt;strong&gt;MiniMax H3 weights quantized/pruned for local VRAM&lt;/strong&gt;. The INT8 pruned build fits inside 16GB with room for ComfyUI overhead. Quality at 864×480 is surprisingly usable; 1344×768 is where I'd call it "good".&lt;/p&gt;

&lt;p&gt;Real timings on this card:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Resolution / duration&lt;/th&gt;
&lt;th&gt;Wall-clock per video&lt;/th&gt;
&lt;th&gt;File size&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;864×480 / ~3s&lt;/td&gt;
&lt;td&gt;~6 min&lt;/td&gt;
&lt;td&gt;~0.6 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1344×768 / ~5s&lt;/td&gt;
&lt;td&gt;~21 min&lt;/td&gt;
&lt;td&gt;~2.5 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1664×928 / ~5s&lt;/td&gt;
&lt;td&gt;~40 min&lt;/td&gt;
&lt;td&gt;~2.6 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Yes, it's slow. That's the trade-off of a $300-ish consumer card doing what data-center GPUs do. The &lt;strong&gt;single serial queue&lt;/strong&gt; became a feature: nobody can hammer it, because physics won't let them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Gotchas that cost me weekends
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;HostBuffer.read_file_slice failed&lt;/code&gt; on ComfyUI&lt;/strong&gt; — a known bug pattern. Fix: launch with &lt;code&gt;--cuda-device 0 --disable-pinned-memory&lt;/code&gt;. Without that flag the workflow randomly dies mid-generation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Default gateway timeouts&lt;/strong&gt; — 20-minute timeouts are not enough when one job takes 40. I set the queue wait ceiling to 60 minutes and surface queue position to the user.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Exposing the wrong port&lt;/strong&gt; — keep ComfyUI strictly on localhost and only expose the gateway. One route mistake and strangers are queuing jobs on your raw engine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Abuse protection before marketing&lt;/strong&gt; — free tier is 3 generations per IP per day with a 90-second minimum gap. Real humans try it; scripts bounce.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The business part (tiny but real)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Free trial: 3 generations/IP/day — enough to feel the quality&lt;/li&gt;
&lt;li&gt;Paid: redemption codes, because wiring Stripe to a home server is a story for another post&lt;/li&gt;
&lt;li&gt;A public &lt;a href="https://ai.jxzhihi.com/intl" rel="noopener noreferrer"&gt;/intl landing page&lt;/a&gt; with honest stats: real PV, tips, and shares (no fake numbers)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One trick I recommend: &lt;strong&gt;log tip/share intent before you build payment integration.&lt;/strong&gt; Knowing that strangers &lt;em&gt;want&lt;/em&gt; to pay you is better market research than any survey.&lt;/p&gt;

&lt;h2&gt;
  
  
  Would I do it again?
&lt;/h2&gt;

&lt;p&gt;Yes — but I'd warn my past self about three things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Pick the quantization first, then pick the GPU. I got lucky.&lt;/li&gt;
&lt;li&gt;Assume every long job will be interrupted. Design the queue to survive restarts.&lt;/li&gt;
&lt;li&gt;A single GPU is a hobby-scale business. Treat it as a learning lab with a URL, not a cloud competitor.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you're curious, you can poke the live thing at &lt;strong&gt;&lt;a href="https://ai.jxzhihi.com/intl" rel="noopener noreferrer"&gt;ai.jxzhihi.com/intl&lt;/a&gt;&lt;/strong&gt; — free trials included. I genuinely want feedback from people who run local AI stacks: what would you change about the architecture?&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Built solo at home. One GPU, one tunnel, zero cloud bill.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>gpu</category>
      <category>selfhosting</category>
      <category>machinelearning</category>
    </item>
  </channel>
</rss>
