Parameters2
leftobjectexample:nulldefault:nullrightobjectexample:nulldefault:null
Service overview
Count the number of tokens in a text string using the specified tokenizer encoding. Supports cl100k_base (GPT-4/GPT-3.5, exact BPE), o200k_base (GPT-4o, exact BPE), claude (Claude models, estimated), and gemini (Gemini models, estimated). Use before sending text to an LLM to estimate cost, check context window fit, or enforce token budgets. For base64-encoded images, set content_type='image' for tile-based token estimation. Send {"text": "...", "encoding": "cl100k_base"}. Max 50 MB text.
API surface
8 crawlable routes
leftobjectnullnullrightobjectnullnullhtmlstring<h1>Hello</h1><p>World</p>nullurlstringhttps://example.comnullurlstringhttps://example.com/readme.mdnullurlstringhttps://example.comnullencodingstringcl100k_basenulltextstringHello, world!nullfilestring(binary JPEG image)nullContent-Typestringimage/jpeg | image/png | multipart/form-datanullfilestring(binary JPEG or PNG image)nullMarketplace context
Service
OATP · tx_explainer — Fetch a Solana transaction by signature and return a human-readable explanation: programs invoked, token balance changes, fee (SOL + USD), and a one-line summary.
Service
Exa /contents endpoint
Service
Decode and explain any EVM blockchain transaction across 11 chains (Base, Ethereum, Arbitrum, Optimism, Avalanche, Polygon, Mantle, Monad, Plasma, BSC, Hyperliquid). Get a human-readable summary of swaps, transfers, approvals, DeFi interactions, and more.