{"uid":"cap_3_s8WoMc1k8EBDlfJUe2z","slug":"tokenplans-dev-cost-rules-e90f5103","name":"tokenplans.dev Cost Rules","description":"Per-provider JSON cost rules for computing requests-per-dollar on AI coding plans: per-token USD rates or credit budgets with per-model rates, 5h/weekly credit limits, monthly per-model caps, and confidence levels (exact/proxy). The input dataset for a subscription cost calculator.","url":"https://api.tokenplans.dev/cost-rules","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":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_u7Slw9sITyW52q-MM8X9u","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns per-provider JSON cost rules (per-token USD rates, credit budgets, per-model rates, weekly/monthly caps, and confidence levels) for computing requests-per-dollar across AI coding subscription plans.","exampleAgentPrompt":"Pull the cost rules for all AI coding providers so I can see per-token USD rates, credit budgets, and weekly limits — I want to figure out which plan gives the most requests per dollar.","exampleUseCases":[{"title":"Compare requests-per-dollar across AI tools","prompt":"Which AI coding subscription gives me the most requests per dollar? Fetch the cost rules for all providers and show me a ranked comparison."},{"title":"Build subscription cost calculator","prompt":"I'm building a tool that calculates monthly AI coding costs for developers. Grab the per-token rates, credit budgets, and monthly per-model caps from the cost rules so I can use them as input data."},{"title":"Audit model-level rate accuracy","prompt":"For the AI coding plans that have 'proxy' confidence levels on their cost rules, which providers have exact per-token rates and which are estimates? Pull the full cost rules and flag anything that's not confirmed."}],"resultDescription":"A JSON object containing per-provider cost rules for AI coding plans, including per-token USD rates or credit budgets with per-model breakdowns, 5-hour/weekly credit limits, monthly per-model caps, and confidence levels (exact or proxy) indicating data accuracy. This serves as the authoritative input dataset for building a subscription cost calculator.","failureModes":["Payment not received or insufficient USDC — returns 402 Payment Required","API unavailable or maintenance — returns 5xx server error","Stale data if cost rules haven't been updated to reflect recent provider price changes","Empty or partial response if provider data is incomplete in the catalog"],"whenToPreferThis":"Use this endpoint when you need structured, machine-readable pricing rules specifically for computing cost efficiency (requests-per-dollar) across AI coding subscription plans. It is purpose-built as a calculator input dataset, unlike the sibling changelog endpoint (which tracks value changes over time) or the full catalog endpoint (which provides broader plan metadata). Prefer this when you need confidence-level annotations and normalized rate structures ready for programmatic cost computation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:36:00.010Z","isFirstParty":false}