Đế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.

How many tokens and dollars will this prompt cost? Paste once to compare GPT-5.6, Claude, and Gemini side by side with context usage %. Runs fully in your browser — safe for confidential prompts.

Giao diện công cụ

Chạy trên trình duyệt — không tải lên server Ước tính

Ký tự
0
Từ
0
Dòng
0
CJK / Latin
0 / 0
Bytes
0
Token (OpenAI / o200k)
0

Ước tính chi phí

Hệ số output
Mỗi request
$0
Input
$0
Output
$0
Tổng
$0

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.

So với giới hạn Web 0%

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

  1. Paste your prompt (autofocus on load)
  2. Check OpenAI exact tokens plus all-model costs and usage %
  3. If usage is tight or over, shorten or switch models

Khi nào nên dùng

API cost estimates, prompt optimization, context window checks, ChatGPT long-thread length checks.

Ví dụ

100 Japanese chars ≈ 60–90 tokens (model-dependent). GPT-5.6 Luna input $1/1M, output $6/1M.

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?

OpenAI dùng tiktoken o200k exact trên trình duyệt. Claude / Gemini / DeepSeek là script-weighted approx (±8%).

Token là gì?

Đơn vị nhỏ nhất LLM xử lý. Billing và giới hạn context đều tính theo token.

Web vs API?

ChatGPT Web Plus ~32K token; API GPT-5.6 hỗ trợ 1M+. Tool hiển thị cả hai.

System prompt có tính không?

Có. Dùng ô system prompt — billing cộng system + user.

Đếm token ChatGPT Claude Gemini | Ước tính chi phí API (July 2026 edition) miễn phí không?

Miễn phí, không cần đăng ký.

Dữ liệu có gửi lên server?

Dữ liệu được xử lý cục bộ trong trình duyệt—không gửi lên máy chủ.

Trình duyệt hỗ trợ?

Đã kiểm tra trên Chrome, Edge, Firefox, Safari bản mới.

Dùng offline được không?

Sau lần tải đầu, hầu hết tính năng hoạt động khi mạng không ổn định.

Khác CLI/desktop app?

Đếm token ChatGPT Claude Gemini | Ước tính chi phí API (July 2026 edition) là công cụ trực tuyến không cần cài, thay thế CLI hoặc app desktop.

Khi nào dùng?

Dùng khi: API cost estimates, prompt optimization, context window checks, ChatGPT long-thread length checks.

Ví dụ sử dụng?

Ví dụ: 100 Japanese chars ≈ 60–90 tokens (model-dependent). GPT-5.6 Luna input $1/1M, output $6/1M.

Tính năng chính?

Đếm token tức thì, OpenAI tiktoken exact, So sánh đa model, Chi phí input/output, Context usage %, Local hoàn toàn

Phân biệt với công cụ tương tự?

Đếm token ChatGPT Claude Gemini | Ước tính chi phí API (July 2026 edition) chạy trên trình duyệt, không cần cài. Dùng khi cần thử nhanh trước khi chuyển sang CLI.

Từ khóa tìm kiếm

token, ChatGPT, LLM, API, cost, prompt, tiktoken, token counter, chi phí API

Quy trình sử dụng cơ bản

  1. Paste your prompt (autofocus on load)
  2. Check OpenAI exact tokens plus all-model costs and usage %
  3. 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

Nội dung học liên quan

Công cụ liên quan