Zenaique

Qwen 3.5: when does running your own GPU beat paying the hosted API per token?

Short answer·Medium·4.0 · 0·~3 min·Asked atDatabricksDifyIntel·Relevant atMicrosoft
Attempt it

Qwen 3.5 is available both via hosted APIs (Alibaba Cloud, OpenRouter, Together) and as open weights you can self-serve. Explain the cost crossover: name the dominant fixed vs variable factor, the utilization knob that decides which side wins, and give an order of magnitude break even in tokens per day.

Free · 2 AI evals / day
TL;DR

Hosted API = variable cost (per token). Self-host = fixed cost (per GPU-hour).

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

Picture two ways to get drinks at a wedding: pay $5 per glass at the bar, or rent your own bartender for $1000 a day. If only 10 people show up and each has 2 drinks, the bar is way cheaper at $100. If 500 people show up and each has 4 drinks, the bartender is way cheaper because you've spread their flat fee across 2,000 drinks. The crossover is somewhere around 200 drinks. The bartender also has hidden costs: you have to manage their schedule, find a backup if they get sick, and make sure they show up. For a small wedding the convenience of the bar might be worth a slightly higher per-drink price.

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

Self-host vs hosted API is one of the most asked, most botched questions in production LLM engineering. Botched because most candidates have a strong opinion but haven't done the math; the opinion is usually wrong by 3-5x because they used peak token-rate instead of realistic utilization. The framing the question forces, fixed vs variable cost, utilization as the deciding knob, ops cost as the hidden third factor, is the right way to ground the conversation.

Qwen 3.5 is a useful concrete model for this question because it's a 32B-class model available both as open weights (free to run on your own hardware) and via multiple competing hosted APIs at well-published prices (~$0.50/M tokens for the standard tier). The crossover math becomes concrete: at what daily token volume does the GPU's $60/day fixed bill become cheaper per token than the API's variable bill?

The answer depends entirely on how heavily you load the GPU. Peak capacity on one H100 is ~50M tokens/day; realistic utilization brings that to 25-35M tokens/day. The hosted API at $0.50/M means the self-host break-even needs 120M tokens/day, far above what one H100 can sustain. Multiple GPUs or premium-tier API pricing change the picture; ops cost shifts it further. This deep dive walks the math, explains the utilization assumptions, and gives the heuristics that survive contact with real production traffic patterns.

Fixed vs variable: the structural mismatch

Hosted API pricing is a textbook variable cost: Xpermilliontokensconsumed,fullstop.Servezerotokens,payzero.Serveahundredmilliontokens,payX per million tokens consumed, full stop. Serve zero tokens, pay zero. Serve a hundred million tokens, pay X * 100. The cost curve as a function of volume is a straight line through the origin.

Self-host pricing is a textbook fixed cost (for the compute term, at least). A rented H100 at $2.50/hr costs $60/day whether the box serves one token or a billion. The cost curve as a function of volume is a horizontal line, it doesn't move when traffic moves.

A cost-per-token chart makes the difference vivid. Hosted is a horizontal line. Self-host is a hyperbola: cost-per-million = $60 / (tokens-per-day-in-millions). At 1M tokens/day, self-host is $60/M, wildly more expensive than hosted's $0.50/M. At 10M tokens/day, self-host is $6/M, still more expensive. At 60M, self-host is $1/M, competitive but losing. At 120M, self-host is $0.50/M, exact break-even. Above that, self-host pulls ahead.

The shape matters because it explains why teams often stay on hosted longer than their intuition suggests. The hyperbola flattens quickly as volume grows, so the savings from self-hosting are relatively small in the break-even zone and only become dramatic at multiples of the break-even volume. If you're at 80% of break-even, the API is still cheaper; if you're at 120% of break-even, self-host wins by ~20% before ops cost. You need to be substantially over before self-host is clearly the right call.

Utilization: peak vs realistic
The ops cost no one tracks
When the calculus changes
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

Real products, models, and research that use this idea.

  • Together AI, Fireworks, and Alibaba Cloud's Bailian platform all host Qwen 3.5 at roughly $0.40-$0.60/M tokens for the 32B tier in 2026.
  • Cursor and Anysphere migrated heavy code-completion traffic to self-hosted models when sustained utilization crossed the break-even threshold.
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QHow does spot pricing on the H100 change the break-even?
A

Spot H100s at ~$1.50/hr (vs $2.50 on-demand) cut the fixed daily bill from $60 to $36. Break-even at $0.50/M drops from 120M to 72M tokens/day, still above one H100's capacity but achievable with two H100s at high sustained utilization. Spot is appropriate only for batch/checkpoint-able workloads, not realtime serving (see the separate spot-vs-on-demand question).

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

Computing self-host cost using peak token-rate as if the GPU runs at 100% for 24 hours. Real production utilization is 20-30% by default and 50-70% on well-tuned batch servers; using peak makes self-host look 3-5x more attractive than it actually is.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • Why hosted is variable cost and self-host is fixed cost

  • How GPU utilization determines per-token cost on self-host

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
In LLM serving, what is the primary driver of end to end latency for a generation request?
MCQ·Medium