{
  "x402Version": 2,
  "id": 7325,
  "slug": "7325",
  "resource": "https://api.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.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x6b9fEA865421422997654B35ac4a6C0E06b959F0",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "100000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {},
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "opencode-go": {
                "borrowedCap": true,
                "confidence": "exact",
                "creditsPer5h": null,
                "creditsPerWeek": null,
                "kind": "usd",
                "perModel": {
                  "GLM-5.2": {
                    "pricePerMillionCachedRead": 0.26,
                    "pricePerMillionInput": 1.4,
                    "pricePerMillionOutput": 4.4
                  }
                }
              }
            },
            "last_modified": "2026-08-09T00:00:00Z",
            "schema_version": "1"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {},
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "api.tokenplans.dev",
  "lastUpdated": "2026-09-06T12:11:51.403Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-06T12:11:51.247Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.tokenplans.dev",
    "manifest_name": "api.tokenplans.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}