← Back to discover
httppayai
Agent Extraction API
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.
Resource URL
https://freetier-agent-api.pages.dev/api/llm-cost
Payment options
exactBase (8453)
$0.005 USDC
Max amount
- Pay to
- 0x165Eb3dC3E98403ecB1141e90400F5e71806554B
- Timeout
- 300s
Tags
llmpricingcost-estimate
For agents
Prompt snippet for AI agents
Find and pay for this x402 resource: URL: https://freetier-agent-api.pages.dev/api/llm-cost Type: http Sources: payai