← 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) 208ms
Uptime (30d) 100.0%
Reliability Score 95/100
Last Checked 2026-06-12 06:02:30
Last Healthy 2026-06-12 06:02:30
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-06-12 06:02:30 healthy 402 208ms
2026-06-12 00:28:04 healthy 402 207ms
2026-06-11 20:52:57 healthy 402 113ms
2026-06-11 12:15:02 healthy 402 213ms
2026-06-11 07:03:16 healthy 402 231ms
2026-06-11 03:08:10 healthy 402 193ms
2026-06-10 23:20:35 healthy 402 224ms
2026-06-10 18:14:03 healthy 402 194ms
2026-06-10 12:27:35 healthy 402 192ms
2026-06-10 06:26:17 healthy 402 210ms
2026-06-10 02:04:24 healthy 402 193ms
2026-06-09 22:14:57 healthy 402 307ms
2026-06-09 19:24:53 healthy 402 211ms
2026-06-09 11:24:52 healthy 402 218ms