LLM Token Counter

Estimate LLM token counts in real time. GPT-4/Claude/Gemini with API cost approximation.

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

Estimate the token count of your text for GPT-4, Claude, and Gemini in real time. See approximate API costs per model.

How many tokens will this prompt cost? Paste your text to get instant estimates for GPT-4, Claude, and Gemini, along with approximate API costs. Perfect for optimizing prompts, checking context window limits, and budgeting API usage.

Giao diện công cụ

Ký tự
0
Từ
0
Dòng
0
Token ước tính
0
Mô hình Token ước tính Chi phí đầu vào (ước tính)

Số token là ước tính dựa trên ký tự. Số thực tế phụ thuộc vào tokenizer của mô hình. Giá tính đến năm 2025.

Cách sử dụng

  1. Paste or type text
  2. See real-time character/word/token counts
  3. Check per-model API cost estimates

Khi nào nên dùng

API cost estimation, prompt optimization, context window checks.

Ví dụ

100 Japanese chars ≈ 50-70 tokens, 100 English words ≈ 130 tokens.

Câu hỏi thường gặp

How accurate is the estimate?

This uses character-based heuristics. For exact counts, use model-specific tokenizers like tiktoken.

What is a token?

The smallest unit LLMs process. English words are 1-3 tokens; Japanese characters are 1-2 tokens each.

Công cụ liên quan