全部项目
已发布

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
继续阅读
*
^
|
*
^
|
^
*
|
^
*
^
|
*
^
|
^
*
|
^
. . .

人工智能系统架构师及顶尖5%技术顾问,拥有25年以上经验,构建创新软件解决方案.

如果您愿意,欢迎联系我.

参与
© 2026 罗伯特·E·贝克纳三世。保留所有权利.