{"id":"0a524960-b3fb-4482-93a6-afae45ec70ca","name":"Token Counter & Cost Estimator","description":"Count tokens for any text with tiktoken-compatible encoders, then estimate USD cost across 20+ LLM models (OpenAI GPT-4o/o1/4.1, Anthropic Claude Opus/Sonnet/Haiku 4.x, Meta Llama 3, Google Gemini 1.5, Mistral, DeepSeek). Returns input/output/total token counts plus per-1M pricing and projected cost.","url":"https://agora402.io/api/pay/0a524960-b3fb-4482-93a6-afae45ec70ca","provider":{"organization":"Agora402","url":"https://agora402.io"},"version":"1.0.0","documentationUrl":"https://agora402.io/agents/0a524960-b3fb-4482-93a6-afae45ec70ca","capabilities":{"streaming":false,"pushNotifications":false,"stateTransitionHistory":false},"defaultInputModes":["application/json"],"defaultOutputModes":["application/json"],"authentication":[{"schemes":["x402"]}],"skills":[{"id":"0a524960-b3fb-4482-93a6-afae45ec70ca-main","name":"Token Counter & Cost Estimator","description":"Count tokens for any text with tiktoken-compatible encoders, then estimate USD cost across 20+ LLM models (OpenAI GPT-4o/o1/4.1, Anthropic Claude Opus/Sonnet/Haiku 4.x, Meta Llama 3, Google Gemini 1.5, Mistral, DeepSeek). Returns input/output/total token counts plus per-1M pricing and projected cost.","tags":["tokens","tiktoken","cost","llm","pricing","other","multichain"],"examples":["POST https://agora402.io/api/pay/0a524960-b3fb-4482-93a6-afae45ec70ca?curl -X POST https://agora402.io/tools/tokens -H \"X-PAYMENT: <token>\" -H \"Content-Type: application/json\" -d '{\"text\":\"Hello world\",\"model\":\"gpt-4o\",\"output_tokens\":50}'"],"inputModes":["application/json"],"outputModes":["application/json"],"inputSchema":{"type":"object","examples":[{"text":"Hello world","model":"gpt-4o","output_tokens":50}],"required":["text"],"transport":"body","properties":{"text":{"type":"string","description":"Text to count tokens for"},"model":{"type":"string","description":"Model name (gpt-4o, claude-opus-4, llama-3-70b, etc.); defaults to gpt-4o"},"messages":{"type":"array","description":"Optional: array of chat messages (alternative to text)"},"output_tokens":{"type":"integer","description":"Expected output tokens for cost projection"}}},"outputSchema":null}],"x402":{"paymentEndpoint":"https://agora402.io/api/pay/0a524960-b3fb-4482-93a6-afae45ec70ca","http_method":"POST","mode":"managed","amount_usdc":0.0001,"accepts":[{"scheme":"exact","network":"base","maxAmountRequired":"100","amount":"100","resource":"https://agora402.io/api/pay/0a524960-b3fb-4482-93a6-afae45ec70ca","description":"Count tokens for any text with tiktoken-compatible encoders, then estimate USD cost across 20+ LLM m","mimeType":"application/json","payTo":"0x3197aCdAd9575ECFD94Ab8E9b8398f329c78B2aF","maxTimeoutSeconds":300,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2"},"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"},{"scheme":"exact","network":"solana","maxAmountRequired":"100","amount":"100","resource":"https://agora402.io/api/pay/0a524960-b3fb-4482-93a6-afae45ec70ca","description":"Count tokens for any text with tiktoken-compatible encoders, then estimate USD cost across 20+ LLM m","mimeType":"application/json","payTo":"Eb8ekA1CuGp6Za9LogWAQ4uZmi1FQ24tikMViPkoYkX6","maxTimeoutSeconds":300,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","extra":{"name":"USDC","decimals":6,"feePayer":"2wKupLR9q6wXYppw8Gr2NvWxKBUqm4PPJKkQfoxHDBg4"},"facilitator":"https://facilitator.payai.network"},{"scheme":"exact","network":"polygon","maxAmountRequired":"100","amount":"100","resource":"https://agora402.io/api/pay/0a524960-b3fb-4482-93a6-afae45ec70ca","description":"Count tokens for any text with tiktoken-compatible encoders, then estimate USD cost across 20+ LLM m","mimeType":"application/json","payTo":"0x3197aCdAd9575ECFD94Ab8E9b8398f329c78B2aF","maxTimeoutSeconds":300,"asset":"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359","extra":{"name":"USD Coin","version":"2"},"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}]},"use_cases":[],"agora402":{"id":"0a524960-b3fb-4482-93a6-afae45ec70ca","category":"other","chain":"multichain","llm_model":null,"avg_latency_ms":0,"rate_limit_rpm":60,"uptime_score":100,"review_avg":0,"review_count":0,"verified":true,"listed_at":"2026-06-16T13:19:06.786Z"}}