# 自动化工作流成本计算 — WorkflowCost

Canonical: https://agiscorecard.com/zh/workbench/workflowcost
Language: zh-Hans
方法版本: 2026-09-19.2

为自动化服务报价前，计算重试、人工复核和固定成本。

## 使用方法与计算依据

预期尝试次数 = 1 + p + … + p^最多重试次数。完成概率 = 1 − p^(最多重试次数+1)。每月成本包括执行、人工复核和固定费用。

## 输入格式

- 每月提交次数: `runs`
- 每次尝试的输入 token 数: `input`
- 每次尝试的输出 token 数: `output`
- 每百万输入 token 价格: `inputrate`
- 每百万输出 token 价格: `outputrate`
- 每次尝试的其他成本: `other`
- 每次失败概率（0–0.99）: `failure`
- 最多重试次数: `retries`
- 每个提交任务的人工复核分钟数: `minutes`
- 每小时人工成本: `hourly`
- 每月固定成本: `fixed`

## 可复现示例

所有预填业务示例均为虚构，请替换为自己已核对的数据。

```json
{
  "columns": [
    "指标",
    "数值"
  ],
  "rows": [
    [
      "One attempt cost",
      "0.02"
    ],
    [
      "Expected attempts per run",
      "1.1100"
    ],
    [
      "Completion probability",
      "99.90%"
    ],
    [
      "Monthly execution cost",
      "23.98"
    ],
    [
      "Monthly human review cost",
      "250.00"
    ],
    [
      "Fixed monthly cost",
      "20.00"
    ],
    [
      "Monthly total",
      "293.98"
    ],
    [
      "Cost per expected completed run",
      "0.29"
    ]
  ]
}
```

## 限制与假设

所有金额必须使用同一币种。假设每次尝试的失败概率相同且相互独立；相关性故障不符合该假设。

人工复核时长按每个提交任务计一次；厂商价格由用户输入，并非实时价格源。

计算在浏览器中完成，只有在会员工作区主动点击保存时才上传记录。

[RFC 4180 — CSV format](https://www.rfc-editor.org/rfc/rfc4180)
