By UNST33R
Self-hosted LLM or hosted API for security work: the decision framework
Local GGUF inference and hosted abliterated APIs solve different halves of a red team's model workload. The five questions that decide each engagement, honest cost math for both sides using current per-token prices, three worked scenarios, and the hybrid pattern that keeps the split down to one config line.
Every team that ran the archive-continuity drill this month hit the same fork. The storage math for a 24-model mirror set prices selective local archiving at roughly 13.3 TB, and this week four repositories returned 401 with no attributed cause. So which workloads stay on your own hardware, and which move to a hosted OpenAI-compatible endpoint? The search results for "best self-hosted LLM" are dominated by desktop-app comparisons, and they frame the question wrong for harness work. For security teams the decision decomposes into five knowable factors, and this walkthrough applies them with real prices on both sides.
The five questions that decide it
| Question | Answer that favors local | Answer that favors hosted |
|---|---|---|
| Where is client data allowed to live? | Contract or air gap requires on-site processing | No data-residency restriction on probe corpora |
| How many model families per sweep? | A few, pinned, well-known | Ten or more, including fresh abliterated derivatives |
| How spiky is the volume? | Steady low concurrency, always-on | Weekly multi-million-token batches with idle gaps |
| Are you testing the format itself? | Yes: GGUF quants, mmproj files, runtime behavior | No: format-agnostic reasoning and generation |
| Who maintains the stack? | A dedicated ops owner exists | Harness engineers only |
Score your own workload against those rows before reading any benchmark. In our experience the first and fourth questions dominate everything else: a data boundary or a format-targeted test settles the call on its own, and the remaining rows only fine-tune a decision those two have already made.
What local inference actually costs
The hardware anchors are stable. A 24 GB consumer card serves 7B to 14B class models at Q4 comfortably and locks you out of the 27B-plus class that practitioners are standardizing on; a 96 GB unified-memory machine runs the Qwen 3.8 27B daily-driver class fine, and one reply in the archive thread this week put the low-budget case plainly: "low gpu folks keep a 35B moe in q4/q6 handy" (thread, November 15). Marginal tokens are free once the box exists, revision pinning is exact, and the whole rig works at a client site with no egress. Those are the real local advantages, and they are structural.
The costs that surprise teams sit elsewhere. Format-zoo maintenance became a live obligation this month: one uploader completed an NVFP4, MLX, and ONNX-WebGPU matrix for a single model family in about 32 hours, which means the shelf you verify today drifts tomorrow. Every unverified mirror is a malware channel, per the provenance checklist, and every quantized artifact you load accepts the file-format attack surface the GGUF quantization audit documents. The runtime underneath carries its own CVEs, as the llama.cpp mmproj advisory and the LM Studio hardening guide cover. And a mirror you have never cold-booted is a hypothesis, so each hardware migration or format refresh buys you a round of boot tests.
Local fits the workload with a hard data boundary, a fixed small model set, and steady usage. It strains at family diversity: this week one 78-repo shelf existed for a single model family, and no single box serves that breadth across ten families.
What a hosted endpoint actually costs
The hosted side prices per token. Current public rates for the tiers this site runs:
| SKU | Base | Input / output per 1M tokens | Cached input | Context |
|---|---|---|---|---|
unst33r-flash | GLM 5.3 Flash, uncensored | $0.50 / $1.50 | not listed | not listed |
unst33r-deepseek | DeepSeek V4.1 Flash 1017, abliterated | $0.15 / $0.5625 | $0.03125 | 1M in, 384k out |
unst33r-pro | GLM 5.3, uncensored | $2.50 / $4.50 | not listed | not listed |
Worked example, the weekly refusal sweep. A probe corpus of 10M input tokens where 8M repeat from last week, plus 2M of output, on the deepseek tier: (2M at $0.15) + (8M at $0.03125) + (2M at $0.5625) = $0.30 + $0.25 + $1.125, about $1.68 per week or $7 per month. The cached-input line is what makes repeated corpora viable; without it the same job costs $2.63 weekly. An adjudication pass on the pro tier, 500k in and 150k out, runs $1.93 per pass. These are arithmetic on listed rates, so scale them to your own corpus sizes directly.
The hosted costs that bite are trust costs, and this month supplied fresh examples: a public accusation thread where buyers claimed a reseller served quantized derivatives at native-precision prices, and cache-price cuts arriving hours after user complaints. The stability and transparency checklist covers what to demand, and the 72-hour throughput and refusal harness covers what to measure yourself: served-revision stability, tool-call JSON validity, and refusal rates on your own probes. A provider passes or fails your harness, and the harness runs continuously, because a signup-week pass says nothing about week forty.
Three worked scenarios
| Scenario | Call | Why |
|---|---|---|
| On-site bank engagement, contractually local, no egress | Local GGUF kit | Question one decided it; pin revisions and boot-test every model before travel |
| Weekly 40-family refusal sweep, ~10M tokens | Hosted batch on the deepseek tier | Question two and three; cached corpus at $0.03125 per 1M makes the rerun cheap |
| Tool-call PoC iteration, JSON-heavy | Hosted during dev, local for final validation | Iteration speed first, then prove the artifact runs on the offline kit |
The hybrid pattern, and the one-line switch
Most teams converge on a hybrid: a local kit for boundary-locked and format-targeted work, a hosted endpoint for diversity and burst. The pattern only stays cheap if the harness contract stays OpenAI-compatible, so that the leg you use is configuration rather than code:
from openai import OpenAI
legs = {
"local": OpenAI(base_url="http://127.0.0.1:1234/v1", api_key="lm-studio"),
"hosted": OpenAI(base_url="https://api.unst33r.si/v1", api_key=API_KEY),
}
models = {"local": "qwen3.8-27b-q4_k_m", "hosted": "unst33r-deepseek"}
for name, client in legs.items():
r = client.chat.completions.create(
model=models[name],
messages=[{"role": "user", "content": probe}],
)
print(name, r.choices[0].message.content[:80])
The base-URL switch guide walks the same move for existing SDK code. Two disciplines keep the hybrid honest. Test both legs monthly with the same probe set, because an API fallback you have never dialed is a hypothesis, the same way an unbooted mirror is. And keep your eval corpus in a version-controlled, provider-neutral format, so switching legs or adding a third never becomes a migration project.
Failure-mode checklist for both legs
| Local failure modes | Hosted failure modes |
|---|---|
| Format drift breaks the harness (mmproj or template mismatch) | Served-revision swap changes outputs mid-engagement |
| Poisoned quant from the mirror zoo; verify hashes per the audit method | Quantized derivative sold at full-precision rates; run capability probes |
| Runtime CVE in llama.cpp-class servers; patch on advisory cadence | Provider churn or pricing shocks; keep exportable evals |
| Hardware ceiling at the 27B-plus class | Rate limits at burst; batch and pre-warm |
Every row has a mitigation, and the mitigations are cheap relative to the alternative of discovering the failure during a live engagement.
Bottom line
Data boundaries and format-targeted testing belong on hardware you control. Family diversity, burst volume, and iteration speed belong on a hosted endpoint that passes your harness. Keep the contract OpenAI-compatible and the corpus provider-neutral, and the split stays at one config line instead of becoming an architecture. Everything above runs inside the scope your authorization defines, per the acceptable-use policy, and the red-team use case page collects the related workflows. For choosing between tiers rather than between legs, the tier selection guide and the uncensored model selection criteria go deeper.