{"uid":"cap_VOE-EAUPQXOGctorsPC0q","slug":"moneytools-llm-cost-calculator-a8f8d4d0","name":"MoneyTools LLM Cost Calculator","description":"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.","url":"https://tools.moneytools.dev/v1/llm-cost?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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}}}}},"responseSchema":{"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}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6qYqpYrl_QAK9Of8Js4lO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Estimates the cost of LLM API calls across multiple AI models given token counts or raw prompt text and a number of calls","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Budget estimate before model selection","prompt":"I'm building a chatbot and expect about 500 calls a day with roughly 1500 input tokens and 300 output tokens per call. Can you compare costs across gpt-4o-mini, claude-sonnet-4, and gemini-2.5-flash so I know which is cheapest?"},{"title":"Cost check for a specific prompt","prompt":"Here's my system prompt — 'You are a helpful customer support agent for an e-commerce store. Answer questions about orders, shipping, and returns concisely.' — how many tokens is that and what would 1000 calls cost across all major models?"},{"title":"Monthly LLM spend projection","prompt":"We're running 10000 LLM calls a month with an average of 2000 input tokens and 800 output tokens. Can you estimate the monthly cost across gpt-4o-mini and claude-sonnet-4 so I can plan our budget?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T06:38:04.529Z","isFirstParty":false,"canonicalSlug":"moneytools-llm-cost-calculator-a8f8d4d0"}