已发布
Tok - 令牌估算器
亚微秒令牌估算工具,支持100+ AI模型。处理MB级提示,依赖最小化,使用平均公式实现跨模型兼容.
影响
Sub-microsecond performance for instant token estimation
100+ model support through averaging formula approach
MB-scale prompt handling with minimal dependencies
20MB size reduction by removing TIC token dependency
Developer Efficiency: Instant cost visibility prevents budget overruns
Enterprise Ready: Supports programmatic budget management
Global Adoption: Used worldwide via npm registry
Performance Optimization: Trade-off of precision for significant performance gains
关键特性
Multi-provider support: 'OpenAI, Anthropic, OpenRouter, Llama models'
Enterprise features: Per-million token pricing with separate prompt/completion rates
Lightweight design: Minimal dependencies for maximum performance