{
  "tool_id": "token-cost-optimizer",
  "slug": "token-cost-optimizer",
  "path": "/token-cost-optimizer/",
  "mode": "client_side",
  "usage": "Client-side calculator. Open https://aifinhub.io/token-cost-optimizer/ to estimate cost-per-idea across LLM providers for a trading research loop.",
  "methodology": "https://aifinhub.io/methodology/token-cost-optimizer/",
  "sample_input": {
    "tool": "token-cost-optimizer",
    "input_tokens_per_call": 6000,
    "output_tokens_per_call": 1200,
    "calls_per_idea": 4,
    "retry_rate": 0.15,
    "ideas_per_day": 20,
    "validation_rate": 0.2,
    "cache_hit_rate": 0.5
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "input_tokens_per_call": {
        "type": "number"
      },
      "output_tokens_per_call": {
        "type": "number"
      },
      "calls_per_idea": {
        "type": "number"
      },
      "retry_rate": {
        "type": "number"
      },
      "ideas_per_day": {
        "type": "number"
      },
      "validation_rate": {
        "type": "number"
      },
      "cache_hit_rate": {
        "type": "number"
      }
    },
    "required": [
      "tool",
      "input_tokens_per_call",
      "output_tokens_per_call",
      "calls_per_idea",
      "retry_rate",
      "ideas_per_day",
      "validation_rate",
      "cache_hit_rate"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "cost_per_idea_usd": {
        "type": "number"
      },
      "monthly_cost_usd": {
        "type": "number"
      },
      "cost_per_validated_trade_usd": {
        "type": "number"
      },
      "optimization_hints": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    }
  }
}
