プロンプト トークン数・料金 推定
プロンプトを貼るだけで、トークン数と各モデルでの入力料金をその場で推定。ログイン不要・送信なし。
プロンプト トークン数・料金 推定とは
プロンプトのトークン数推定は、文字列がモデルに渡る前に何トークン消費するかを見積もる処理です。英語はおおよそ4文字で1トークン、日本語・中国語は1文字で1トークン前後(漢字は1〜2トークン)という経験則で近似し、各モデルの100万トークンあたり入力単価を掛けて料金を出します。モデルごとに分割規則(トークナイザ)が違うため、これは概算であり、確定額は各社の API が返す usage の値です。
推定トークン
125
- 文字数
- 122
- 空白抜き
- 114
- 単語数
- 9
- 行数
- 1
- CJK 文字
- 99
このプロンプトを入力として渡した場合の料金
| モデル | 提供元 | 入力単価 / 1M | 今回の料金 | $1 で何回 |
|---|---|---|---|---|
| GPT-6 Luna | OpenAI | $0.1000 | $0.000013 | 80,000 |
| Claude Haiku 5.5 | Anthropic | $0.1000 | $0.000013 | 80,000 |
| Qwen3.8-Flash | Alibaba Cloud | $0.1500 | $0.000019 | 53,333 |
| Gemini 3.5 Flash-Lite | $0.3000 | $0.000037 | 26,666 | |
| DeepSeek Flash | DeepSeek | $0.3000 | $0.000037 | 26,666 |
| Gemini 3.8 Flash | $0.7500 | $0.000094 | 10,666 | |
| GPT-6.1 Terra | OpenAI | $1.00 | $0.000125 | 8,000 |
| Grok 4.3 | xAI | $1.25 | $0.000156 | 6,400 |
| DeepSeek V4 Pro | DeepSeek | $1.32 | $0.000165 | 6,060 |
| Qwen4-Max | Alibaba Cloud | $1.50 | $0.000188 | 5,333 |
| GPT-6.2 Sol | OpenAI | $2.00 | $0.00025 | 4,000 |
| Claude Sonnet 5.5 | Anthropic | $2.00 | $0.00025 | 4,000 |
| Gemini 4 Carbon | $2.00 | $0.00025 | 4,000 | |
| Grok 4.7 | xAI | $2.00 | $0.00025 | 4,000 |
| Gemini 4 Neon | $3.00 | $0.000375 | 2,666 | |
| Claude Opus 5.5 | Anthropic | $4.00 | $0.0005 | 2,000 |
| GPT-6.2 Astra | OpenAI | $8.00 | $0.001 | 1,000 |
| Claude Fable 5.2 | Anthropic | $8.00 | $0.001 | 1,000 |
トークン数は経験則による概算です(英語 ≒ 4 文字 / トークン、日本語・中国語 ≒ 1 文字 / トークン)。実際の値はモデルごとのトークナイザで ±15% 程度ずれます。出力トークン・キャッシュ割引は含みません。
このツールの前提
- 処理場所
- このページのブラウザ内(JavaScript / Canvas)
- アップロード
- なし — ファイルは端末の外に出ません
- オフライン
- ページを開いた後は通信不要
Tokens are not words, and the ratio is language-specific
Tokenisers split text into subword units from a vocabulary learned during training, so the count depends on the tokeniser, not on the text alone. As a working rule, English prose runs about 4 characters or 0.75 words per token; Chinese, Japanese and Korean run closer to 1–1.5 characters per token because most characters are their own token or a fragment of one.
That means the same paragraph costs roughly three to four times as many tokens in Chinese as in English. Budgeting a prompt in words and multiplying by a fixed factor therefore underestimates CJK cost badly — this is the single most common cause of a context limit being hit earlier than expected.
What else sits in the context window
The system prompt, tool definitions, retrieved documents, conversation history and the model's own previous replies all occupy the same budget. A request that looks like 2,000 tokens of user text can be 15,000 tokens once tool schemas and history are counted.
Output tokens are capped separately and are charged at a different rate — usually several times the input rate. Estimating only the prompt therefore underestimates cost by a wide margin on tasks with long answers, such as summarisation or code generation.
Why any browser estimate is approximate
Exact counts require the model's own tokeniser, which is a large vocabulary file specific to each model family. An estimator that ships a simplified table will be within roughly 10–20% for English and wider for code, CJK, or text heavy in numbers and punctuation.
Use the estimate for budgeting and for deciding whether a document needs chunking, and use the provider's token-counting endpoint or the usage field of a real response when the number has to be exact. The difference matters at the boundary of a limit, not in the middle of one.
使い方
- 1.プロンプトを貼り付ける
- 2.文字数・推定トークン数・各モデルの入力料金を確認
- 3.必要なら AI 料金計算ツールで出力込みの試算へ
他の方法との比較
同じ変換をする方法は 3 つあります。ブラウザ内(このページ)、サーバー側の変換サービス、デスクトップアプリ。差がつくのは速度ではなく、ファイルがどこへ行くかと、無料でどこまでできるかです。
| 観点 | このツール | サーバー側の変換サービス | デスクトップアプリ |
|---|---|---|---|
| ファイルの処理場所 | このページのブラウザ内 | ベンダーのサーバー(アップロード後) | 自分の PC(アプリをインストール) |
| アカウント | 不要 | 多くの場合必要(無料枠の制限解除に登録を求める) | 不要(ライセンス認証は必要な場合あり) |
| 無料で扱えるサイズ | サイズ制限なし(回数制限もなし) | 数ファイル/時間、または 5〜10MB 程度で課金 wall | ディスクとメモリ次第 |
| 料金 | 無料。Pro は月 $9(大きいファイルと AI 機能のみ) | サブスクが一般的。おおむね月 $7〜15(2026 年 11 月時点) | 買い切り、またはサブスク |
| オフライン | 一度開けば通信不要 | 不可 | 可 |
| 20MB を処理し始めるまで | 待ち時間なし(アップロードが無い) | アップロードが支配的(10Mbps 上りで約 16 秒) | アプリの起動のみ |
| 保証できないこと | 検査は保存済みのスナップショットではなく、現在の応答に対して行います | 同じ(変換の原理は変わらない) | 同じ。ただし書式の再現はより忠実な場合がある |
サーバー側のサービスが優れている点は明確にあります。巨大なファイル、チームでの共有、変換履歴の管理、スクリプトからの自動化。逆に「1 回だけ、手元のファイルを別形式にしたい」という今回の用途では、アップロードの待ち時間と登録の手間だけが増えます。
よくある質問
このトークン数は正確ですか?
概算です。英語は約4文字=1トークン、日本語・中国語は1文字≒1トークンとして計算します。実際の値はモデルごとのトークナイザ次第で、±15%程度ずれることがあります。確定値は API レスポンスの usage.prompt_tokens を確認してください。
なぜモデルごとにトークン数が違うのですか?
分割規則(トークナイザ)が違うためです。同じ文章でも、あるモデルでは1トークンになる語が、別のモデルでは2トークンに分かれることがあります。
料金はどう計算していますか?
推定トークン数×各モデルの入力単価(100万トークンあたり)で計算しています。出力トークンとキャッシュ割引は含みません。詳しい試算は AI 料金計算ツールをお使いください。
入力した文章は送信されますか?
いいえ。計算はすべてこのページの JavaScript で行われ、ネットワーク送信はありません。社外に出せない文章でも安心して貼れます。
トークンを減らすには?
同じ意味を短く書く、表や箇条書きをやめて必要最小限にする、長い参照文書はキャッシュ(プロンプトキャッシュ)に載せる、の3つが効きます。特に出力トークンは入力の3〜5倍の単価なので、出力の長さ指定が一番効きます。
この変換で失われるもの
開発者向けツールは「静かに壊れるもの」を点検します。canonical の欠落、検索結果で切れる長さを超えた description、200 を返すが死んだ URL を載せた sitemap。各結果は該当行や URL を指します。行動できない警告は雑音だからです。