附加组件

提示词 Token 计数器

Prompt token counter

对照模型上下文窗口的实时估算

实时预览

提示词正文

Build a prompt token counter with Tailwind CSS: a textarea for the prompt with a live token estimate (an approximation is fine — characters divided by four, documented in a tooltip), a horizontal usage bar showing the estimate against a selectable model's context window (8K / 32K / 128K / 200K) that turns amber near 80% and red when over, and a breakdown listing the largest sections (system prompt, history, user message) as segments of the bar. Add a trim suggestion button that shortens quoted examples first, and warn explicitly that the estimate is approximate.

提示词保持英文原文——直接粘贴进 Claude、Cursor、v0 或任何 AI 编程工具即可使用。

怎么用

文本域实时估算 token(近似算法有 tooltip 说明);对照上下文窗口的用量条;分区段;修剪建议。

同类提示词 · 附加组件

© 2026 Genisource Vibe · 提示词详情