dqbd/tiktokenizer
Online playground for OpenAPI tokenizers
Provides real-time token counting for OpenAI's tiktoken library with support for multiple encoding schemes used across different GPT models. Built on the T3 Stack with shadcn/ui components, it wraps the official tiktoken Python library to visualize token boundaries and calculate accurate costs for prompts before API calls.
1,526 stars. No commits in the last 6 months.
Stars
1,526
Forks
165
Language
TypeScript
License
MIT
Category
Last pushed
Apr 24, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/dqbd/tiktokenizer"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
lenML/tokenizers
a lightweight no-dependency fork from transformers.js (only tokenizers)
aiqinxuancai/TiktokenSharp
Token calculation for OpenAI models, using `o200k_base` `cl100k_base` `p50k_base` encoding.
tryAGI/Tiktoken
This project implements token calculation for OpenAI's gpt-4 and gpt-3.5-turbo model,...
pkoukk/tiktoken-go
go version of tiktoken
microsoft/Tokenizer
Typescript and .NET implementation of BPE tokenizer for OpenAI LLMs.