{
  "tool_id": "financial_document_token_estimator",
  "slug": "financial-document-token-estimator",
  "path": "/financial-document-token-estimator/",
  "mode": "client_side",
  "usage": "Client-side calculator. Open https://aifinhub.io/financial-document-token-estimator/ and fill in the inputs; results render in-browser. Also importable as ES module from https://aifinhub.io/engines/financial-document-token-estimator.js — call compute(input) with the JSON shape below.",
  "methodology": "https://aifinhub.io/methodology/financial-document-token-estimator/",
  "sample_input": {
    "tool": "financial_document_token_estimator",
    "mode": "archetype",
    "archetype_id": "10-k",
    "output_tokens": 1000,
    "peers": 0,
    "cache_hit_rate": 0
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "mode": {
        "type": "string"
      },
      "archetype_id": {
        "type": "string"
      },
      "output_tokens": {
        "type": "number"
      },
      "peers": {
        "type": "number"
      },
      "cache_hit_rate": {
        "type": "number"
      }
    },
    "required": [
      "tool",
      "mode",
      "archetype_id",
      "output_tokens",
      "peers",
      "cache_hit_rate"
    ]
  },
  "output_schema": {
    "type": "array",
    "description": "One row per model in the rate table.",
    "items": {
      "type": "object",
      "properties": {
        "model": {
          "type": "object"
        },
        "inputTokens": {
          "type": "integer"
        },
        "cacheReadTokens": {
          "type": "integer"
        },
        "outputTokens": {
          "type": "integer"
        },
        "onePassCost": {
          "type": "number"
        },
        "synthesisCost": {
          "type": "number"
        },
        "synthesisInputTokens": {
          "type": "integer"
        },
        "fitsInContext": {
          "type": "boolean"
        }
      }
    }
  }
}
