English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

OpenRouter Classifiers: AI Coding Costs Now Get Tagged by Engineering Type and Cost Center

Forum topic · 小凯 · 2026-07-27

Summary

OpenRouter launched Classifiers in beta on July 24, adding a taxonomy-based labeling layer that lets teams attribute AI coding spend to specific engineering work rather than just counting tokens. Users define a taxonomy, pick a classification model and sampling rate, and the classifier runs asynchronously after each request, writing structured tags back to logs. Up to 8 dimensions are supported, with 6 built-in templates covering department, audience, task type, engineering work, agent complexity, and capitalizable software spend. The Engineering work template categorizes requests as feature development, bug fixing, documentation, refactoring, or code review, while Agent complexity flags difficulty and task family. OpenRouter suggests 100% sampling for compliance classifiers and 10% for cost attribution, recommending Gemini 3.5 Flash Lite as a cost-effective classifier. The move shifts AI coding from model selection toward workload-level governance: teams can finally see which engineering tasks consume which models and which departments drive agent spend. Limitations remain—label quality depends on taxonomy and model judgment, sampled data can destabilize small-team trends, and financial categories like capitalizable spend still require company accounting rules.

Many teams can already report "how many tokens we used," but cannot answer a more practical question: were those tokens spent on bug fixes, new features, code review, or a long-running agent repeatedly retrying? OpenRouter introduced Classifiers in beta on July 24 to close this accounting gap.

How it works

The approach is straightforward. Users define a taxonomy for their requests, then specify a classification model and a sampling rate. The classifier runs asynchronously after the original request completes, so it does not block the inference path, and writes structured labels back into logs. The official configuration supports up to 8 dimensions, with 6 built-in templates: department, audience, task type, engineering work, agent complexity, and capitalizable software spend.

Why it matters for AI coding

The most useful template for coding teams is Engineering work, which classifies requests into:

  • Feature development
  • Bug fixing
  • Documentation
  • Refactoring
  • Code review
  • Agent complexity additionally labels tasks by difficulty and task family. This means teams no longer have to look only at a model's average price—they can see which engineering task types use which models, whether complex tasks are being repeatedly retried by cheap models, and which department's agent bill is growing fastest.

    From logging to governance

    This looks like a logging feature, but it is closer to runtime governance. Enterprise model procurement has long relied on a coarse-grained ledger: input tokens, output tokens, per-model unit price. Once coding agents enter production, costs are jointly determined by context length, tool-call counts, retries, caching, approvals, and human rework. Without task types, managers only see a bill; with classification, there is finally a chance to view spend alongside output, risk, and department budgets.

    OpenRouter also offers a realistic usage pattern: compliance-oriented classifiers can be sampled at 100%, while cost-attribution classifiers can sample just 10%. The classifier model itself is swappable—OpenRouter recommends Gemini 3.5 Flash Lite as a cost-effective option. Classification results are constrained to user-defined dimensions and values, making trends easy to aggregate in logs and the Activity Explorer.

    Caveats

    This does not automatically produce truth. Classifiers read request and generation records, so label quality depends on the taxonomy, classification prompts, and the model's judgment. A "refactoring" request may also contain bug fixes; an agent task's complexity may shift mid-execution. Sampling saves money but makes trends unstable for departments with small samples. The more realistic risk is treating model labels as financial fact—especially for judgments like "capitalizable software spend," which ultimately still require the enterprise's own accounting and compliance rules.

    Perspective

    What matters more is that this pushes AI coding competition from "model selector" toward "workload ledger." When Cursor, Claude Code, Codex, or self-built agents can all route across multiple models, what enterprises really need is an explainable routing table: which tasks go to whom, why, what they cost, and who is accountable when something breaks. Classifiers are still in beta, but they have already moved this question from the finance spreadsheet into the agent logs themselves.

    Links:

  • OpenRouter announcement: https://openrouter.ai/blog/announcements/classifiers
  • Classifier docs: https://openrouter.ai/docs/guides/features/classifiers
  • Activity Explorer: https://openrouter.ai/activity/explore

Tags

#openrouter#ai-coding#cost-tracking#llm-classification#devtools#agent-governance#observability

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/178503719