Join our Newsletter — 33% off our NHI Course

Workload Shape

Workload shape is the mix of input and output tokens a request typically produces. It is one of the strongest drivers of LLM cost because input and output are priced differently, and output is usually much more expensive. A small change in prompt length or response length can change the economics of the same model.

Expanded Definition

Workload shape describes the typical distribution of input tokens, output tokens, and request cadence for a given LLM use case. For NHI Management Group, the term matters because cost, latency, and capacity planning are driven by how a workload actually behaves, not by the model name alone. Two applications can use the same model and still have very different economics if one sends long context windows and short answers, while the other sends compact prompts and generates extended responses.

The concept is broader than prompt length. It also includes whether the workload is bursty or steady, whether outputs are deterministic or variable in length, and whether the system triggers tool calls, retries, or multi-step agentic flows. In practice, teams use workload shape to estimate spend, set rate limits, choose batching strategies, and determine whether caching or context trimming will materially change operating cost. The most common misapplication is treating model selection as the main cost variable, which occurs when teams ignore response length, orchestration overhead, and request frequency.

Examples and Use Cases

Implementing workload shape analysis rigorously often introduces forecasting overhead, requiring organisations to weigh better cost control against the effort of instrumenting real usage patterns.

  • A customer support assistant with long retrieved context and short summaries has a prompt-heavy workload shape that is sensitive to input token growth.
  • An internal drafting assistant that produces multi-paragraph outputs has an output-heavy workload shape, where generation cost dominates the bill.
  • An agentic workflow that plans, calls tools, and retries can have a variable workload shape because each step changes total tokens and latency.
  • A document ingestion pipeline may show stable input sizes but highly variable outputs when it extracts, classifies, and rewrites content.
  • A zero trust or workload identity design can help separate service-to-service traffic by function, and the SPIFFE workload identity specification is useful when teams need a consistent identity layer around those services.

These examples matter because workload shape is rarely static. As prompts evolve, retrieval is added, or agents begin chaining tasks, the cost profile can shift without any change to the base model. That is why usage reviews should track token mix, not only total volume.

Why It Matters for Security Teams

Security teams need to understand workload shape because spend spikes, saturation, and uncontrolled retries often look like ordinary traffic until they become operational incidents. In AI-enabled environments, a poorly bounded workload shape can also signal prompt abuse, runaway agent behaviour, or malformed integrations that repeatedly drive up inference cost. This is especially relevant where systems expose tool access or depend on identities for downstream actions, because a single compromised workflow can turn a predictable request pattern into an expensive and noisy one.

For governance, workload shape supports practical guardrails: request quotas, output caps, context limits, and service-level expectations. It also helps teams compare usage patterns across applications so that high-cost behaviour is not mistaken for general model inefficiency. In identity-linked deployments, it can also inform whether a workload should be treated as a distinct non-human identity with separate entitlements and monitoring. Organisations typically encounter the impact only after an invoice surge, latency degradation, or repeated agent retries, at which point workload shape becomes operationally unavoidable to address.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF, NIST AI 600-1 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST AI RMF AI RMF addresses governance for AI system behaviour and resource impacts like this term.
NIST AI 600-1 The GenAI Profile helps govern operational impacts of generative AI usage patterns.
NIST CSF 2.0 GV.PO-1 CSF governance supports policy-setting for AI service consumption and operational limits.
OWASP Agentic AI Top 10 Agentic AI guidance covers runaway tool use and cost-amplifying execution patterns.
OWASP Non-Human Identity Top 10 NHI guidance is relevant when workload patterns are tied to distinct machine identities.

Assign and monitor separate non-human identities for workloads with materially different traffic profiles.