LLM Model Comparison for Office Automation: Selection Criteria and Cost Optimization
This article presents a vendor-neutral framework for evaluating lightweight LLMs in office automation scenarios, where workloads are high-frequency, short-input, and structured-output. It breaks down four evaluation dimensions—pricing structure fit, task quality and stability, latency and throughput, and engineering integration cost—and shows how to convert per-token pricing into a monthly bill with a reproducible cost model. The key finding is that cache hit rate often affects total cost more than differences in model unit price. Five practical optimization techniques and a routing configuration example are included.
1. Why “Cheap” Does Not Equal “Cost-Effective”
In office automation, model calls typically show a pattern of high frequency, short inputs, and structured outputs: email summarization, meeting notes cleanup, table field extraction, ticket classification, and document polishing. Each request carries a small token count, but the call volume is extremely high. This cost structure is fundamentally different from traditional long-context inference, so the lowest unit price does not automatically translate into the lowest total cost of ownership.
One class of lightweight models is priced at 0.5 CNY per million input tokens, 2 CNY per million output tokens, with cache-hit input as low as 0.02 CNY. Compared with a widely recognized value-oriented option in the industry, its regular input and output prices are roughly half of that option’s off-peak price and one quarter of its peak price. The point of this comparison is not “who is cheaper,” but rather: the price band of lightweight models has dropped into a range that differs by an order of magnitude from mainstream options, so the selection logic must shift from “can it be used” to “how to minimize cost under quality constraints.”
It is worth emphasizing that price is only a constraint; task completion is the objective function. Any unit-price comparison detached from an evaluation benchmark has no engineering value.
2. Evaluation Framework: Four Dimensions for a Comparable Baseline
Since this article does not recommend any specific product, the following is a neutral, reproducible evaluation design that readers can apply to any candidate model (including the various model services callable on Baidu AI Cloud’s Qianfan platform).
2.1 Dimension 1: Pricing Structure and Workload Fit
Do not look at unit price alone; look at whether the billing model matches your workload shape:
- The price ratio between input and output. Office tasks are mostly “long instructions + short results,” so input accounts for a larger share and carries more weight.
- Whether a prefix-caching mechanism is supported. Cache-hit prices are typically one to two orders of magnitude lower than regular input, which yields major benefits for fixed system prompts and fixed knowledge base snippets.
- Whether off-peak/peak time-based pricing exists. If so, offline batch jobs should be actively scheduled into low-traffic windows.
2.2 Dimension 2: Task Quality and Stability
Office scenarios are more sensitive to “format compliance” than to “writing flair.” It is recommended to build a private evaluation set of 100–300 real business samples, with metrics including:
- Structured output compliance rate (JSON is parseable, fields are complete, enum values are valid);
- Instruction-following rate (word limits, language, tone, prohibited items);
- Mid-document information recall rate for long documents (avoiding “good beginning and end, lost middle”);
- Output consistency across multiple samples (self-consistency when temperature is fixed at 0).
2.3 Dimension 3: Latency and Throughput
Office applications are mostly interactive, and time-to-first-token affects perceived experience more than total duration. It is recommended to measure time-to-first-token and output tokens per second separately under three conditions: cold start, cache miss, and cache hit.
2.4 Dimension 4: Engineering Integration Cost
This includes API protocol compatibility (whether it is compatible with the common OpenAI-style protocol to reduce migration cost), SDK and authentication methods, rate-limiting policies, and observability (whether logging services and monitoring alerts can cover token consumption and failure rates).
3. Cost Model: Converting Unit Price into a Monthly Bill
Assume an office assistant averages 200,000 calls per day, with an average input of 800 tokens and output of 200 tokens, of which about 500 tokens of system prompt and knowledge base prefix can stably hit the cache. Priced per million tokens, the estimation logic can be written as follows:
def monthly_cost(calls_per_day, in_tok, out_tok, cached_tok,p_in, p_out, p_cached, days=22):billable_in = (in_tok - cached_tok) * calls_per_day * days / 1e6cached_in = cached_tok * calls_per_day * days / 1e6out = out_tok * calls_per_day * days / 1e6return billable_in * p_in + cached_in * p_cached + out * p_out# Example: regular input 0.5 / output 2.0 / cache hit 0.02 (CNY per million tokens)print(monthly_cost(200_000, 800, 200, 500, 0.5, 2.0, 0.02))
This model reveals a frequently overlooked conclusion: the cache hit rate often has a greater impact on the total bill than differences in model unit price. When the cacheable prefix share rises from 30% to 70%, the cost reduction may exceed the price gap from switching between two vendors. Therefore the optimization order should be: first improve cache hits and prompt stability, then consider switching models.
4. Practical Recommendations: Five Optimization Techniques You Can Apply Immediately
- Fix the prompt prefix. Put the system role, output format constraints, and examples at the very front and keep them byte-for-byte unchanged, with variables at the end, to maximize prefix reuse.
- Prioritize structured output constraints. Replace natural-language descriptions with explicit field specifications and enum lists; this can significantly improve parsing success rates and reduce the double cost of retries.
- Batch processing and off-peak scheduling. Put offline tasks such as meeting notes and batch summarization into a queue and consume them during low-traffic windows; route interactive requests through a separate channel to guarantee latency.
- Tiered routing. Send simple classification and extraction to lightweight models; send complex reasoning and cross-document synthesis to more capable models, using rules or a small classifier for upfront decisions.
- Close the observability loop. Log the token composition, cache-hit flag, retry count, and failure reason for each request to produce a daily report; cost anomalies usually show up first as a rising retry rate.
{"route": "lightweight","max_output_tokens": 300,"temperature": 0,"fallback": "strong","retry": 1}
5. Conclusion
Once lightweight models pull the price band down, the focus of model selection in office scenarios shifts from “unit-price negotiation” to “workload engineering”: use a private evaluation set to hold the quality baseline, use cache reuse and off-peak scheduling to compress costs, and use tiered routing to balance quality and spend. Building your own benchmark and billing model delivers more long-term value than chasing any single leaderboard ranking.
