Analytics Legends logoAI & Analytics Legends Sign inSign up
Concept card

Inference Economics — Cost, Latency, Quantization, Distillation

Inference Economics — Cost, Latency, Quantization, Distillation — AI & Analytics Legends section illustration for the SAP AI & Analytics knowledge base (concepts, studies, Academy)

As of 2026-11-17

What is Inference Economics?

At 200K daily sessions of a custom assistant, a 10% token reduction alone saves an estimated $90K-$324K a year (an order of magnitude on public vendor list prices, not an SAP rate) — which is why prompt engineering is billable consulting work, not a nice-to-have.

What it is

Inference economics is the discipline of running LLMs at the cost, latency, and throughput that enterprise workloads can sustain. For SAP practitioners, this means understanding the per-1K-token math for models consumed through the BTP generative AI hub (Joule itself is not billed per token), knowing which optimisation levers are available within the SAP trust boundary, and being able to build a business case for AI spend that CFOs will approve.

Why it matters

  • Output tokens cost 3-4x input tokens because generation is autoregressive, so trimming output length saves more than trimming input.
  • TTFT grows with input length (not strictly linearly), which can break sub-2-second interactive Joule assistants unless input is bounded and streamed.
  • INT8 quantization halves compute and memory with little quality loss (Dettmers et al., 2022), while INT4 saves about 4x at a larger, task-dependent quality cost — fine for summaries, not for financial decision support.

Key points

  • Inference cost = input tokens × input rate + output tokens × output rate; the BTP Generative AI Hub meters model consumption in AI Core capacity units on SAP's published rate card — quote it from that rate card and your BTP contract, never from a vendor's public per-token price.
  • Time-to-first-token (TTFT) scales with input length; inter-token latency (ITL) is roughly constant per step — interactive Joule workflows must bound input length and enable streaming.
  • INT8 quantization: ~2× memory/compute reduction, little quality loss (Dettmers et al., 2022) — production-safe for most SAP tasks. INT4: ~4× reduction, larger loss (3-8%: order of magnitude, measure on the task) — acceptable for low-stakes summarisation only.
  • Distillation trains a small student model (7B) to mimic a large teacher (GPT-4-class) on a specific task — much lower inference cost, most task-specific accuracy retained (10-100× / 70-90%: orders of magnitude, measure on the task).
  • Worked estimate, not an SAP price: at 200K daily sessions of a custom help-desk assistant (1K input + 500 output tokens), public vendor list prices give $2,500-$9,000/day; a 10% token reduction = $90K-$324K/year.
  • Batch vs. interactive trade-off: for nightly SAP analytics batch jobs, maximise throughput (large batch size, INT8); for interactive Joule assistants, minimise TTFT (short inputs, streaming, prefix caching).

Terms used on this page

TTFT (Time-to-first-token)
Latency from request submission to when the first output token is produced; dominated by the prefill pass over the full input context.
Quantization
Reducing the numerical precision of model weights (e.g. FP16 → INT8 → INT4) to lower memory footprint and inference compute, with a controlled quality trade-off (see “Quantization Strategies — INT8, INT4, AWQ, GPTQ, GGUF” for strategy detail).
Distillation
Training a smaller student model to mimic a larger teacher model's output distribution on a target task; produces a task-specific model much cheaper at inference (order of magnitude, measure on the task), at the cost of a one-time training run.
Throughput
Number of tokens generated per second across all concurrent requests; maximised by large batch sizes and quantization; the relevant metric for batch analytics workloads.
AI Core capacity unit
The unit SAP's BTP Generative AI Hub actually bills model consumption in, per model and per token direction, on SAP's own published rate card — the number to convert from a client's BTP contract, never a vendor's public per-token list price passed through unchanged.
Bring Your Own Model (BYOM)
SAP AI Core's documented path for self-hosting an open-weight or custom-quantized model (Ollama, LocalAI, llama.cpp, vLLM, custom Hugging Face Transformers server) instead of consuming a hosted foundation model through the generative AI hub.
Compute-bound vs. memory-bound
Whether a workload's speed is limited by the accelerator's arithmetic throughput (compute-bound, favours batching) or by how fast data can move between memory tiers (memory-bound, favours FlashAttention/KV-cache techniques, see “FlashAttention 2 + 3 — Memory-Aware Attention Kernels”/“KV Cache Optimization — PagedAttention, Quantized KV, Speculative Cache”).

Sources

  1. SAP BTP Generative AI Hub — pricing and service plans
  2. Dettmers et al. — LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale (2022)
  3. Hinton et al. — Distilling the Knowledge in a Neural Network (2015)
  4. Kwon et al. — Efficient Memory Management for LLM Serving with PagedAttention (2023)
  5. SAP Help Portal — Joule
  6. Google Cloud — 101 real-world generative AI use cases
  7. GitHub SAP-samples — btp-generative-ai-hub-use-cases: bring-your-own OSS LLM on SAP AI Core (Ollama, LocalAI, llama.cpp, vLLM, custom HF Transformers server; Standard/Extended plan required)
  8. SAP Help Portal — Choose a Resource Plan for training/inference in SAP AI Core (GPU instance types incl. SAP Note 3660109)
  9. SAP News Center — How SAP and NVIDIA Advance Enterprise AI Transformation (NIM inference optimisation, SAP-ABAP-1, 2026-03-17)
  10. SAP — AI pricing and AI Units (product pricing page)
  11. GitHub SAP-samples — btp-gen-ai-hub-sdk-samples: setting up the Extended AI Core service plan (the plan tier required for self-hosted BYOG serving)
  12. SAP — Value of AI: Oxford Economics 2026 (report PDF, ROI benchmark context for a cost/benefit comparison)

Full card with the Consultant plan — €19.90/month. What the full card adds: the full decision framework · the SAP vs Snowflake / Databricks / Fabric comparison · the common pitfalls and their fix · the cheat sheet · the architecture schemas · the code blocks · the facts worth quoting.

Open in the app →

Open missions

SAP analytics jobs and contracts · freelance SAP contracts.