Home / Blog / I Replaced OpenAI With Open-Source LLMs in My $10K...

I Replaced OpenAI With Open-Source LLMs in My $10K MRR SaaS — Here's What Happened to My Costs

By CaelLee | | 9 min read

I Replaced OpenAI With Open-Source LLMs in My $10K MRR SaaS — Here's What Happened to My Costs

Last Tuesday at 3 AM, I was staring at my AWS bill with that sinking feeling you get when numbers don't add up. My OpenAI API costs had hit $2,847 for the month — nearly 30% of my revenue. I remember thinking: Pieter Levels built Nomad List on a shoestring. Why am I bleeding cash to Sam Altman?

That night, I did something that either makes me brilliant or completely insane. I decided to rip out OpenAI entirely and rebuild my stack on open-source models.

Here's what happened over the next 90 days, the real numbers, and my honest take on whether open-source LLM tooling can actually compete by 2025.

TL;DR for the Skimmers

The Breaking Point: When Your "Partner" Becomes Your Biggest Expense

Let me back up. ContentAI helps marketers generate blog posts, social copy, and email sequences. We process about 45,000 API calls per day. When I launched in January 2023, GPT-3.5-turbo was cheap — $0.002 per 1K tokens. My monthly LLM bill was $340.

Fast forward to mid-2024. Customers wanted GPT-4 quality. My costs per request tripled. Then came the rate limits, the random deprecations, the "we're updating our pricing model" emails that made my stomach drop.

I'm bootstrapped. No VC safety net. Every dollar in API costs is a dollar I can't spend on customer acquisition (my CAC is already $34 via content marketing, up from $22 last year).

So I asked the question every indie hacker eventually faces: Can I replace this dependency with something I control?

Actually, wait—I should clarify something. When I say "I asked this question," what I really mean is I complained about it on Twitter for three weeks straight until enough people called me out for not doing anything about it. Shoutout to @levelsio for the tough love.

The Stack I Built (And Almost Abandoned Twice)

I didn't go full cowboy and self-host a 70B parameter model on a Raspberry Pi. I needed something production-ready. Here's what I pieced together:

Model Layer:

Tooling Stack:

The first week was brutal. I documented my failures in real-time on Twitter, and indie hacker Marc Lou DM'd me saying "bro you're gonna churn half your users."

He wasn't entirely wrong.

I almost quit twice. Once at 2 AM when my fine-tuned Mistral model started outputting what I can only describe as "Shakespearean marketing copy" for a B2B SaaS client. The CTO emailed me asking if this was a feature. It was not a feature.

The second time was when I realized I'd hardcoded the OpenAI model name in 47 different places across my codebase. Forty. Seven. I just sat there laughing at my own stupidity for a solid five minutes.

The Numbers: 90 Days In

Here's the data I promised. No rounding, no "trust me bro."

MetricOpenAI Stack (June 2024)Open-Source Stack (Sept 2024)
Monthly LLM Cost$2,847$1,124
Avg Response Time1.8s2.3s (Mistral) / 0.9s (Groq)
Output Quality Score*8.2/107.8/10
Customer Churn4.1%4.7%

*Quality score based on customer ratings within the app

Cost breakdown of my new stack:

But here's what the numbers don't show: I spent roughly 120 hours building and fine-tuning this. At my consulting rate ($150/hr), that's $18,000 in opportunity cost. The payback period is about 10 months.

Was it worth it?

Well... that's complicated. Ask me again in April 2025.

Where Open-Source Tooling Actually Wins (Surprising)

1. Prompt Caching Actually Works

