{
  "tool_id": "batch_vs_realtime_cost_calculator",
  "slug": "batch-vs-realtime-cost-calculator",
  "path": "/batch-vs-realtime-cost-calculator/",
  "mode": "client_side",
  "usage": "Client-side calculator. Open https://aifinhub.io/batch-vs-realtime-cost-calculator/ and fill in the inputs; results render in-browser. Also importable as ES module from https://aifinhub.io/engines/batch-vs-realtime-cost-calculator.js — call compute(input) with the JSON shape below.",
  "methodology": "https://aifinhub.io/methodology/batch-vs-realtime-cost-calculator/",
  "sample_input": {
    "tool": "batch_vs_realtime_cost_calculator",
    "model_id": "claude-sonnet-4-6",
    "jobs_per_day": 10000,
    "input_tokens_per_job": 4000,
    "output_tokens_per_job": 800,
    "deadline_hours": 24
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "model_id": {
        "type": "string"
      },
      "jobs_per_day": {
        "type": "number"
      },
      "input_tokens_per_job": {
        "type": "number"
      },
      "output_tokens_per_job": {
        "type": "number"
      },
      "deadline_hours": {
        "type": "number"
      }
    },
    "required": [
      "tool",
      "model_id",
      "jobs_per_day",
      "input_tokens_per_job",
      "output_tokens_per_job",
      "deadline_hours"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "model": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "tier": {
            "type": "string"
          },
          "inputUsdPerMToken": {
            "type": "number"
          },
          "outputUsdPerMToken": {
            "type": "number"
          },
          "contextWindow": {
            "type": "integer"
          }
        }
      },
      "realtimeCostPerDay": {
        "type": "number"
      },
      "batchCostPerDay": {
        "type": "number"
      },
      "effectiveCostPerDay": {
        "type": "number"
      },
      "savingsPerDay": {
        "type": "number"
      },
      "savingsPerMonth": {
        "type": "number"
      },
      "batchEligible": {
        "type": "boolean"
      },
      "usingBatch": {
        "type": "boolean"
      },
      "modeSuggestion": {
        "type": "string"
      },
      "providerComparison": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "provider": {
              "type": "string"
            },
            "model": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "provider": {
                  "type": "string"
                },
                "tier": {
                  "type": "string"
                },
                "inputUsdPerMToken": {
                  "type": "number"
                },
                "outputUsdPerMToken": {
                  "type": "number"
                },
                "contextWindow": {
                  "type": "integer"
                }
              }
            },
            "realtimeCostPerDay": {
              "type": "number"
            },
            "batchCostPerDay": {
              "type": "number"
            },
            "batchEligible": {
              "type": "boolean"
            },
            "supportsBatch": {
              "type": "boolean"
            },
            "batchSlaHours": {
              "type": "number"
            }
          }
        }
      }
    }
  }
}
