How to Tell If a Third-Party LLM API Has Been Quantized or Downgraded in Precision

    Many applications rely on third-party APIs to serve open-source or commercial large language models. This article explains what quantization means, why using lower precision is not automatically a sign of corner-cutting, and how to verify whether a provider has silently reduced model precision, swapped in different weight files, or changed inference settings. It also breaks down "worse quality" and "slower responses" into measurable layers, with a reproducible config template and a Python script for measuring TTFT and output speed. By the end, you will have a practical checklist for comparing third-party model endpoints objectively.

    1. First, Clarify What “Quantization” Means

    Quantization refers to converting a model’s weights or intermediate computations from high-precision floating-point formats into representations with fewer bits. This reduces memory usage and improves inference throughput. Common formats include BF16, FP8, FP4, INT8, and INT4.

    There is no industry-wide rule that says “everything must run at high precision to be legitimate, and low precision means degradation.” Many model publishers themselves use different precision levels for different modules in their standard inference configurations—for example, dense layers and expert layers may use different data types. So the real question is not “whether low precision is used,” but these three questions:

    1. Has the provider reduced precision further, beyond the official release configuration?
    2. Are the weight files actually loaded by the provider the same version you think you’re using?
    3. Are the inference settings (context length, sampling parameters, caching strategy, system prompt, etc.) identical to your baseline?

    Only by verifying each of these three questions can you pinpoint the actual source of any quality difference.

    2. Break “Worse Quality” into Three Verifiable Layers

    A drop in output quality does not necessarily come from weight precision. When troubleshooting, check layer by layer:

    • Weights and checkpoints layer: The same model name may map to different files, or files that have gone through different post-processing.
    • Inference configuration layer: Precision, context window, temperature, max output length, thinking mode toggles, and other parameters all directly affect output.
    • Service and client layer: Queuing, retries, rate limiting, tool call parsing, conversation truncation, and similar issues can degrade the experience—but none of them are related to model parameters.

    To make comparisons reproducible, fix and record the configuration for every test run, ideally in version control:

    1. provider:
    2. name: provider-a
    3. base_url: ${LLM_BASE_URL}
    4. model: model-under-test
    5. temperature: 0
    6. max_tokens: 4096
    7. context_window: 128000
    8. snapshot_date: 2026-11-18

    The more complete the recorded fields, the higher your success rate when reproducing results and tracing differences later.

    3. Break “Slowness” into Measurable Components

    The latency users perceive usually consists of four segments:

    • Queuing and network: Waiting time before the request reaches the server, influenced by geography, concurrency, and network paths.
    • Time to first token (TTFT): The time from sending the request to receiving the first output chunk, mainly reflecting input processing and prefill stages.
    • Output speed: The number of chunks generated per second during generation, reflecting decoding throughput.
    • Total task time: The time to complete an entire function, including retries after failed tool calls, manual corrections, and rework.

    Looking only at “characters per second” cannot tell you which segment is slow. The script below records TTFT and output speed separately, making side-by-side comparisons easier:

    1. import json
    2. import os
    3. import time
    4. import urllib.request
    5. BASE_URL = os.environ["LLM_BASE_URL"]
    6. API_KEY = os.environ["LLM_API_KEY"]
    7. def probe(model: str, prompt: str) -> dict:
    8. body = json.dumps({
    9. "model": model,
    10. "stream": True,
    11. "messages": [{"role": "user", "content": prompt}],
    12. }).encode("utf-8")
    13. req = urllib.request.Request(
    14. f"{BASE_URL}/chat/completions",
    15. data=body,
    16. headers={
    17. "Content-Type": "application/json",
    18. "Authorization": f"Bearer {API_KEY}",
    19. },
    20. )
    21. start = time.perf_counter()
    22. first_at = None
    23. pieces = 0
    24. with urllib.request.urlopen(req, timeout=120) as resp:
    25. for raw in resp:
    26. line = raw.decode("utf-8", errors="ignore").strip()
    27. if not line.startswith("data:"):
    28. continue
    29. payload = line[len("data:"):].strip()
    30. if payload == "[DONE]":
    31. break
    32. choices = json.loads(payload).get("choices") or []
    33. if not choices:
    34. continue
    35. text = (choices[0].get("delta") or {}).get("content")
    36. if text:
    37. if first_at is None:
    38. first_at = time.perf_counter()
    39. pieces += 1
    40. end = time.perf_counter()
    41. if first_at is None:
    42. return {"ttft_s": None, "total_s": round(end - start, 3),
    43. "pieces": 0, "pieces_per_s": 0.0}
    44. gen = end - first_at
    45. return {
    46. "ttft_s": round(first_at - start, 3),
    47. "total_s": round(end - start, 3),
    48. "pieces": pieces,
    49. "pieces_per_s": round(pieces / gen, 2) if gen > 0 else 0.0,
    50. }
    51. if __name__ == "__main__":
    52. print(probe("model-under-test", "Explain cache coherence in three sentences."))

    Note that the number of streamed chunks does not equal the token count, so the measured speed is only an approximation. It is suitable for comparing the same endpoint across different time windows, rather than across different providers.