{
  "schema_version": "1.0",
  "surface_type": "guide_answer",
  "guide_id": "pr-review-cost",
  "question": "How do I estimate AI PR review cost per pull request?",
  "canonical_url": "https://www.unitcostai.com/guides/pr-review-cost",
  "related_tool_url": "https://www.unitcostai.com/tools/pr-review-cost",
  "formula": "repo_refresh_share_usd = repo_refresh_monthly_usd / monthly_pr_reviews; cost_per_pr_review_usd = generation + retrieval + reranking + repo_refresh_share_usd + vector_db + cache + infra; optional_margin_pct = (review_price_or_chargeback_usd - cost_per_pr_review_usd) / review_price_or_chargeback_usd * 100",
  "assumptions": [
    "One PR review can include multiple model requests, not only the final review comment",
    "Diff tokens, retrieved repo context, and reranked candidate files should stay visible as separate drivers",
    "Repo refresh is a fixed monthly term amortized across monthly PR reviews"
  ],
  "example": "If generation, retrieval, reranking, repo refresh share, vector, cache, and infra sum to 0.09 per reviewed PR, a 0.50 internal chargeback leaves 0.41 gross profit per review before human review time is considered."
}
