Đếm token ChatGPT Claude Gemini | Ước tính chi phí API (July 2026 edition)
ChatGPT, Claude, Gemini. Token count, API cost, context usage — instant.
Dữ liệu không gửi lên máy chủ. Xử lý hoàn toàn cục bộ, an toàn cho khóa API và thông tin bảo mật.
Về công cụ này
Paste text for GPT-5.6 / Claude Sonnet 5 / Fable 5 / Gemini 3.6 token counts, input/output costs, and context usage. OpenAI uses tiktoken exact.
Giao diện công cụ
Chạy trên trình duyệt — không tải lên server Ước tính
Ước tính chi phí
Tháng tính theo GPT-5.6 Luna ($1/$6 per 1M).
So với giới hạn ChatGPT Web
Khác API. Plus Instant ≈ 32K.
System prompt (tùy chọn)
API tính system + user cùng input tokens.
| Model | Token | Sử dụng | Input | Output |
|---|
OpenAI dùng tiktoken (o200k_base). Claude / Gemini / DeepSeek là script-weighted approx (±8%). Link chia sẻ chỉ lưu trong URL hash. Giá tham khảo 2026-07-21.
How token counting works
Paste once to see character stats, OpenAI exact tokens (tiktoken o200k), and script-weighted approx counts for Claude / Gemini / DeepSeek with input/output cost and context usage %. Pricing syncs with our rate table.
ChatGPT Web vs API limits
ChatGPT Plus Instant is roughly 32K tokens; Thinking mode is closer to 256K. OpenAI API models (GPT-5.6, etc.) expose 1M+ context. The Web limit bar compares your prompt against app limits — not API limits.
Exact vs approx
OpenAI models use the same o200k_base tokenizer as the API (exact).
Claude and Gemini use proprietary tokenizers, so we apply measured CJK / Latin / other tok/char rates and label them approx (±8% typical).
Japanese uses more tokens than English
| Model | tok / char | Note |
|---|---|---|
| Gemini 3.6 Flash | ~0.57 | Efficient on Japanese |
| GPT-5.6 / o200k | ~0.68 | OpenAI exact |
| Claude Sonnet 5 | ~0.87 | approx |
System prompt & RAG chunks
Billing counts system + user together. Add RAG snippets to the main textarea or system field before trusting the numbers. Gemini 3.1 Pro switches to long-context tier pricing above 200K input tokens (shown as a badge in the table). GPT-5.6 tiers switch above 272K input.
RAG chunk reference (tiktoken measured / GPT-5.6 1M ctx)
Values measured with o200k_base (2026-07-19).
| Chunk | Chars | Tokens | 1M ctx | 32K Web |
|---|---|---|---|---|
| Short FAQ (Japanese) | 133 | 68 | 0.01% | 0.21% |
| Tech article section | 1,763 | 970 | 0.1% | 3.03% |
| ~10 PDF pages | 7,542 | 3,972 | 0.4% | 12.41% |
| Full internal wiki (risk) | 80,000 | 42,779 | 4.28% | 133.68% |
Pricing sources
Related
Cách sử dụng
- Paste your prompt (autofocus on load)
- Check OpenAI exact tokens plus all-model costs and usage %
- If usage is tight or over, shorten or switch models
Khi nào nên dùng
Ví dụ
Tips
- OpenAI models use exact tiktoken (o200k). Claude/Gemini use script-weighted approx (±8%).
- ChatGPT Web ≈ 32K vs API 1M+ — use the Web limit bar separately.
- System prompt and RAG chunks count toward input tokens.
Câu hỏi thường gặp
Độ chính xác?
Token là gì?
Web vs API?
System prompt có tính không?
Đếm token ChatGPT Claude Gemini | Ước tính chi phí API (July 2026 edition) miễn phí không?
Dữ liệu có gửi lên server?
Trình duyệt hỗ trợ?
Dùng offline được không?
Khác CLI/desktop app?
Khi nào dùng?
Ví dụ sử dụng?
Tính năng chính?
Phân biệt với công cụ tương tự?
Từ khóa tìm kiếm
Quy trình sử dụng cơ bản
- Paste your prompt (autofocus on load)
- Check OpenAI exact tokens plus all-model costs and usage %
- If usage is tight or over, shorten or switch models
Tình huống sử dụng
- API cost estimates, prompt optimization, context window checks, ChatGPT long-thread length checks.
- Paste text for GPT-5.6 / Claude Sonnet 5 / Fable 5 / Gemini 3.6 token counts, input/output costs, and context usage. OpenAI uses tiktoken exact.
- OpenAI models use exact tiktoken (o200k). Claude/Gemini use script-weighted approx (±8%).
- ChatGPT Web ≈ 32K vs API 1M+ — use the Web limit bar separately.
- System prompt and RAG chunks count toward input tokens.
- Đếm token tức thì
- OpenAI tiktoken exact
Quyền riêng tư & dữ liệu
Dữ liệu được xử lý cục bộ trong trình duyệt—không gửi lên máy chủ.
Lưu ý
- Luôn kiểm tra lại trước khi dán kết quả lên production
- Thử cửa sổ ẩn danh nếu extension gây lỗi
- Đợi xử lý xong khi nhập dữ liệu lớn