# MoneyTools LLM Cost Calculator

> MoneyTools LLM Cost Calculator is a paid API for AI agents from tools.moneytools.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-12-03).

Estimates the cost of LLM API calls across multiple AI models given token counts or raw prompt text and a number of calls

## Facts

- Endpoint: GET https://tools.moneytools.dev/v1/llm-cost?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/moneytools-llm-cost-calculator-a8f8d4d0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VOE-EAUPQXOGctorsPC0q

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability moneytools-llm-cost-calculator-a8f8d4d0
```

Example prompt: How much would it cost to make 100 calls to gpt-4o-mini, claude-sonnet-4, and gemini-2.5-flash with 2000 input tokens and 500 output tokens each?

## When to prefer this

Use this endpoint when an agent or user needs to compare LLM API costs across multiple providers before committing to a model, or to estimate spend for a known workload. It is especially useful when the user has a specific prompt they want to cost out, or when planning budgets for AI-powered applications. Prefer this over manual pricing page lookups or custom scripts when you need a quick, up-to-date, multi-model cost comparison in a single API call.

## Known failure modes

- Invalid or unrecognized model name in the comma-separated list returns an error or omits that model
- Missing required query parameters may result in defaults being applied (1000 input, 500 output tokens) rather than an error
- Malformed prompt text may cause unexpected token count results
- Rate limits or payment failures on the x402 layer may block the request

## How this service works

Catalog of MoneyTools: 116 cheap, read-only tools for AI agents. Free daily tier, then x402 USDC micropayments or prepaid credits. Token safety, approvals, tx decoding, EIP-712 risk, gas, ENS, x402 validation, DNS, RDAP, JSON Schema, time, FX.

## Output

A JSON object with per-model cost breakdowns including estimated USD cost for the specified number of calls, token counts, and model names, plus payment metadata indicating whether a free-tier or micropayment was used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "text": {
       "type": "string",
       "description": "or raw prompt text to count"
      },
      "calls": {
       "type": "string",
       "examples": [
        "100"
       ],
       "description": "number of calls (number, sent as a query string)"
      },
      "models": {
       "type": "string",
       "examples": [
        "gpt-4o-mini,claude-sonnet-4,gemini-2.5-flash"
       ],
       "description": "comma list (default all)"
      },
      "inputTokens": {
       "type": "string",
       "examples": [
        "2000"
       ],
       "description": "input tokens (default 1000) (number, sent as a query string)"
      },
      "outputTokens": {
       "type": "string",
       "examples": [
        "500"
       ],
       "description": "output tokens (default 500) (number, sent as a query string)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "properties": {
      "payment": {
       "type": "object",
       "properties": {
        "charged": {
         "type": "boolean"
        },
        "network": {
         "type": "string"
        },
        "amountUsd": {
         "type": "string"
        },
        "transaction": {
         "type": [
          "string",
          "null"
         ]
        }
       }
      },
      "freeTier": {
       "type": "object"
      },
      "_moneytools": {
       "type": "object",
       "description": "optional plan / partner hints"
      }
     },
     "description": "Tool-specific JSON result (see llms.txt / openapi.json). Always includes payment info.",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Public list prices as of 2026-11 (standard tier, no caching/batch discounts); verify with the provider before budgeting.",
  "calls": 100,
  "cheapest": "gpt-4o-mini",
  "estimates": [
   {
    "usd": 0.06,
    "model": "gpt-4o-mini",
    "input_per_1m": 0.15,
    "output_per_1m": 0.6
   },
   {
    "usd": 0.185,
    "model": "gemini-2.5-flash",
    "input_per_1m": 0.3,
    "output_per_1m": 2.5
   },
   {
    "usd": 1.35,
    "model": "claude-sonnet-4",
    "input_per_1m": 3,
    "output_per_1m": 15
   }
  ],
  "inputTokens": 2000,
  "known_models": [
   "gpt-4o",
   "gpt-4o-mini",
   "gpt-4.1"
  ],
  "outputTokens": 500
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/moneytools-llm-cost-calculator-a8f8d4d0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools.moneytools.dev](https://www.zero.xyz/host/tools.moneytools.dev/llms.txt)
