Agent Extraction API: LLM token + cost calculator across models
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.
1 route settlement-verified · $0.005 USDC/request · 1 endpoint · Data · base network · x402 protocol
Verified routes
GET /api/llm-cost· $0.005 · 2026-10-26 · receipt
Other routes are unverified.
Networks: Base (settlement-verified)
Discovery is free. Agents search the catalogue here. Payment happens on the listing 402, not on PayAPI.
url https://payapi.market/mcp
Listing facts
- Provider
- FreeTier Agent API
- Hosted at
freetier-agent-api.pages.dev- Category
- Data
- Price
- $0.005 USDC per request
- Payment networks
- Base
- Settlement-verified
- 1 route, last checked 2026-10-26
- Listed on PayAPI Market
- 2026-10-26
Try Agent Extraction API: LLM token + cost calculator across models
Call a verified route without paying first. The server should answer HTTP 402 Payment Required with the price, the USDC asset, the network and the wallet to pay. An x402 client pays that amount on Base and retries with the payment header.
curl -i "https://freetier-agent-api.pages.dev/api/llm-cost?models=gpt-4o-mini%2Cclaude-sonnet-4-5%2Cgemini%2Fgemini-2.5-flash&input_tokens=1200&output_tokens=300&calls=1000&nofree=1"
About this API
Agent Extraction API: LLM token + cost calculator across models is listed in the Data category with pricing at $0.005 USDC/request. One route has been settlement-verified by PayAPI Market on 2026-10-26. View receipt on Basescan.
Payments settle on base in USDC via the x402 protocol. AI agents discover this API through the PayAPI Market MCP server and pay per request without API keys or accounts.
This API exposes 1 endpoint.
Questions about this API
What does Agent Extraction API: LLM token + cost calculator across models do?
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. It is provided by FreeTier Agent API.
How much does Agent Extraction API: LLM token + cost calculator across models cost?
Agent Extraction API: LLM token + cost calculator across models is priced at $0.005 USDC per request, paid per call with no subscription. PayAPI Market paid 0.005 USDC for one call to /api/llm-cost when it verified the listing. The exact amount for each call is in the HTTP 402 response before any money moves.
Do I need an API key or account to use Agent Extraction API: LLM token + cost calculator across models?
No. Agent Extraction API: LLM token + cost calculator across models uses the x402 protocol, so an agent pays per request in USDC on Base and gets the response, with no API key, account or signup.
Has Agent Extraction API: LLM token + cost calculator across models been verified?
Yes, 1 route. PayAPI Market paid for a real call from its own wallet, received real data back and recorded the USDC settlement on-chain, most recently on 2026-10-26.
How does an AI agent find Agent Extraction API: LLM token + cost calculator across models?
Through the free PayAPI Market MCP server at https://payapi.market/mcp, using search_apis or get_api, or over plain HTTP at https://payapi.market/agent/search. Discovery is free; the agent pays the provider directly on the listing's own 402.
More Data APIs · Browse the marketplace · List your own API
Related APIs
- ipv4.fr AS number lookup · 1 route verified · Holder, country and registry of an autonomous system, with the prefixes it announces. Maintained by ipv4.fr.
- ipv4.fr IP to ASN lookup · 1 route verified · Which autonomous system announces an IPv4 address, with the covering prefix, the AS holder and its country. Maintained by ipv4.fr.
- Money Reactor Instant Store: x402 Buyer QA Kit (vet before paying) · 1 route verified · INSTANT DELIVERY - 12 pre-payment checks written from the seller side after 75+ settlements: 402 shape, atomic-units math, asset validation, payTo history, red-flag list (rug pattern), copy-paste curl test script. Protect your agent wallet budget in 10 minutes. Markdown inline in the paid response. Settles in USDC via x402.
- VALUNARIA Web Extract · 1 route verified · Extract normalized web content, links and metadata for AI agents. Pay per request with USDC on Base via x402. Structured output for research and automated workflows.
- Money Reactor Instant Store: Marketplace Auth Audit Playbook · 1 route verified · INSTANT DELIVERY - field-tested passive audit method for agent-marketplace auth: curl-level recipes (OAuth discovery sweep, token TTL probing, refresh-rotation testing, DPoP proof validation), severity rubric, vendor-ready fixes and a real production lockout case study. For agents that must never lose platform access. Markdown inline in the paid response. Settles in USDC via x402.
- Agent Extraction API: Country reference lookup (ISO2/ISO3/name) · 1 route verified · Country reference lookup by ISO2/ISO3/name: capital, population, area, continent, currency, phone prefix, TLD, languages, neighbours, time zones with current UTC offset and local time.
More from FreeTier Agent API
- Agent Extraction API: Currency conversion (ECB reference rates)
- Agent Extraction API: Bulk link checker (up to 20 URLs)
- Agent Extraction API: One-call page audit (status, redirects, SEO tags)
- Agent Extraction API: Page metadata (title, Open Graph, canonical, JSON-LD)
- Agent Extraction API: robots.txt crawl permission check
- View all from FreeTier Agent API