<?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: JoaoPauloNA</title>
    <description>The latest articles on DEV Community by JoaoPauloNA (@joaopaulona).</description>
    <link>https://dev.to/joaopaulona</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%2F4070200%2Feffce120-dbea-46a7-91f6-dc43c6941269.png</url>
      <title>DEV Community: JoaoPauloNA</title>
      <link>https://dev.to/joaopaulona</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/joaopaulona"/>
    <language>en</language>
    <item>
      <title>I bootstrapped an API business on a single RTX 3060, from literally zero budget</title>
      <dc:creator>JoaoPauloNA</dc:creator>
      <pubDate>Sun, 09 Aug 2026 19:47:22 +0000</pubDate>
      <link>https://dev.to/joaopaulona/i-bootstrapped-an-api-business-on-a-single-rtx-3060-from-literally-zero-budget-5gpe</link>
      <guid>https://dev.to/joaopaulona/i-bootstrapped-an-api-business-on-a-single-rtx-3060-from-literally-zero-budget-5gpe</guid>
      <description>&lt;p&gt;Two weeks ago I had zero dollars, one gaming PC with an RTX 3060 Ti, and a stubborn idea: what if the cost of running a small, useful LLM-backed API could be close to zero, if you just... hosted the model yourself?&lt;/p&gt;

&lt;p&gt;Here's what I shipped, and the specific things that broke along the way — because the failures were more instructive than the plan.&lt;/p&gt;

&lt;h2&gt;
  
  
  The idea
&lt;/h2&gt;

&lt;p&gt;A small API that turns plain English into working code artifacts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;/v1/regex&lt;/code&gt; — "validate a Brazilian CEP" → a working regex, an explanation, and match/no-match examples&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/v1/sql&lt;/code&gt; — "list the 10 customers who bought the most last month" → a SQL query&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/v1/commit-message&lt;/code&gt; — a diff description → a conventional commit message&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/v1/json-schema&lt;/code&gt; — "an e-commerce product with name, price, category" → a JSON Schema&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Nothing revolutionary. The point wasn't the idea — it was proving the economics work when the model is yours.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ollama&lt;/strong&gt; running &lt;code&gt;qwen2.5-coder:7b&lt;/code&gt; locally on a Windows box with an RTX 3060 Ti (8GB VRAM — plenty for a 7B coder model at Q4 quantization)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FastAPI&lt;/strong&gt; wrapping it, with a JSON-only system prompt and a tolerant parser (models don't always respect "respond with JSON only," so I regex out the first valid &lt;code&gt;{...}&lt;/code&gt; block if &lt;code&gt;json.loads&lt;/code&gt; fails on the raw text)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cloudflare Tunnel&lt;/strong&gt; (the free "quick tunnel," not a named/paid one) to expose it publicly without port forwarding or a static IP&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RapidAPI&lt;/strong&gt; as the billing/marketplace layer — free tier + paid tier, they handle subscriptions so I don't have to build that&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Total infrastructure cost: &lt;strong&gt;$0&lt;/strong&gt;. The GPU was already sitting there.&lt;/p&gt;

&lt;h2&gt;
  
  
  What actually broke (the useful part)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Windows process persistence is not what you think.&lt;/strong&gt; Anything you launch directly in an SSH session — even with &lt;code&gt;Start-Process&lt;/code&gt;, even backgrounded — dies the moment the SSH session closes, because Windows ties it to a Job Object scoped to that session. The fix that actually works: wrap the command in a &lt;code&gt;.bat&lt;/code&gt;, register it as a Scheduled Task (&lt;code&gt;schtasks /create ... /sc onlogon&lt;/code&gt;), and trigger it once immediately with &lt;code&gt;schtasks /run&lt;/code&gt;. That survives disconnects.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"Free static domain" isn't always what it says.&lt;/strong&gt; I tried ngrok's free static domain (a real, permanent feature — not a myth) to get a stable URL instead of Cloudflare's rotating one. It works great in a browser. It's useless for an API: ngrok's free tier shows a mandatory interstitial warning page to any request that doesn't send a specific &lt;code&gt;ngrok-skip-browser-warning&lt;/code&gt; header — and a marketplace proxy calling your API on a customer's behalf will never send that header. Every single API call returns an HTML warning page instead of JSON. I found this by testing the raw endpoint externally with no special headers before trusting the "solved" checkbox — which is the actual lesson: &lt;strong&gt;test the exact path a real client will take, not the happy path you control.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;LLMs don't reliably return valid JSON, even when told to.&lt;/strong&gt; The fix wasn't a smarter prompt — it was a tolerant extractor: try &lt;code&gt;json.loads&lt;/code&gt; on the raw text, then try pulling a fenced&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
 block, then fall back to a brace-matching regex. Three tries, cheap, and it turned "the model sometimes wraps JSON in markdown" from a 502 error into a non-issue.

**A brand-new marketplace listing needs its own free tier.** I gated the public demo (`/demo/*`) with a simple in-memory per-IP daily counter (5 free tries/day) instead of requiring signup at all for the landing page. Letting people try before they subscribe converts better than a wall.

## The economics, honestly

RapidAPI takes 25% of marketplace revenue, plus a small payout processing fee. That's real, and it means the math on a $9.99/month plan is closer to $7 net than $10. Worth knowing before you price.

## What's next

The backend is done. The actual bottleneck now is distribution — a working API with zero users doesn't pay rent. If you're building something adjacent (dev tools, LLM-backed APIs, or you're just curious about the self-hosted-model economics), I'd genuinely like to hear what you're seeing.

**API listing:** [https://rapidapi.com/JoaoPauloNA/api/plain-english-to-code-api](https://rapidapi.com/JoaoPauloNA/api/plain-english-to-code-api) (free tier, no credit card to try the demo)

---

*Building this in public as I go — happy to answer questions about the self-hosted LLM economics, the FastAPI/Ollama integration, or the Windows automation quirks above.*
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>api</category>
      <category>buildinpublic</category>
      <category>llm</category>
      <category>selfhosted</category>
    </item>
  </channel>
</rss>