With OpenAI, I had no control over caching. With my own stack, I implemented semantic caching via GPTCache. For repeat queries (and you'd be shocked how many marketers ask for "write a blog post about productivity"), my cache hit rate is 38%. Those requests cost me $0.00.

I didn't believe the 38% number at first. Checked my Helicone dashboard three times. Nope, it's real. Marketers really are that predictable.

2. Fine-Tuning Without the "Trust Us" Tax

OpenAI charges $0.008 per 1K tokens for fine-tuned GPT-3.5. I fine-tuned Mistral-7B on 12,000 examples from my best customer outputs. The model now writes in my customers' brand voices better than GPT-4 did. Total cost: $47 in compute.

$47. That's less than my monthly coffee budget. I probably spent more on energy drinks during the migration weekend.

3. No More "We're Deprecating Your Model" Panic

Remember when OpenAI suddenly deprecated GPT-3.5-turbo-0301? I had 48 hours to retest everything. With open models, I control the upgrade timeline. My Mistral-7B from June still runs exactly the same in September.

I think this is the part that doesn't get talked about enough. The lack of panic. The absence of those "URGENT: Action Required" emails. It's... peaceful.

Where It Still Sucks (Honest Edition)

The Tooling Gap Is Real

LangChain's documentation is a maze of outdated examples. I spent 4 hours debugging a chain that worked perfectly in their tutorial but failed in production. The error message was KeyError: 'input' with no stack trace. Just that. Four hours of my life I'll never get back.

The open-source LLM tooling ecosystem feels like Linux in 1998 — powerful if you know what you're doing, hostile if you don't.

Observability Is Fragmented

With OpenAI, I had one dashboard. Now I'm juggling Helicone, Grafana (for self-hosted metrics), and Together AI's console. When something breaks at 11 PM, I'm playing detective across three tools.

Last week I spent 45 minutes debugging a latency spike that turned out to be... my neighbor's WiFi interfering with my home office router. Not even kidding. The GPU instance was fine. My internet was the bottleneck. That's the kind of stupid problem you don't get with managed APIs.

Hiring Is Harder

I brought on a contractor to help with infrastructure. Finding someone who understands vLLM, BentoML, and fine-tuning pipelines? Took 3 weeks. Everyone knows OpenAI. Almost no one has production experience with self-hosted LLMs.

The guy I eventually hired? He learned vLLM by reading the source code during our trial week. Absolute legend. But I can't count on finding another person like that.

Can It Catch Up by 2025? My Bet

I've been tracking the open-source LLM tooling space obsessively. Probably too obsessively. My girlfriend asked me to "please talk about something other than model routers for one dinner."

Here's my timeline prediction:

Q4 2024: LiteLLM and similar proxies become the standard abstraction layer. You'll be able to swap between OpenAI and open models with one line of config. (LiteLLM already does this, but adoption is still early. I've seen maybe 3 other indie hackers using it in production.)

Q1 2025: Managed open-source providers (Together, Anyscale, Fireworks) reach feature parity with OpenAI's fine-tuning API. We're 80% there now. The last 20% is always the hardest though.

Q2 2025: Observability platforms consolidate. I'm betting Helicone or Langfuse becomes the "Datadog for LLMs" and supports all major open models natively. Someone's going to win this race and I really hope it's not another $2K/month enterprise tool.

Q3 2025: The tooling gap closes for 90% of use cases. If you're doing basic RAG, chatbots, or content generation, open-source will be the default choice.

The 10% that stays closed-source: Real-time video understanding, complex agent orchestration, and anything requiring GPT-5 class reasoning. OpenAI and Anthropic will maintain an edge on the frontier.

My prediction: By mid-2025, indie hackers building standard AI products won't need OpenAI at all. The cost savings alone will be too compelling. When you're bootstrapped, a 60% reduction in your biggest expense isn't optional — it's survival.

But I've been wrong before. I thought Clubhouse would kill podcasts. So take all this with a grain of salt.

What I'd Do Differently

  1. Start with a proxy layer first. Before ripping out OpenAI, I should have set up LiteLLM and gradually routed 10% of traffic to open models. Would have caught the quality issues without the 4 AM panic attacks.
  1. Don't self-host too early. My GPU instance was a vanity project. Together AI and Groq are so cheap that self-hosting only makes sense above 100K requests/day. I spent $225/month and 15 hours of maintenance to save maybe $100.

15 hours. For $100. That's $6.66/hour. I was literally paying myself below minimum wage to maintain infrastructure. Stupid.

  1. Build the fine-tuning pipeline before you need it. I waited until I was frustrated with output quality. Should have been collecting customer feedback and building training datasets from day one.
  1. Talk to Marc Lou sooner. He went through this exact migration with his products and had a battle-tested checklist. Indie hackers, reach out to people who've done it. We're all figuring this out together.

Actually, I have one more. 5. Sleep more. I pulled three all-nighters during the migration and shipped a bug that silently truncated outputs over 2,000 tokens. Took me two days to notice. Two customers churned before I fixed it. Sleep deprivation is not a badge of honor.

The Bottom Line

Open-source LLM tooling isn't ready to replace OpenAI for everyone. If you're a non-technical founder or building something that requires cutting-edge reasoning, wait until mid-2025.

But if you're technical, cost-sensitive, and willing to trade some sleep for independence? The tools are good enough right now. My $10K MRR business is proof.

The real question isn't whether open-source will catch up. It's whether you can afford to wait.

I couldn't.

What's your stack? I'm especially curious if anyone's running Llama 3.1 in production. Drop your setup in the comments — I'll share my fine-tuning notebook with anyone who posts their architecture.

Also, if you've found a way to make LangChain not feel like you're wrestling an octopus, please. I'm begging you. Tell me your secrets.

Building in public at contentai.io • Currently at $10,400 MRR • 60% margins (up from 42%) • Still haven't fixed that one CSS bug from March

buildinpublic #opensource #llm #bootstrapping #ai

API Downtime (monthly)47 minutes112 minutes
C

Cael Lee

Full-stack developer with 8+ years of experience. Currently building AI-powered developer tools. I've tested 20+ AI API providers and coding assistants.

Ready to get started?

Get your API key and start building with 180+ AI models.

Get API Key Free