{"openapi":"3.1.0","info":{"title":"LLM Cost & Capacity Calc","version":"1.0.0","description":"Token estimates, API cost, prompt-cache savings, batch discounts, context fit, rate-limit planning and model comparison from your own prices. One call, one computed answer, no accounts or API keys. Machine-payable over x402.","x-guidance":"LLM Cost & Capacity Calc: Token estimates, API cost, prompt-cache savings, batch discounts, context fit, rate-limit planning and model comparison from your own prices. Use /token-estimate for a rough token count of text, /llm-cost for request cost, /cache-savings for prompt-caching economics, /batch-discount for batch vs realtime, /context-fit for context-window headroom, /rate-limit-plan for sustainable throughput, /monthly-budget for usage forecasts and /model-compare to rank models by cost for a workload. Each paid GET returns a computed verdict with the reasons, the source and what was NOT checked. A verdict of UNVERIFIED means a lookup failed: treat it as unknown. No account or key: pay per call in USDC over x402."},"servers":[{"url":"https://llm-cost-calc.x402tookit.com"}],"paths":{"/batch-discount":{"get":{"operationId":"batch_discount","summary":"Compare realtime and batch API cost for a workload with your discount fraction, and the money saved by waiting.","description":"Compare realtime and batch API cost for a workload with your discount fraction, and the money saved by waiting.","tags":["llm","batch","cost","discount"],"parameters":[{"name":"inputTokens","in":"query","required":true,"description":"Input tokens per request","schema":{"type":"number"}},{"name":"outputTokens","in":"query","required":true,"description":"Output tokens per request","schema":{"type":"number"}},{"name":"requests","in":"query","required":true,"description":"Number of requests, 1 to 1e9","schema":{"type":"integer"}},{"name":"inputPricePerMTok","in":"query","required":true,"description":"Realtime price per million input tokens","schema":{"type":"number"}},{"name":"outputPricePerMTok","in":"query","required":true,"description":"Realtime price per million output tokens","schema":{"type":"number"}},{"name":"batchDiscount","in":"query","required":false,"description":"Batch discount as a fraction, 0 to 1 (default 0.5 = 50% off)","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"realtimeCost":{"type":["null","number"]},"batchCost":{"type":["null","number"]},"savings":{"type":["null","number"]},"discountPercent":{"type":["null","number"]},"requests":{"type":["null","number"]},"realtimeCostPerRequest":{"type":["null","number"]},"batchCostPerRequest":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"BATCH_CHEAPER","summary":"Realtime 1050 vs batch 525: batch saves 525 (50%).","reasons":["Batch suits work that can wait for a delayed result."],"realtimeCost":1050,"batchCost":525,"savings":525,"discountPercent":50,"requests":100000,"realtimeCostPerRequest":0.0105,"batchCostPerRequest":0.00525,"degraded":false,"notChecked":["your provider's real batch terms, discount and turnaround window (you supply the discount)","whether every model or feature supports batch","…1 more"],"source":"computed locally (caller-supplied discount)","asOf":"2026-10-12T00:47:55.845Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/batch-discount"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/batch-discount"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/batch-discount"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/batch-discount"}}]}}},"/cache-savings":{"get":{"operationId":"cache_savings","summary":"Prompt-cache savings for a shared prefix: cost with and without caching, break-even requests and percent saved.","description":"Prompt-cache savings for a shared prefix: cost with and without caching, break-even requests and percent saved.","tags":["llm","prompt-caching","cost","savings"],"parameters":[{"name":"prefixTokens","in":"query","required":true,"description":"Tokens in the cacheable shared prefix","schema":{"type":"number"}},{"name":"uncachedTokens","in":"query","required":false,"description":"Extra non-cached input tokens per request (default 0)","schema":{"type":"number"}},{"name":"requests","in":"query","required":true,"description":"Requests that reuse the prefix within the cache lifetime, 1 to 1e9","schema":{"type":"integer"}},{"name":"inputPricePerMTok","in":"query","required":true,"description":"Normal price per million input tokens","schema":{"type":"number"}},{"name":"writeMultiplier","in":"query","required":false,"description":"Cache-write price as a multiple of normal input (default 1.25)","schema":{"type":"number"}},{"name":"readMultiplier","in":"query","required":false,"description":"Cache-read price as a multiple of normal input (default 0.1)","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"costWithoutCaching":{"type":["null","number"]},"costWithCaching":{"type":["null","number"]},"savings":{"type":["null","number"]},"savingsPercent":{"type":["null","number"]},"breakEvenRequests":{"type":["null","number"]},"writeMultiplier":{"type":["null","number"]},"readMultiplier":{"type":["null","number"]},"requests":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"CACHING_SAVES_MONEY","summary":"Without caching 3.075, with caching 0.444: saves 2.631 (85.56%) over 50 request(s).","reasons":["Caching pays off from request number 2 onward (first request pays the write premium)."],"costWithoutCaching":3.075,"costWithCaching":0.444,"savings":2.631,"savingsPercent":85.56,"breakEvenRequests":2,"writeMultiplier":1.25,"readMultiplier":0.1,"requests":50,"degraded":false,"notChecked":["your provider's actual multipliers, minimum cacheable size and cache lifetime (you supply them)","cache misses between requests when traffic is slow","…1 more"],"source":"computed locally (caller-supplied multipliers)","asOf":"2026-10-12T00:47:56.118Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/cache-savings"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/cache-savings"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/cache-savings"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/cache-savings"}}]}}},"/context-fit":{"get":{"operationId":"context_fit","summary":"Check whether a prompt fits a context window with output reserve, and how many more chat turns fit.","description":"Check whether a prompt fits a context window with output reserve, and how many more chat turns fit.","tags":["llm","context-window","tokens","capacity"],"parameters":[{"name":"contextWindow","in":"query","required":true,"description":"Model context window in tokens","schema":{"type":"number"}},{"name":"promptTokens","in":"query","required":true,"description":"Tokens already in the prompt (system + history + new input)","schema":{"type":"number"}},{"name":"maxOutputTokens","in":"query","required":false,"description":"Tokens reserved for the reply (default 1024)","schema":{"type":"number"}},{"name":"tokensPerTurn","in":"query","required":false,"description":"Average tokens a new user + assistant turn adds, to count remaining turns","schema":{"type":"number"}},{"name":"safetyPercent","in":"query","required":false,"description":"Extra headroom percent kept free, 0 to 50 (default 5)","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"contextWindow":{"type":["null","number"]},"promptTokens":{"type":["null","number"]},"outputReserve":{"type":["null","number"]},"safetyHeadroom":{"type":["null","number"]},"tokensFree":{"type":["null","number"]},"percentUsed":{"type":["null","number"]},"turnsRemaining":{"type":["null","number"]},"tokensToTrim":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"FITS","summary":"Fits with 35904 tokens to spare, room for 23 more turn(s).","reasons":["Window 200000 - prompt 150000 - output reserve 4096 - headroom 10000 = 35904."],"contextWindow":200000,"promptTokens":150000,"outputReserve":4096,"safetyHeadroom":10000,"tokensFree":35904,"percentUsed":77,"turnsRemaining":23,"tokensToTrim":0,"degraded":false,"notChecked":["the real tokenizer count (your promptTokens may be an estimate)","whether the model counts the output reserve inside the window (most do)","…1 more"],"source":"computed locally (subtraction and division)","asOf":"2026-10-12T00:47:56.380Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/context-fit"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/context-fit"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/context-fit"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/context-fit"}}]}}},"/llm-cost":{"get":{"operationId":"llm_cost","summary":"Cost of LLM API calls from input and output tokens and your per-million-token prices, per request and in total.","description":"Cost of LLM API calls from input and output tokens and your per-million-token prices, per request and in total.","tags":["llm","cost","tokens","pricing"],"parameters":[{"name":"inputTokens","in":"query","required":true,"description":"Input (prompt) tokens per request","schema":{"type":"number"}},{"name":"outputTokens","in":"query","required":true,"description":"Output (completion) tokens per request","schema":{"type":"number"}},{"name":"inputPricePerMTok","in":"query","required":true,"description":"Price per million input tokens, in your currency","schema":{"type":"number"}},{"name":"outputPricePerMTok","in":"query","required":true,"description":"Price per million output tokens","schema":{"type":"number"}},{"name":"requests","in":"query","required":false,"description":"Number of requests, 1 to 1e9 (default 1)","schema":{"type":"integer"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"costPerRequest":{"type":["null","number"]},"inputCostPerRequest":{"type":["null","number"]},"outputCostPerRequest":{"type":["null","number"]},"totalCost":{"type":["null","number"]},"requests":{"type":["null","number"]},"totalInputTokens":{"type":["null","number"]},"totalOutputTokens":{"type":["null","number"]},"outputShareOfCostPercent":{"type":["null","number"]},"blendedPricePerMTok":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"COMPUTED","summary":"0.0165 per request (input 0.009 + output 0.0075); 16.5 for 1000 request(s).","reasons":["Output is 45.5% of the per-request cost."],"costPerRequest":0.0165,"inputCostPerRequest":0.009,"outputCostPerRequest":0.0075,"totalCost":16.5,"requests":1000,"totalInputTokens":3000000,"totalOutputTokens":500000,"outputShareOfCostPercent":45.5,"blendedPricePerMTok":4.714286,"degraded":false,"notChecked":["real provider prices (you supply them)","caching, batch, tool, image or long-context surcharges","…2 more"],"source":"computed locally (tokens x price / 1,000,000)","asOf":"2026-10-12T00:47:56.645Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/llm-cost"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/llm-cost"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/llm-cost"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/llm-cost"}}]}}},"/model-compare":{"get":{"operationId":"model_compare","summary":"Rank 2 to 20 models by cost for a workload from your own prices; flags models whose context window is too small.","description":"Rank 2 to 20 models by cost for a workload from your own prices; flags models whose context window is too small.","tags":["llm","model","compare","cost"],"parameters":[{"name":"models","in":"query","required":true,"description":"JSON array of {name, inputPricePerMTok, outputPricePerMTok, contextWindow?}","schema":{"type":"string"}},{"name":"inputTokens","in":"query","required":true,"description":"Input tokens per request","schema":{"type":"number"}},{"name":"outputTokens","in":"query","required":true,"description":"Output tokens per request","schema":{"type":"number"}},{"name":"requests","in":"query","required":false,"description":"Number of requests (default 1000)","schema":{"type":"integer"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"]},"cheapest":{"type":["null","string"]},"ranked":{"type":["array","null"],"items":{"type":"object","properties":{"name":{"type":["null","string"]},"costPerRequest":{"type":["null","number"]},"totalCost":{"type":["null","number"]},"fitsContext":{"type":["boolean","null"]},"contextWindow":{"type":["null","number"]}}}},"requests":{"type":["null","number"]},"tokensPerRequest":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"RANKED","summary":"Cheapest that fits: Small at 22.5 for 10000 request(s); 98.33% below Big.","reasons":[],"cheapest":"Small","ranked":[{"name":"Small","costPerRequest":0.00225,"totalCost":22.5,"fitsContext":true,"contextWindow":32000},{"name":"Mid","costPerRequest":0.027,"totalCost":270,"fitsContext":true,"contextWindow":200000}],"requests":10000,"tokensPerRequest":5800,"degraded":false,"notChecked":["quality, speed, reliability or safety differences between models","real current prices (you supply them)","…1 more"],"source":"computed locally (caller-supplied prices)","asOf":"2026-10-12T00:47:56.908Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/model-compare"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/model-compare"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/model-compare"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/model-compare"}}]}}},"/monthly-budget":{"get":{"operationId":"monthly_budget","summary":"Forecast monthly and yearly LLM spend from daily requests, tokens and prices, with monthly growth and per-user cost.","description":"Forecast monthly and yearly LLM spend from daily requests, tokens and prices, with monthly growth and per-user cost.","tags":["llm","budget","forecast","cost"],"parameters":[{"name":"requestsPerDay","in":"query","required":true,"description":"Requests per day at the start","schema":{"type":"number"}},{"name":"inputTokens","in":"query","required":true,"description":"Input tokens per request","schema":{"type":"number"}},{"name":"outputTokens","in":"query","required":true,"description":"Output tokens per request","schema":{"type":"number"}},{"name":"inputPricePerMTok","in":"query","required":true,"description":"Price per million input tokens","schema":{"type":"number"}},{"name":"outputPricePerMTok","in":"query","required":true,"description":"Price per million output tokens","schema":{"type":"number"}},{"name":"monthlyGrowthPercent","in":"query","required":false,"description":"Usage growth per month in percent (default 0)","schema":{"type":"number"}},{"name":"months","in":"query","required":false,"description":"Months to project, 1 to 60 (default 12)","schema":{"type":"integer"}},{"name":"users","in":"query","required":false,"description":"Active users, to compute cost per user per month","schema":{"type":"integer"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"costPerRequest":{"type":["null","number"]},"month1Cost":{"type":["null","number"]},"finalMonthCost":{"type":["null","number"]},"totalCost":{"type":["null","number"]},"averageMonthlyCost":{"type":["null","number"]},"costPerUserMonth1":{"type":["null","number"]},"projection":{"type":["array","null"],"items":{"type":"object","properties":{"month":{"type":["null","number"]},"requests":{"type":["null","number"]},"cost":{"type":["null","number"]}}}},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"FORECAST","summary":"Month 1 about 630, month 12 about 1797.463525; 12-month total 13472.098773.","reasons":["Cost per request 0.0105; 30-day months; 10% monthly growth compounded."],"costPerRequest":0.0105,"month1Cost":630,"finalMonthCost":1797.463525,"totalCost":13472.098773,"averageMonthlyCost":1122.674898,"costPerUserMonth1":1.26,"projection":[{"month":1,"requests":60000,"cost":630},{"month":2,"requests":66000,"cost":693}],"degraded":false,"notChecked":["price changes, volume discounts and committed-use deals","seasonality and retries","…2 more"],"source":"computed locally (30-day months, compound growth)","asOf":"2026-10-12T00:47:57.170Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/monthly-budget"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/monthly-budget"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/monthly-budget"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/monthly-budget"}}]}}},"/rate-limit-plan":{"get":{"operationId":"rate_limit_plan","summary":"Sustainable requests per minute under RPM and TPM limits, job duration for N requests, and concurrency needed.","description":"Sustainable requests per minute under RPM and TPM limits, job duration for N requests, and concurrency needed.","tags":["llm","rate-limit","throughput","capacity"],"parameters":[{"name":"requestsPerMinuteLimit","in":"query","required":true,"description":"Provider requests-per-minute limit","schema":{"type":"number"}},{"name":"tokensPerMinuteLimit","in":"query","required":true,"description":"Provider tokens-per-minute limit (input + output as your provider counts)","schema":{"type":"number"}},{"name":"tokensPerRequest","in":"query","required":true,"description":"Average tokens counted per request","schema":{"type":"number"}},{"name":"totalRequests","in":"query","required":false,"description":"Size of the job in requests (default 1000)","schema":{"type":"integer"}},{"name":"secondsPerRequest","in":"query","required":false,"description":"Average latency of one request, to compute concurrency (default 5)","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"sustainedRequestsPerMinute":{"type":["null","number"]},"limitedBy":{"type":["null","string"]},"requestsAllowedByRpm":{"type":["null","number"]},"requestsAllowedByTpm":{"type":["null","number"]},"jobMinutes":{"type":["null","number"]},"jobHours":{"type":["null","number"]},"concurrencyNeeded":{"type":["null","number"]},"tokensPerMinuteUsed":{"type":["null","number"]},"tpmUtilizationPercent":{"type":["null","number"]},"rpmUtilizationPercent":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"PLANNED","summary":"Sustain 160 requests/min (limited by tokens per minute); 20000 requests take 125 min (2.08 h) with about 16 in flight.","reasons":["RPM allows 1000; TPM allows 160 requests of 2500 tokens.","Concurrency = requests per second x latency (Little's law)."],"sustainedRequestsPerMinute":160,"limitedBy":"tokens per minute","requestsAllowedByRpm":1000,"requestsAllowedByTpm":160,"jobMinutes":125,"jobHours":2.08,"concurrencyNeeded":16,"tokensPerMinuteUsed":400000,"tpmUtilizationPercent":100,"rpmUtilizationPercent":16,"degraded":false,"notChecked":["burst allowances, token-bucket refill behavior or per-second sub-limits","tier changes, retries after 429s, and shared limits across keys","…1 more"],"source":"computed locally (min of limits, Little's law)","asOf":"2026-10-12T00:47:57.433Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/rate-limit-plan"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/rate-limit-plan"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/rate-limit-plan"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/rate-limit-plan"}}]}}},"/token-estimate":{"get":{"operationId":"token_estimate","summary":"Rough LLM token estimate of text from characters and words, as a low-high range by content type. Not a tokenizer.","description":"Rough LLM token estimate of text from characters and words, as a low-high range by content type. Not a tokenizer.","tags":["tokens","llm","estimate","context"],"parameters":[{"name":"text","in":"query","required":true,"description":"The text to estimate (up to 20000 characters)","schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"description":"english (default), code, or cjk, which changes the characters-per-token assumption","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"characters":{"type":["null","number"]},"words":{"type":["null","number"]},"bytes":{"type":["null","number"]},"kind":{"type":["null","string"]},"tokensLow":{"type":["null","number"]},"tokensMid":{"type":["null","number"]},"tokensHigh":{"type":["null","number"]},"charactersPerTokenAssumed":{"type":["array","null"],"items":{"type":"number"}},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"ESTIMATED","summary":"About 12 tokens (range 10 to 14) for 44 characters, 9 words.","reasons":["Assumed 3.5 to 4.5 characters per token for english text.","Use your provider's own token counter when the exact number matters."],"characters":44,"words":9,"bytes":44,"kind":"english","tokensLow":10,"tokensMid":12,"tokensHigh":14,"charactersPerTokenAssumed":[3.5,4.5],"degraded":false,"notChecked":["the real tokenizer of any specific model (counts differ by model, version and language)","images, tools, system prompts or message framing overhead","…1 more"],"source":"computed locally (characters-per-token heuristics)","asOf":"2026-10-12T00:47:57.696Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/token-estimate"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/token-estimate"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/token-estimate"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://llm-cost-calc.x402tookit.com/token-estimate"}}]}}}}}