← Back to directory

Estimate token count and cost for text across LLM models (GPT-4o, Claude, Gemini...

https://api.strale.io/x402/token-count

Overview

Estimate token count and cost for text across LLM models (GPT-4o, Claude, Gemini, Mistral, Llama). Algorithmic — no API calls.

Protocol x402
Price $0.02
Payment Asset USD Coin
Payment Network Base
Category uncategorized
Provider strale
Source bazaar
Indexed 2026-04-15 14:09:52

Health

Status healthy
Latency (p50) 156ms
Uptime (30d) 100.0%
Reliability Score 100/100
Last Checked 2026-09-26 14:28:15
Last Healthy 2026-09-26 14:28:15
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified —
Facilitator —

Input Schema

{ "discoverable": true, "method": "GET", "queryParams": { "model": { "description": "gpt-4o, claude-3-haiku, etc.", "type": "string" }, "text": { "required": true, "type": "string" } }, "type": "http" }

Output Schema

{ "estimated_cost_usd": { "type": "number" }, "fits_context_window": { "type": "boolean" }, "max_context_for_model": { "type": "integer" }, "token_count": { "type": "integer" } }

Recent Health Checks

Time Status HTTP Latency Error
2026-09-26 14:28:15 healthy 402 139ms
2026-09-26 12:55:01 healthy 402 156ms
2026-09-26 04:15:40 healthy 402 171ms
2026-09-25 20:51:59 healthy 402 128ms
2026-09-25 12:10:56 healthy 402 1923ms
2026-09-24 16:53:18 healthy 402 158ms
2026-09-24 07:35:01 healthy 402 127ms
2026-09-24 02:16:24 healthy 402 154ms