← 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) 121ms
Uptime (30d) 100.0%
Reliability Score 100/100
Last Checked 2026-07-27 18:29:58
Last Healthy 2026-07-27 18:29:58
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-07-27 18:29:58 healthy 402 110ms
2026-07-27 13:36:20 healthy 402 110ms
2026-07-27 08:29:15 healthy 402 111ms
2026-07-27 06:35:42 healthy 402 103ms
2026-07-27 01:40:50 healthy 402 235ms
2026-07-26 20:58:58 healthy 402 115ms
2026-07-26 17:08:42 healthy 402 138ms
2026-07-26 11:20:44 healthy 402 127ms
2026-07-26 07:06:55 healthy 402 134ms
2026-07-26 04:13:47 healthy 402 128ms
2026-07-25 23:30:10 healthy 402 117ms
2026-07-25 21:14:36 healthy 402 121ms
2026-07-25 18:45:31 healthy 402 129ms
2026-07-25 13:31:00 healthy 402 137ms
2026-07-25 08:25:39 healthy 402 324ms
2026-07-25 03:28:47 healthy 402 113ms
2026-07-25 00:25:25 healthy 402 121ms
2026-07-24 19:46:24 healthy 402 110ms