智能体 AI 如何影响固定 SaaS 预算
原题What Agentic AI Does to a Fixed SaaS Budget
读前速览
本文探讨智能体 AI 如何打破传统的按席位计价模式、引入可能超出固定预算的按用量计费,并分析 GitLab 的 Flex 合同如何作为一种考虑用量的替代方案,同时为工程负责人和 FinOps 团队提供实用建议。
智能体 AI 打破了传统的按席位计费模式,带来随自动化规模而非用户数量增长的按用量计费成本。
合并请求审查、流水线修复和定时自动化等操作会产生按量计费的费用,这些费用不会显示在席位账单上,导致按年初预算的资金可能在年底前就用完。一个由 50 名开发者组成的团队案例显示,仅审查、重新审查和流水线修复智能体每月就会产生 $4,500 的费用,而这些费用都没有纳入席位预算。
GitLab Flex 以统一的年度美元承诺取代分开的席位预算和 AI 预算,并按照公开费率表扣减。
Flex 模式允许在席位和积分之间调整预留额度,无需修改合同;它提供群组级管理控制,并在用量达到 50%、80% 和 100% 时发送邮件提醒;超出部分按每个积分 $1 或协商好的席位价格计费。这种整合简化了账单管理,但需要准确预测峰值用量。
供应商合同中的第 3 和第 4 个问题对控制智能体 AI 成本至关重要:服务账号的计费归属,以及费用上限的执行机制。
团队必须确认使用服务账号运行的智能体流程是否计费至命名空间而非个人账号,以及费用上限是否真的能阻止自动化支出。含糊其辞的回答通常意味着自动化可能在缺乏有效成本控制的情况下持续运行,导致各项目中无法追踪归属的流程推高预算。
平台选择会通过统一账单和基础设施可靠性,显著影响成本的可预测性。
GitLab 与 Google Cloud 的合作将 GitLab、Duo Agent Platform 和基础设施费用整合在一张账单上,简化 FinOps 对账。可靠的基础设施既能减少停机,也能减少用量浪费。例如,MTrading 通过 Google Kubernetes Engine 将 SLA 从 99.9% 提升至 99.999%,每月允许的停机时间也从 43 分钟缩短至不到 30 秒。
工程负责人和 FinOps 团队应在续约前落实流程归属、标签、费用上限和提醒,并将智能体视为计算资源进行管理。
建议采取的措施包括:使用按项目划分的服务账号开展为期 30 天的试点,找出驱动成本的流程;根据峰值用量并预留余量来确定承诺金额;先设置订阅级费用上限,再设置用户级上限;根据任务选择模型,例如推理任务使用能力较强的模型、分类任务使用轻量模型;在添加流水线智能体前修复不稳定的测试;并使用 Token 优化技术降低单次调用成本。
完整摘要
本文探讨引入 AI 智能体后 SaaS 定价模式发生的根本转变:成本从可预测的按席位计费,转向随用量变化的费用。文章说明,合并请求审查、流水线修复和定时自动化等智能体 AI 操作会产生计量费用,传统的席位数量无法预测这些费用。通过为一支由 50 名开发者组成的团队建立详细成本模型,文章展示了智能体支出如何意外超出预算。文章分析了 GitLab 的 Flex 合同模式:将席位、AI 积分和基础设施成本整合到单一美元承诺中;并提供了工程负责人在续约前应向供应商提出的 9 个关键问题。实用建议包括:使用按项目划分的服务账号开展为期 30 天的试点、根据峰值用量确定承诺金额,以及为自动化流程做好归属追踪和监控。
目录 · 6 节
大多数年度 SaaS 合同仍然按人头为软件定价。你雇了十名工程师,就买十个席位,财务部门也会批准。AI 智能体不适合按这种方式计算。它们会在夜间审查合并请求、重新运行失败的作业,并在无人在线时整理新问题,而这些操作产生的用量都计入席位数无法覆盖的地方。一月份定下的预算,可能远在年底到来之前就已耗尽。Most annual SaaS contracts still price software by the person. You hire ten engineers, you buy ten seats, finance signs off. AI agents don't fit into that arithmetic. They review merge requests overnight, rerun failed jobs and sort new issues while nobody is online, and each of those actions is metered somewhere the seat count doesn't reach. A budget sized in January can run out long before the year does.
为什么按席位定价在智能体负载下会失效?Why does seat-based pricing break under agentic load?
GitLab 于 2026 年 6 月 10 日发布了两项公告:一种名为 Flex 的合同结构,以及与 Google Cloud 扩大合作,让代理的使用量可以计入团队已有的云承诺额度。如果你在 Google Cloud 上运行 GitLab,无论是由自己的平台团队搭建,还是由合作伙伴的 GitLab 实施服务团队搭建,第二项公告都尤其重要。两者都指向同一个变化:AI 的消耗不再适合按席位计算,而它运行所在的平台如今对账单的影响,几乎与合同本身不相上下。GitLab responded on June 10, 2026, with two announcements: a contract structure called Flex, and a wider partnership with Google Cloud that lets agent usage count against cloud commitments a team already holds. The second matters most if you run GitLab on Google Cloud, whether your own platform team set it up or a partner's GitLab Implementation Services did. Both point to the same shift. AI consumption no longer fits inside the seat, and the platform it runs on now affects the bill about as much as the contract does.
7月,Gartner 估计,到 2030 年,软件市场中高达 2340 亿美元的企业应用支出将面临其所谓的“智能体套利”风险,约占企业 SaaS 支出的 20%。Gartner 管理副总裁 George Brocklehurst 表示,智能体 AI“打破了用户增长与收入增长之间的联系”。Gartner 主要将此视为供应商的收入问题,但这种联系的断裂最终也会落到负责预测工程预算的人面前。In July, Gartner estimated that across the software market up to $234 billion of enterprise application spending is exposed to what it calls agentic arbitrage by 2030, roughly 20% of enterprise SaaS spend. Managing VP George Brocklehurst said agentic AI “breaks the link between user growth and revenue growth.” Gartner frames this mainly as a vendor revenue issue, but the same broken link ends up on the desk of whoever forecasts the engineering budget.
从流水线层面来看,情况是这样的:GitLab 的 Agentic Code Review 按每次审查收取固定的 0.25 美元,单个合并请求的费用很容易估算。如果在一个 50 人的组织中全面启用,月度总费用就取决于合并请求的数量以及人们推送修订的频率。这两项都不会显示在按席位计费的账单上。At the pipeline level, it looks like this. GitLab charges a flat $0.25 per review for Agentic Code Review, which is easy to reason about for a single merge request. Turn it on across a 50-person organization and the monthly total follows merge volume and how often people push revisions. Neither appears on a seat invoice.
修复流水线的智能体最容易让成本迅速攀升。比如,一个集成测试不稳定:测试失败,智能体提出补丁,流水线重新运行,测试又一次不稳定地失败了。没人醒着来叫停它,而从智能体的角度看,一切都没问题,于是这个循环就会一直持续,直到有人登录为止。每次尝试都会产生费用。Pipeline-fixing agents are where costs climb fastest. Say an integration test is flaky. It fails, the agent proposes a patch, the pipeline reruns, the test flakes again. Nobody is awake to stop it, and from the agent's side nothing is wrong, so the cycle keeps going until someone logs in. Every attempt is billable.
以下是一个粗略的月度模型。数字仅供示例,假设按标价计算、每个合并请求评审一次,并在推送修订后重新评审:Here's a rough monthly model. The numbers are illustrative and assume list prices, one review per merge request and re-reviews on revision pushes:
| Monthly activity, 50-developer team | Volume | Approximate cost |
| Agentic code review, first pass | 2,000 merge requests × $0.25 | $500 |
| Re-reviews after revision pushes | 2 extra passes per MR on average | $1,000 |
| Pipeline-fix agent on flaky tests | 30 loops a night × 20 nights × 10 heavy-model calls | about $3,000 |
| What the seat budget assumed for AI | Included allowances only | $0 extra |
招聘或失去一名开发者,几乎不会让这些数据行中的任何一行发生变化。测试套件变得更不稳定则会。团队改用堆叠式合并请求也会,或者有人在周五临近下班时添加一项定时自动化任务。Hiring or losing a developer barely moves any of these rows. A flakier test suite does. So does a team switching to stacked merge requests, or someone adding a scheduled automation late on a Friday.
智能体支出在 DevOps 生命周期的哪些环节流失?Where does agentic spend leak across the DevOps lifecycle?
超支通常不是来自某一笔大额费用,而是由许多小额、按事件触发的费用逐渐累积而成。续订前,先梳理这些费用的来源:Overruns usually build up from many small, event-driven charges rather than one big line item. Before a renewal, map where they come from:
| Consumption point | What triggers it | Why seat count can't predict it |
| Agentic code review | Every new or updated merge request | Scales with MR volume and how often branches are revised |
| Pipeline-fixing agents | Failed or flaky jobs | Scales with test stability, not team size |
| Scheduled triage and planning flows | Cron schedules across projects | Scales with project count and schedule frequency |
| Model selection | Each agent or chat request | Cost per call varies by model, often tenfold |
| Hosted runners and artifacts | Every pipeline run, including agent-triggered ones | Grows with automation volume |
模型选择是最容易修正的因素。GitLab 的额度模型规定,每个额度可用于向 Claude Sonnet 4.5 发起两次请求,或向 GPT-5 mini 这类轻量模型发起 20 次请求。给新收到的问题打标签并进行路由,通常无需使用更强大的模型;改用轻量模型后,这一流程的成本可降低约 90%。Model choice is the easiest thing to fix. GitLab's credit model gives you two requests to Claude Sonnet 4.5 per credit, or 20 to a lighter model such as GPT-5 mini. Labeling and routing incoming issues rarely needs the heavier model, and switching that flow cuts its cost by about 90%.
归属判定需要更多工作。GitLab 的文档称,以服务账户身份运行的流程会计入命名空间的用量,不计入任何个人的额度上限。这种设计有其合理之处,但也意味着,针对单个用户设置的额度上限无法拦截一个横跨所有项目运行的自动化流程。用量数据还需要几小时才能显示在仪表板上,因此在管控机制跟上之前,支出可能会略微超出额度上限。Attribution takes more work. GitLab's documentation says flows that run as a service account are billed to the namespace and don't count toward any individual's cap. The design makes sense, yet it means a per-user cap won't catch an automated flow running across every project. Usage also takes a few hours to reach the dashboard, so spending can go slightly past a cap before enforcement catches up.
内含额度在这里帮助不大。Premium 和 Ultimate 席位附带月度额度,但 GitLab 将这些额度定义为个人额度,因此无法汇集起来用于群组级自动化。Included credits don't help much here. Premium and Ultimate seats come with a monthly allowance, but GitLab describes those credits as individual, so they can't be pooled for group-level automation.
据 Cloudfresh 的销售主管、DevSecOps 与 GitLab 解决方案专家 Anatoliy Poberezhnyk 表示,归属追踪通常是预测失准的症结所在:“在最近几次 GitLab 续约评审中,席位数很少让客户感到意外。真正让他们意外的是,有一条自动化流程在群组中的每个项目上运行,却没有标记任何负责人。现在,我们会要求团队先使用按项目划分的服务账号运行代理一个月,再估算任何承诺规模,这样预测就能以有明确归属的用量为依据,而不是以员工人数为依据。”According to Anatoliy Poberezhnyk, Sales Executive — DevSecOps & GitLab Solutions Expert at Cloudfresh, attribution is usually where forecasts fall apart: “In recent GitLab renewal reviews, the seat count was rarely what surprised clients. What surprised them was an automated flow running against every project in a group, with no owner tagged to it. Now we ask teams to run agents for a month under per-project service accounts before they size any commitment, so the forecast starts from attributed usage instead of headcount.”
GitLab Flex 会对合同做出哪些变更?What does GitLab Flex change in the contract?
GitLab Flex 将独立的席位和 AI 预算整合为一笔年度美元承诺额度,并按公开费率表扣减。Premium 和 Ultimate 席位、Duo Agent Platform 积分、托管运行器和制品管理均从同一余额中扣除,适用于 GitLab.com、Self-Managed 和 Dedicated。GitLab Flex swaps separate seat and AI budgets for one annual dollar commitment, drawn down against a published rate card. Premium and Ultimate seats, Duo Agent Platform credits, hosted runners and artifact management all come out of the same balance, on GitLab.com, Self-Managed and Dedicated.
对于预算编制来说,其中有四个部分很重要:For budgeting, four parts of it matter:
- 下个月的预留量可在席位和积分之间调配,无需修改合同。某团队在五月结束项目后释放的席位预算,可用于支付六月的智能体费用。Next month's reservations can move between seats and credits without amending the contract. A team that rolls off a project in May frees seat budget that can pay for agents in June.
- 订阅层级和用户层级均设有用量上限,群组层级由管理员控制,并会在用量达到 50%、80% 和 100% 时发送电子邮件提醒。There are caps at subscription and per-user level, admin controls at group level, and email alerts at 50%, 80% and 100% of usage.
- 承诺量越大,单位价格越优惠;预留容量比临时使用成本更低。Bigger commitments get better unit prices, and reserved capacity costs less than unplanned usage.
- 超过完整承诺额度的部分按需计费,每个 credit 收费 1 美元;席位则按协商确定的席位价格计费。Anything above the full commitment is billed on demand at $1 per credit, or at the negotiated seat price for seats.
| Contract question | Traditional seat contract | Consumption-aware contract (Flex model) |
| What you buy | A fixed number of seats for the term | A dollar commitment drawn down monthly |
| Mid-term change | Amendment or new procurement | Reallocate next month's reservations |
| AI usage | Separate add-on or ad hoc overage | Credits from the same commitment |
| Above the plan | Negotiated case by case | Published on-demand rate |
| Visibility | Seat count on the invoice | Usage by user, product and flow |
这也有缺点。你仍然必须选择一个年度额度,因此预测问题只是转移了,并未消失:承诺额度过少,超出部分就会按按需费率计费;承诺额度过多,部分预付预算可能会闲置。上限也有一个漏洞。根据 GitLab 的文档,即使上限设为零,也无法阻止用户花掉自己套餐内包含的额度。There are downsides. You still have to pick one annual number, so the forecasting problem moves rather than disappears: commit too little and the overflow bills at on-demand rates, commit too much and part of the prepaid budget may sit unused. Caps have a gap as well. According to GitLab's docs, a cap doesn't stop people from spending their own included credits, even when it's set to zero.
现有客户可以继续按席位定价,直到续约时为止,因此续约日期实际上就是大多数团队的截止日期。Existing customers can keep seat pricing until renewal, which makes the renewal date the practical deadline for most teams.
签署或续约前,你应该向供应商询问哪些问题?What should you ask a vendor before signing or renewing?
这些问题都不是 GitLab 独有的。提供智能体的 CI 平台、帮助台和 CRM 系统也会引发同样的问题,最好把答案记录下来:None of these questions are specific to GitLab. CI platforms, helpdesks and CRMs that ship agents raise the same ones, and the answers are worth having in writing:
- 具体按什么计量,公布的费率是多少:按操作次数、模型调用次数,还是计算分钟数?What exactly is metered, and at what published rate: per action, per model call, per compute minute?
- 消费额度是由人员和代理共享,还是与个人配额绑定?Is consumption pooled across people and agents, or tied to individual allowances?
- 当代理以服务帐户运行时,费用由谁承担?额度上限是否适用?When an agent runs under a service account, who is billed, and do caps apply to it?
- 存在哪些上限(订阅、用户、项目),达到上限时会发生什么:硬性停止、服务降级还是产生超额费用?Which caps exist (subscription, user, project), and what happens at the limit: hard stop, degraded service or overage?
- 使用数据的更新频率如何?警报会在达到哪些阈值时触发?How fresh is usage data, and at which thresholds do alerts fire?
- 承诺费率和按需费率相差多少?How far apart are the committed rate and the on-demand rate?
- 预算能否在合同期内不经修订就在席位和用量之间调整?Can budget move between seats and usage mid-term without an amendment?
- 能否将每个事件的用量(包括项目、流程和令牌数量)导出到你自己的 FinOps 工具中?Can you export per-event usage, including project, flow and token counts, into your own FinOps tooling?
- AI 消费金额能否计入您已有的云服务承诺额度?Can AI spend count toward a cloud commitment you already hold?
请特别关注问题 3 和 4。对这两个问题回答含糊,通常意味着自动化可以不受限制地运行。Pay the most attention to questions 3 and 4. A vague answer there usually means automation can run without a cap.
平台和基础设施的选择会如何影响成本的可预测性?How do platform and infrastructure choices affect cost predictability?
平台选择决定了你要核对多少张发票,以及代理会消耗多少个单位,无论合同中的价格条款如何规定。Platform choices decide how many invoices you reconcile and how many units your agents burn, regardless of what the contract says about price.
在账单方面,GitLab 与 Google Cloud 扩大的合作将 GitLab 和 Duo Agent Platform 上架至 Google Cloud Marketplace,因此平台、推理和基础设施费用会合并到一张账单上。FinOps 团队只需核对一张发票,而不是三张。对于受监管行业的团队,通过 GitLab Duo Self-Hosted 运行 Gemma 4,可确保提示词和响应保留在自己的基础设施中,这意味着他们可以自行规划和控制推理容量。On billing, the expanded GitLab and Google Cloud partnership put GitLab and Duo Agent Platform on Google Cloud Marketplace, so platform, inference and infrastructure costs arrive on one bill. FinOps reconciles a single invoice instead of three. For regulated teams, running Gemma 4 through GitLab Duo Self-Hosted keeps prompts and responses on their own infrastructure, which means they size and control inference capacity themselves.
可靠性的重要性远超表面看起来的程度。任务失败后会重试,而在智能体架构中,重试还可能唤醒一个会因调查问题而向你收费的智能体。基础设施不稳定最终会让你同时付出停机和资源消耗的代价。Reliability matters more than it first appears. A failed job gets retried, and in an agentic setup the retry may also wake an agent that bills you for investigating it. Unstable infrastructure ends up costing you in downtime and in consumption.
MTrading 是一个交易平台,是一个很好的参考案例。它将应用迁移到了 Google Kubernetes Engine,在 Google Cloud 上运行 GitLab 及其 Runner,并将 SLA 从 99.9% 提升至 99.999%。按 30 天计算,允许的停机时间从约 43 分钟降至不到半分钟。Cloudfresh 为实现这一成果提供了 GitLab 与 Google Cloud 集成方面的支持。基础设施故障减少后,工程师和代理需要排查的流水线故障也随之减少。MTrading, a trading platform, is a useful reference here. It moved its applications to Google Kubernetes Engine, runs GitLab and its runners on Google Cloud, and saw its SLA go from 99.9% to 99.999%. Over a 30-day month, allowed downtime drops from about 43 minutes to under half a minute. Cloudfresh supported the GitLab and Google Cloud integration behind that result. With fewer infrastructure failures, engineers and agents have fewer broken pipelines to chase.
工程负责人和 FinOps 团队在下一次续约前应该做些什么?What should engineering leads and FinOps do before the next renewal?
像管理计算资源一样管理智能体:每个流程都要有负责人、标签、上限和告警。通常,这意味着要在下一次续约前:Treat agents the way you treat compute: every flow gets an owner, a tag, a cap and an alert. Before the next renewal, that usually means:
- 开展为期 30 天的试点,让每个自动化流程都使用其专属的项目级服务账户,然后导出逐事件数据,查看哪些流程产生了成本。Running a 30-day pilot with each automated flow under its own per-project service account, then exporting the per-event data to see which flows drive cost.
- 根据负载最高的月份再加上一些余量来确定承诺额度。平均值会掩盖有人安排夜间流程在 200 个代码仓库上运行的那一周。Sizing the commitment on the heaviest month plus some headroom. An average hides the week someone scheduled a nightly flow across 200 repositories.
- 先设置订阅级上限,再设置每用户上限,因为按命名空间计费的自动化只遵循第一个上限。Setting the subscription cap before per-user caps, since namespace-billed automation only respects the first.
- 根据任务匹配模型:安全分析和其他需要大量推理的工作使用大型模型,标注和摘要则使用轻量模型。Matching models to tasks: heavy models for security analysis and other reasoning-heavy work, lighter ones for labeling and summaries.
- 在添加更多流水线代理之前,先修复不稳定的测试。Fixing flaky tests before adding more pipeline agents.
- 通过上下文压缩技术等代码层面的工作,减少每次调用的 token 数量,这可以补充你在合同中协商的内容。Cutting tokens per call with code-level work such as context compression techniques, which complements whatever you negotiate in the contract.
席位制短期内不会从 SaaS 合同中消失,但每过一个季度,它们在账单中的占比就会减少。能够按流程、项目和模型拆分账单的团队,会发现下一次续约谈判容易得多。Seats won't disappear from SaaS contracts any time soon, but each quarter they explain less of the invoice. Teams that can break the bill down by flow, project and model will find the next renewal a lot easier to negotiate.