Smaller models are used for simple tasks (model routing by complexity)
Why it matters
Frontier models like GPT-4o cost 10–50x more per token than their lightweight counterparts — and are often no better at simple tasks. Generating a document title, classifying sentiment, or summarizing a short paragraph does not require frontier-level reasoning. Every request where gpt-4o runs a classification that gpt-4o-mini handles equally well is a 17x cost premium with zero quality benefit. NIST AI RMF MAP 5.1 requires that model selection be matched to operational requirements; using the most powerful model for every task uniformly fails this requirement.
Severity rationale
High because using frontier models for all tasks including simple ones imposes a 10–50x cost multiplier on routine, high-volume operations that cheaper models handle equally well.
Remediation
Define a TASK_MODELS map that explicitly assigns each task type to an appropriate model tier. Import from it at every call site instead of hardcoding a single model string.
// src/lib/ai/models.ts
export const TASK_MODELS = {
titleGeneration: "gpt-4o-mini",
classification: "gpt-4o-mini",
summarization: "gpt-4o-mini",
sentimentAnalysis: "gpt-4o-mini",
codeGeneration: "gpt-4o",
complexReasoning: "gpt-4o",
multiStepPlanning: "gpt-4o",
} as const;
// src/app/api/title/route.ts
import { TASK_MODELS } from "@/lib/ai/models";
const { text } = await generateText({
model: openai(TASK_MODELS.titleGeneration),
prompt: `Generate a concise title for: ${content}`,
maxTokens: 50,
});
Verify by reviewing each API route's model parameter and confirming that simple classification, labeling, or summarization tasks are not using frontier models.
DetectionPro
The detection method for this pattern is part of AuditBuffet Pro.
The full method (what to look for, pass and fail conditions, and how results get reported) ships inside the AI Token Optimization Audit. The pattern definition, severity rationale, and remediation remain openly licensed under CC-BY-4.0.
External references
- owasp-llm:2025 · LLM10 — Unbounded Consumption
- nist-ai-rmf:1.0 · MAP 5.1 — AI system likelihood and impact of risks are mapped
- iso-25010:2011 · performance-efficiency.resource-utilization — Resource Utilization — model tier matched to task complexity
Taxons
History
- 2026-04-18·v1.0.0·Initial import from ai-token-optimization·automated