Skip to content
Diaphanic
AI engineeringIn production

Self-hosted AI platform: Case study · Eight AI services on self-hosted open models

Eight AI features in production, with no AI bill that grows with every user.

Client
Local-commerce app
Where
India
Services
AI integration, Web apps, SaaS & marketplaces, AWS & cloud

AI engine · one machine

Tailscale only
  • textLlama 3.2 3B
  • visionQwen3-VL 8B
  • imageFLUX.2 Klein 4B
  1. Auto replies for businessesdirect · while they wait · Llama 3.2 3Bworking
  2. Menu extractionqueue: menu.extraction · Qwen3-VL 8Bqueued
  3. Business descriptionsdirect · while they wait · Llama 3.2 3Bdone
  4. AI deal assistantqueue: deal.image · Llama 3.2 3B + FLUX.2 Klein 4Bdone
  5. Task titlesdirect · while they wait · Llama 3.2 3Bdone

Per-call AI fees₹0.00

Cloud GPU bill avoided≈ ₹10L / month

A month in cloud GPU costs avoided
≈ ₹10LA month in cloud GPU costs avoided
Per-call AI fees, at any volume
₹0Per-call AI fees, at any volume
AI services in production
8AI services in production
Open models on one machine
3Open models on one machine

The business

A local-commerce platform in India: businesses list their menus, services and deals, customers chat with them, and people post small jobs for others to do.

A café owner photographing a printed menu; the phone lists every dish and price

Small business owners won't write a profile, type in a 90-item menu or design an offer poster. AI could do it for them, but every option on the table priced it out. A third-party AI API bills for every call, so the bill would grow with every user. Renting GPUs on AWS to run the models ourselves came to an estimated ₹10 lakh a month.

What success looks like for them

  • Goal 1: Do the tedious work for every business owner
  • Goal 2: Keep the AI cost flat as users grow
  • Goal 3: Keep business data private
  • Goal 4: Never make anyone wait behind a slow job

The bill

Three ways to run the AI. Two of them came with a bill the platform couldn't carry.

≈ ₹10L

a month in cloud GPU costs avoided

Our estimate for running the same models on AWS GPU instances, around the clock.

  • Option 1

    A third-party AI API

    Pay per call

    Every reply, menu and image is billed, so the bill grows with every user.

    • Quick to start
    • Cost tied to growth, and business data leaves the platform
  • Option 2

    Rented GPUs on AWS

    ≈ ₹10 lakh a month

    GPU instances running the same three models around the clock (our estimate).

    • Data stays private
    • A large fixed bill before the first user
  • What we built

    Option 3

    Open models on our own machine

    ₹0 per call

    One dedicated machine. The cost is the hardware and its power, not the traffic.

    • Flat cost, private data, no per-call fees
    • Needs engineering: queues, retries, a private network

Eight AI services

Eight jobs that used to fall on busy owners and a small support team, now done by three open models.

For business ownersQueued: a long jobQwen3-VL 8B · reads photos

Menu extraction

A photo of a menu or a services price list becomes a structured list: every item, price and section.

In

  • 📷 menu-photo.jpg
  • Restaurant · 2 pages

Out

  • Starters · Paneer tikka · ₹240
  • Starters · Hara bhara kebab · ₹190
  • Mains · Dal makhani · ₹260
  • … 42 items in 6 sections

Up to 90 items per menu. Photos are read in memory and never written to disk.

Illustrative samples

What we built

Eight AI services on three open models, engineered to run on one machine and never fall over.

  1. 01

    Three open models served by Ollama on one dedicated machine: text, vision and image

  2. 02

    Menu and price-list reading from a photo, up to 90 items at a time

  3. 03

    A chat that builds a deal from a few answers, limited to the business's real catalogue

  4. 04

    Auto replies for businesses from their own profile, hours, deals and notes, with hand-off to the owner

  5. 05

    A help assistant that answers from the platform's own plans and help pages, in English and Hindi

  6. 06

    Two RabbitMQ queues with retry limits and dead-letter queues, so a long job never blocks a short one

  7. 07

    A private Tailscale network: the AI machine has no port open to the internet

  8. 08

    AI allowances per plan, metered for each business every month

Stack

  • Ollama
  • Llama 3.2 3B
  • Qwen3-VL 8B
  • FLUX.2 Klein 4B
  • RabbitMQ
  • Tailscale
  • Node.js
  • Express
  • MongoDB
  • Redis
  • Socket.IO
  • AWS S3

One dedicated machine

0 open ports

Open models · Ollama

  • Llama 3.2 3Bwrites and answers
  • Qwen3-VL 8Breads photos
  • FLUX.2 Klein 4Bdraws images

Queues · RabbitMQ

  • menu.extractionMenus and item details · 5 tries, then a dead-letter queue
  • deal.imageDeal posters · 3 tries, then a dead-letter queue

NetworkTailscale only, private

PhotosRead in memory, never stored

Direct jobsReplies, titles, descriptions

Per-call fees₹0

How it runs

One machine, two queues and a private network. Follow one menu photo through it.

How one menu photo becomes a finished menu

01 / 05

Step 01

The owner sends a photo

A business owner photographs their menu or price list in the app. The backend saves it to S3 and answers at once: the owner doesn't wait for the AI.

How we built it

Slow work never sits inside a web request. The app gets an instant reply and a live update when the job is done.

Sized for growth

The rest of the platform has a cost plan too, before it’s needed.

Our plan for the app servers, database and bandwidth at each size, written before launch. The AI’s cost doesn’t appear in it: it stays the same machine at every size.

  1. 10,000 monthly users

    200–300 online at peak · One app server, a managed database, image bandwidth

    ₹5,000–14,000/ month

  2. 1 lakh monthly users

    2,000–3,000 online at peak · Two app servers behind a load balancer; ₹30–55K with a CDN

    ₹45,000–1,00,000/ month

  3. 10,000 online at once

    about 3–5 lakh monthly users · Three to four app servers, managed Redis, bandwidth behind a CDN

    ₹75,000–1,30,000/ month

06Results so far

What it changed,in numbers.

A month in cloud GPU costs avoided (our AWS estimate)
≈ ₹10LA month in cloud GPU costs avoided (our AWS estimate)
Per-call AI fees, however many users
₹0Per-call AI fees, however many users
AI services in production
8AI services in production
Open models on one machine: text, vision and image
3Open models on one machine: text, vision and image
Languages the help assistant answers in
2Languages the help assistant answers in
Ports open to the internet on the AI machine
0Ports open to the internet on the AI machine

The client's name is withheld at their request. The ₹10 lakh figure is our estimate for running the same models on AWS GPU instances around the clock.

For your business

What this means for a business like yours

  1. 1

    AI doesn't have to come with a bill that grows with your users. For high-volume, well-defined jobs, open models on your own hardware do the work.

  2. 2

    Queue anything slow, so nobody waits behind a job they didn't start.

  3. 3

    We'll tell you when a paid API is the better choice. For rare, open-ended questions it usually is.

Next growth story

Start a project

Tell us aboutyour business.

Send us what you do and what you want to achieve. You’ll get a clear reply within one working day — questions or a next step, not a sales deck.

Not ready for a project? Start with something free, and judge us on what comes back.

  • Reply within one working day
  • A fixed, written quote first
  • Australia · Canada · India
  • contact@diaphanic.com