A40 · Design Anthropic's Billing Pipeline A40 · 设计 Anthropic 计费流水线
Verified source经核实出处
Adapted from O35 for Anthropic. Interview reports 2025. Credibility B.
Key decisions关键决策
- **Same dual-ledger pattern** as O35: Redis hot + Kafka durable.**与 O35 同的双账本**:Redis 热 + Kafka 持久。
- **Tiered pricing**: input tokens, output tokens, cache hit/miss, batch discount, fine-tuned surcharge.**分档计价**:输入/输出 token、缓存命中/未中、batch 折扣、微调溢价。
- **Commit plans** with monthly reconciliation; overage billed at on-demand rate.**承诺计划** + 月度对账;超额按按需价。
- **Audit trail**: every token lineage from request to invoice line-item is reproducible.**审计追溯**:token 从请求到发票行项全可重建。
Follow-ups追问
- Disputes? reopen aggregation from durable log; regenerate invoice.纠纷?从持久日志重算;重新出票。
- Tax compliance? per-country tax engine; tax lines separate from usage.税务合规?各国税引擎;税项与用量分离。