ToolAssay

Token & cost calculator

Token & cost calculator: estimate tokens for a text (or pass input_tokens/output_tokens) and price it across several models using provider list prices (LiteLLM price table, MIT). Params: models (comma list of model ids like gpt-4o-mini, claude-sonnet-4-5, gemini/gemini-2.5-flash or search words, max 15), text or input_tokens, output_tokens, calls.

Answers HTTP 200 without x402 payment termsour last check, 2026-11-28
0 of 7checks answered this week
n/amedian answer time
$0.005listed price per call
n/aprice it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

GET https://freetier-agent-api.pages.dev/api/llm-cost

CategoryMarket data
Provider hostfreetier-agent-api.pages.dev
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days1 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-11-28 no x402 terms 200 1011 ms
2026-11-27 no x402 terms 200 1063 ms
2026-11-26 no x402 terms 200 979 ms
2026-11-25 no x402 terms 200 962 ms
2026-11-24 no x402 terms 200 992 ms
2026-11-23 no x402 terms 200 963 ms
2026-11-22 no x402 terms 200 959 ms
2026-11-21 no x402 terms 200 960 ms
2026-11-20 no x402 terms 200 1037 ms
2026-11-19 no x402 terms 200 993 ms
2026-11-18 no x402 terms 200 977 ms
2026-11-17 no x402 terms 200 1009 ms
2026-11-16 no x402 terms 200 990 ms
2026-11-15 no x402 terms 200 1016 ms
2026-11-14 no x402 terms 200 1084 ms
2026-11-13 no x402 terms 200 967 ms
2026-11-12 no x402 terms 200 1041 ms
2026-11-11 no x402 terms 200 992 ms
2026-11-10 no x402 terms 200 1054 ms
2026-11-09 no x402 terms 200 1033 ms
2026-11-08 no x402 terms 200 962 ms
2026-11-07 no x402 terms 200 1013 ms
2026-11-06 no x402 terms 200 1033 ms
2026-11-05 no x402 terms 200 1092 ms
2026-11-04 no x402 terms 200 1059 ms
2026-11-03 no x402 terms 200 1022 ms
2026-11-02 no x402 terms 200 1005 ms
2026-11-01 no x402 terms 200 1001 ms
2026-10-31 no x402 terms 200 1234 ms

Example input (from the provider)

{
  "method": "GET",
  "queryParams": {
    "calls": "1000",
    "input_tokens": "1200",
    "models": "gpt-4o-mini,claude-sonnet-4-5,gemini/gemini-2.5-flash",
    "output_tokens": "300"
  },
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "calls": {
              "type": "string"
            },
            "input_tokens": {
              "type": "string"
            },
            "models": {
              "type": "string"
            },
            "output_tokens": {
              "type": "string"
            },
            "text": {
              "type": "string"
            }
          },
          "required": [],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "calls": {
              "type": [
                "number",
                "null"
              ]
            },
            "estimate_method": {},
            "input_tokens": {
              "type": [
                "number",
                "null"
              ]
            },
            "input_tokens_estimated": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "output_tokens": {
              "type": [
                "number",
                "null"
              ]
            },
            "results": {
              "items": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "type": "array"
            },
            "sources": {
              "items": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "type": "array"
            }
          },
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON