LLM APIs & Precision By Priceory Infrastructure Research · Verified 2026-11-30 · 5 min read

Are LLM Routers Silently Serving INT4? How to Lock BF16/FP8 Precision & Strict ZDR

Why default lowest-price LLM API routing swaps native FP8/BF16 models for degraded INT4 endpoints—and how quantization pinning + prompt caching cut bills safely.

Are LLM Routers Silently Serving INT4? How to Lock BF16/FP8 Precision & Strict ZDR
MONTHLY API BILL — 100M INPUT (80% CACHED) + 20M OUTPUT TOKENSAll Claude Sonnet Uncached$600/mo (100% frontier uncached)Sonnet w/ 90%-Off Prompt Cache$336/mo (Cache cuts input 72%)80% Gemini Flash + 20% Sonnet$96/mo (Tiered model routing)DeepSeek FP8 Cached + ZDR Pin$18.90/mo (Pinned FP8 + Cache)Pinning `quantizations: ['fp8','bf16']` + prompt caching cuts spend >90% without INT4 tool-call rot.

Have you ever benchmarked an open-weight model like `DeepSeek-V3`, `Qwen-Coder`, or `Llama-3.3-70B` on Monday with 94% JSON tool-call accuracy—only to watch the exact same model string hallucinate malformed brackets and fail multi-file diffs on Wednesday night? Nine times out of ten, the model weights did not change; your API router failed over from a BF16/FP8 Tier-1 neocloud to a bargain sub-provider serving aggressive 4-bit (`INT4` / `AWQ` / `GPTQ`) quantization without changing the model ID. Filter strictly for full-precision, zero-training endpoints on Unquantized BF16/FP8 + Strict ZDR LLM APIs before wiring an autonomous coding or SQL agent into production.

Why INT4 breaks agentic tool calling, code diffs, and long-context RAG

On short 200-token casual chat prompts, 4-bit weight quantization (`INT4`) loses under 1%–2% on multiple-choice MMLU benchmarks while halving VRAM footprint—allowing sub-providers on marketplace routers to slash prices by 40%. Under production engineering workloads, however, three failure modes surface immediately:

  • Strict Schema & AST Degradation: Generating 400 lines of syntactically valid Rust/TypeScript or deeply nested JSON tool calls compounds small logit rounding errors across thousands of autoregressive steps, spiking retry loops that burn more total tokens than paying for native `FP8` once.
  • Long-Context KV-Cache Collapse (32k–128k tokens): Some ultra-cheap endpoints quantize not only static weights (`W4A16`) but also the dynamic KV cache (`FP8`/`INT4` KV), degrading needle-in-a-haystack retrieval across large codebases in Cline, Cursor, or OpenHands.
  • Silent Prompt-Logging Subsidies: Discount endpoints on aggregator marketplaces sometimes subsidize sub-cost $/1M rates by logging prompts and completions for downstream distillation unless you enforce Zero Data Retention (ZDR).
LLM API / RouterPrecision DisclosureZero-Training (ZDR)?Prompt Cache DiscountHard Cap?Representative Rate
OpenRouter (Pinned Config) (docs ↗)Per-provider tag (`bf16`/`fp8`/`int4`)Yes w/ `data_collection: deny`Pass-through (up to 90%)Yes (Prepaid key cap)$0.27–$3.00/1M
Fireworks AI (pricing ↗)Explicit FP8 / BF16 SKUsYes — Zero retention defaultYes (Cached prefix discount)Configurable budget$0.90/1M (70B)
Together AI (pricing ↗)Turbo (FP8) vs Reference (BF16)Yes on paid/opt-out tiersSupported on select modelsPrepaid / limit$0.88/1M (70B Turbo)
DeepSeek Direct APINative FP8 training/servingCheck ToS (China jurisdiction)Up to 75–90% cache hit cutPrepaid top-up wallet$0.27/1M ($0.55 R1)
GLM / z.ai Coding API ↗Native FP8 / BF16API workspace termsIncluded in Coding bundlesPrepaid plan capFrom $3–$10/mo Coding
Anthropic Direct APIUnquantized frontierYes (Commercial API 0-train)90% read discount (5m/1h TTL)Monthly org spend cap$3.00 in / $15.00 out

How to lock BF16/FP8 + Strict ZDR in 6 lines of JSON on OpenRouter

The good news: OpenRouter exposes granular provider-routing parameters that most developers leave at dangerous defaults. Instead of letting the router chase the cheapest unverified host, pass an explicit `provider` object in your OpenAI-SDK payload:

  1. Pin `quantizations: ["fp8", "bf16"]`: Rejects `int4`, `int8`, and `"unknown"` precision hosts automatically—vital because DeepSeek-V3/R1 are trained natively in `FP8` while Llama/Qwen reference weights are `BF16`.
  2. Enforce `data_collection: "deny"`: Restricts routing strictly to providers contractually bound not to train on or retain your prompts (such as Fireworks AI, Together AI, and ZDR enterprise endpoints).
  3. Set a Prepaid Per-Key Dollar Limit: Create a dedicated API key per agent with a hard $10 or $50 monthly ceiling (`cap=hard`) so a runaway `while(true)` retry loop stops cleanly rather than billing $800 overnight.

Prompt caching beats INT4 corners: Save 72%–85% cleanly

If your goal is cutting your monthly token invoice, prefix prompt caching delivers 3x larger savings than risky INT4 quantization with zero quality loss. System prompts, MCP tool schemas, and repository maps typically make up 75%–85% of every agent turn. Enabling prompt caching on Anthropic Claude Sonnet (90% read discount), Gemini 2.5 Pro/Flash, DeepSeek, or GLM Coding plans slashes a $600/mo coding-agent bill down to $96–$336/mo at full precision. Compare live cached vs uncached rates on the LLM Token Cost Calculator, check `$0` starter keys on Free LLM APIs, or benchmark dedicated vLLM GPUs on GPU Inference Selector and Smart Recommender.

3-minute precision canary test you can run against any API endpoint

Never trust a provider's marketing badge alone—run a deterministic 50-prompt canary suite in CI whenever you add a new model router or discount endpoint:

  • JSON Schema + Deep Nesting Test (20 prompts): Enforce a 5-level nested tool-call schema with strict enum and regex constraints; full `FP8`/`BF16` endpoints hold >98% syntactic validity while aggressive `INT4` endpoints spike truncation and key-hallucination errors.
  • 64k-Token Needle Retrieval Test (15 prompts): Plant an exact SHA-256 hex string and line number at 15%, 55%, and 88% depth inside a 64k repository dump; KV-cache-quantized hosts drop accuracy sharply past 32k tokens.
  • Logprob Drift & Throughput Tracking (15 prompts): Log time-to-first-token (TTFT), output tokens/sec, and exact `provider` response headers so you catch silent upstream routing changes the hour they happen.

Combining `quantizations: ["fp8", "bf16"]`, `data_collection: "deny"`, and a per-key monthly dollar cap gives your engineering team enterprise-grade precision determinism without locking into a single vendor's rate limits—letting you fall back cleanly across Fireworks, Together, Groq, and Anthropic whenever regional GPU capacity tightens.

More Cloud & AI Cost Studies

All 28 investigations →