contar-tokens

CONSUMER: exact token count (tiktoken) for a model. input=text, modelo=optional. B2B: budget LLM calls.

0.001 USDC / call · x402 (USDC on Base, no signup)

100 free calls per wallet — try it before you pay.

▶ Try free (sample) Pay & use (x402)

Example

POST https://pagos.andreax.dev/mcp
{"jsonrpc":"2.0","method":"tools/call","id":1,
 "params":{"name":"contar-tokens","arguments":{"input":"your input here"}}}

→ 402 Payment Required (sign EIP-3009 and retry with x_payment)
→ 200 { "result": ... }

SDKs: pip install andreax-sdk · npm i @andreax/sdk · pip install langchain-andreax

FAQ

How much does contar-tokens cost?

0.0010 USDC per call (pay-per-use, no subscription). You pay only for what you call, over the x402 protocol (USDC on Base). No signup or monthly fee.

How do I use contar-tokens?

Send a GET request to https://andreax.dev/api/taller/peaje/contar-tokens?input=<your input>. On first call you get an HTTP 402 with payment requirements; pay in USDC (x402) and retry. Try it free with ?sample=1.

Is contar-tokens secure?

Payment uses EIP-3009 transferWithAuthorization on Base: the tool never takes custody of your funds and gas is sponsored for the payer. No API keys or accounts to leak.

What is x402?

x402 is an open micropayment protocol: an HTTP 402 response carries the price and payment details, the caller pays in USDC on Base, and retries. It lets AI agents pay per call with no signup.

What are the alternatives to contar-tokens?

Subscription AI APIs (e.g. large providers) require accounts, keys and monthly commitments. contar-tokens is pay-per-call with no signup — an agent can discover and pay for it autonomously.

How long does setup take?

None. There is no account, API key or install. An agent discovers the tool in the catalog and pays per call.

Full catalog · playground · blog