Same-Prompt Evaluation and Cost Accounting for Multimodal LLM Tasks
A practical framework for comparing multimodal large language models on identical tasks: define completion criteria, build a task matrix, score first-round quality, measure latency and tokens, and convert usage into comparable cost.
Same-Prompt Evaluation and Cost Accounting for Multimodal LLM Tasks
In office automation, content generation, and front-end interactive animation, teams often choose among several candidate large models. Looking only at a low unit price or a polished demo is not enough. One model may answer simple questions quickly but loop through self-correction on compound work that needs multi-step planning, code generation, and visual consistency, driving up request count, output tokens, and end-to-end latency. Another may emit longer first responses but deliver complete artifacts in one pass, which can win on total cost and delivery speed. A more reliable approach is a reproducible same-prompt evaluation that puts quality, speed, cost, and editability on one table.
This article does not recommend or benchmark any commercial product. It treats the original work as a general engineering problem: how to design a task matrix, define metrics, account for cost, and operationalize the evaluation. The core conclusion is that compound-task selection should follow three principles: first-round delivery quality first, full-path cost accounting, and observable process metrics.
1. Evaluation goals and boundaries: define what “done” means
The first step is not to run models; it is to define completion criteria. Spreadsheets, meeting notes, illustrated animation, and interactive animation differ sharply. A budget workbook must be judged on field structure, formula relationships, editable formatting, and notes on outliers. Meeting notes need completeness, action-item ownership, deadlines, and risk flags. Illustrated animation needs character consistency, smooth style changes, and coherent motion. Interactive animation needs usable pause, resume, and playback-speed controls, clear state management, and code that is easy to change.
If you only record “whether something was generated,” the evaluation loses discrimination. Build a scoring rubric per task type and split subjective judgment into reviewable dimensions. For an editable spreadsheet, five items might be: structural completeness, formula correctness, formatting discipline, data readability, and clarity of documentation. For meeting notes: issue coverage, accurate conclusions, complete action items, named owners, and risks or open questions. Score each item 1–5 and record why points were deducted. That supports first-round quality comparison and later debugging.
Also fix the evaluation boundary: each task uses an independent empty directory, the same prompt, no mid-run follow-ups, and scoring of first-round delivery only. That reduces human-intervention bias and makes “can the model state the work clearly and get it right once” observable. If production allows multi-turn collaboration, run a separate multi-turn suite; do not mix it with first-round results.
2. Task matrix: cover office, visual, and interactive skills
Do not evaluate on a single prompt type. Cover at least three capabilities: structured document generation, visual content generation, and front-end interactive implementation. Four original items map to four generic tasks:
- Editable spreadsheet budget: structured data, formulas, editable formatting, and accompanying documentation.
- Meeting-note synthesis: long-text compression, action-item extraction, ownership, and deadline recognition.
- Illustrated-style animation: character consistency, style switching, timeline control, and visual narrative.
- Interactive animation page: front-end state, controls, performance awareness, and maintainable code.
Outputs differ, but the same log fields apply: start time, end time, request count, input tokens, output tokens, reasoning tokens, total cost, first-round quality score, and human review notes. The matrix reduces specialty bias: documents alone understate interaction skill; animation alone ignores editable office structure.
3. Metrics: record quality, speed, and cost together
Record at least four groups of metrics.
First-round quality. Can the artifact be used as-is or with light edits? Use dual scoring or automated checks plus human sampling. Automation can verify that files open, fields exist, and controls are present; humans judge logical consistency and readability.
End-to-end latency. Time from prompt submit to a complete artifact, including queueing, network round trips, generation, and required file writes. Multiple requests accumulate latency, so log request count.
Token consumption. Input, output, and reasoning tokens. Whether reasoning tokens are billed depends on the price list; keep one definition so candidates remain comparable.
Converted cost. Do not use output unit price alone. Compute input_tokens × input_price + output_tokens × output_price + reasoning_tokens × corresponding_price. If peak and off-peak rates differ, record both and note the price version and time in the report.
Generic cost-evaluation pseudocode:
function evaluate(task, candidate, prompt):workdir = create_empty_dir(task.id)start = now()response = invoke(candidate, prompt, workdir)elapsed = now() - startinput_tokens = response.usage.inputoutput_tokens = response.usage.outputreason_tokens = response.usage.reasoningtotal_out = output_tokens + reason_tokenscost = input_tokens / 1000 * candidate.price_input+ total_out / 1000 * candidate.price_outputquality = score(task.rubric, workdir, response)return {task: task.id,candidate: candidate.id,elapsed_seconds: elapsed,request_count: response.request_count,input_tokens: input_tokens,output_tokens: output_tokens,reason_tokens: reason_tokens,cost: cost,quality: quality}
The point is not a specific API; it is a single protocol: same task, same prompt, isolated directory, complete records. Only then are cost and quality comparable.
4. Where cost differences come from: requests, output length, and rate windows
On compound tasks, cost gaps are rarely just unit price. Output tokens are a major variable: interactive pages often need long code, styles, and notes, and self-correction inflates output quickly. Request count also stretches latency and can replay context, raising input tokens. Reasoning tokens billed as output can lift the total. Peak versus off-peak rates can change cost for the same task run at different times.
Reports should not stop at a single spend figure. Break out input-token cost, output-token cost, request count, and average output length per request. One design may issue many short requests and another few long ones; totals can look similar while latency and observability differ. Teams should map results to SLA: first-round speed, unit-task cost, or editability and maintainability.
5. Quality rubrics: turn “looks good” into reviewable scores
Make quality concrete. Example dimensions:
- Spreadsheet budget: complete fields; traceable formulas; editable formatting; outlier notes; usage instructions.
- Meeting notes: issues covered; accurate conclusions; complete actions; owners and deadlines; risks and open items.
- Illustrated animation: character consistency; smooth style changes; accurate timeline; coherent motion; acceptable page performance.
- Interactive animation: pause, resume, and speed work; conflict-free state changes; clear code structure; basic accessibility; easy follow-on development.
Score 1–5 per dimension and log deduction evidence. “Speed control exists but the timeline drifts after switching” is more useful than “interaction is average.” Separate blocking issues from polish: unopenable files, widespread formula errors, and dead controls should dominate usability.
6. Engineering the pipeline: repeatable, auditable, extensible
To turn a one-off demo into a team capability:
- Task templates: prompt, input assets, rubric, acceptance scripts, expected output structure.
- Directory isolation: empty directory per candidate and task to avoid file pollution.
- Complete logs: timestamps, request count, token usage, price version, retries, human notes.
- Versioned price tables: unit prices change; reports must state date and source of rates.
- Quality review: automated checks plus sampling; dual scoring on high-stakes tasks.
- Reproducible failures: keep prompts and output summaries to separate prompt issues, task difficulty, and model capability.
In a general cloud setup, run evaluation scripts in a task sandbox, write logs to a logging service, store artifacts in object storage, and alert on failure rate and cost anomalies. These are vendor-agnostic engineering practices.
7. Conclusion: select on full-path first-round delivery efficiency
Compound-task model selection should not rest on a single call price or a demo video. A sound protocol is: same prompt, same task, isolated directory, first-round delivery, with quality score, end-to-end latency, request count, input/output/reasoning tokens, and converted cost recorded together. Cost gaps may come from output length, request count, reasoning tokens, and rate windows; quality gaps show up in editability, structural completeness, interactive usability, and code maintainability.
For organizations, the metric that matters is full-path first-round delivery efficiency: state the work clearly once, get it right once, keep cost controllable, and keep results reviewable. With a task matrix and rubrics, selection becomes an auditable engineering decision that can be re-run when the business changes.
