AI API 料金計算ツール
OpenAI・Claude・Qwen・DeepSeek の API 単価を比較し、1回あたり・月あたりのコストを試算。
AI API 料金計算ツールとは
AI API 料金計算ツールは、トークン単価をお金に換算する道具です。入力トークン数と出力トークン数に各モデルの100万トークンあたり単価を掛け、プロンプトキャッシュによる入力割引を反映し、月間リクエスト数まで拡大して請求額の目安を出します。同じ会話でもモデルによって費用が数十倍違うため、モデル選定の前に試算しておくと無駄な出費を避けられます。
キャッシュ入力価格が公表されているモデルのみ適用されます。それ以外は通常の入力単価で計算します。
GPT-6.2 Astra
$0.0254/ リクエスト
- 1,000 回あたり
- $25.36
- 月 100,000 回
- $2,536
- 入力 / 出力の比率
- 21% / 79%
- キャッシュで削減
- $0.0106
Standard processing, under 272K context
GPT-6.2 Sol
$0.00634/ リクエスト
- 1,000 回あたり
- $6.34
- 月 100,000 回
- $634.00
- 入力 / 出力の比率
- 21% / 79%
- キャッシュで削減
- $0.00266
Standard processing, under 272K context
GPT-6.2 Sol は GPT-6.2 Astra より月 $1,902 安い。
公表されている定価のみで試算しています。無料枠・バッチ割引(通常 50% オフ)・ボリューム契約は含みません。実際の請求額とは異なります。
API 価格表(100万トークンあたり)
以下は各社が公表している定価(USD / 100万トークン)です。キャッシュ入力価格は、プロンプトキャッシュ利用時の入力単価を指します。
OpenAI
| モデル | 入力 | キャッシュ入力 | 出力 | コンテキスト |
|---|---|---|---|---|
| GPT-6 Lunagpt-6-lunaStandard processing, under 272K context公式価格ページ | $0.10 | $0.010 | $0.50 | — |
| GPT-6.1 Terragpt-6-1-terraStandard processing, under 272K context公式価格ページ | $1.00 | $0.050 | $5.00 | — |
| GPT-6.2 Solgpt-6-2-solStandard processing, under 272K context公式価格ページ | $2.00 | $0.10 | $10.00 | — |
| GPT-6.2 Astragpt-6-2-astraStandard processing, under 272K context公式価格ページ | $8.00 | $0.40 | $40.00 | — |
Anthropic
| モデル | 入力 | キャッシュ入力 | 出力 | コンテキスト |
|---|---|---|---|---|
| Claude Haiku 5.5claude-haiku-5-5Prompts over 100K tokens bill 5x: $0.50 in / $2.50 out公式価格ページ | $0.10 | $0.010 | $0.50 | 1M |
| Claude Sonnet 5.5claude-sonnet-5-5公式価格ページ | $2.00 | $0.10 | $10.00 | 1M |
| Claude Opus 5.5claude-opus-5-5Fast mode costs 2x公式価格ページ | $4.00 | $0.20 | $20.00 | 1M |
| Claude Fable 5.2claude-fable-5-2公式価格ページ | $8.00 | $0.20 | $40.00 | 1M |
| モデル | 入力 | キャッシュ入力 | 出力 | コンテキスト |
|---|---|---|---|---|
| Gemini 3.5 Flash-Litegemini-3-5-flash-liteSame rate for text, image, video and audio input公式価格ページ | $0.30 | $0.030 | $2.50 | 1M |
| Gemini 3.8 Flashgemini-3-8-flash$0.75 / $3.75 through Dec 31, 2026; $1.50 / $7.50 from Jan 1, 2027公式価格ページ | $0.75 | $0.075 | $3.75 | 1M |
| Gemini 4 Carbongemini-4-carbon$2.00 / $10.00 through Nov 30, 2026; $4.00 / $20.00 from Dec 1, 2026公式価格ページ | $2.00 | $0.10 | $10.00 | 1M |
| Gemini 4 Neongemini-4-neonImplicit caching only公式価格ページ | $3.00 | $0.15 | $15.00 | 1M |
xAI
Alibaba Cloud
| モデル | 入力 | キャッシュ入力 | 出力 | コンテキスト |
|---|---|---|---|---|
| Qwen3.8-Flashqwen3-8-flashInternational deployment; Global deployment $0.113 / $0.382公式価格ページ | $0.15 | $0.016 | $0.47 | 1M |
| Qwen4-Maxqwen4-maxInternational deployment; Global deployment $1.413 / $4.24公式価格ページ | $1.50 | — | $4.50 | 1M |
DeepSeek
| モデル | 入力 | キャッシュ入力 | 出力 | コンテキスト |
|---|---|---|---|---|
| DeepSeek Flashdeepseek-flashPeak rates; off-peak 50% off. API model id is exactly `deepseek-flash` (V4.1-Flash-1017; legacy `deepseek-v4-flash` serves the same model at Flash price). Supports vision — the cheap choice for BOTH chat and vision routes公式価格ページ | $0.30 | $0.006 | $1.20 | 1M |
| DeepSeek V4 Prodeepseek-v4-proPeak rates; off-peak is 50% off. Max output 384K公式価格ページ | $1.32 | $0.044 | $3.96 | 1M |
公布済みの価格改定
- 2026-12-01 · Gemini 4 Carbon — Input rises to $4.00, output to $20.00 per 1M tokens
- 2027-01-01 · Gemini 3.8 Flash — Input rises to $1.50, output to $7.50 per 1M tokens
各社が公表済みで、まだ適用されていない改定です。上の表は現行価格です。
価格は 2026-11-26 に各社の公式ページで確認したものです。価格は予告なく変更されるため、予算確定前にリンク先をご確認ください。6 社 18 モデルを掲載しています。
このツールの前提
- 処理場所
- このページのブラウザ内(JavaScript / Canvas)
- アップロード
- なし — ファイルは端末の外に出ません
- オフライン
- ページを開いた後は通信不要
Why input and output are priced separately
Prompt processing is a single forward pass that can be batched and cached; generating output is sequential, one token at a time, and cannot be parallelised within a response. That asymmetry is why output typically costs three to five times as much per token as input across every major provider.
So a cost estimate needs both numbers and the expected ratio between them. A classification task might be 1,900 input tokens and 20 output tokens; a long-form generation is the reverse. Averaging to a single per-token price produces estimates that are wrong by an order of magnitude on both ends.
The table is a snapshot, and prices move
The figures come from published list prices at a point in time. Providers change them, add tiers, introduce batch discounts (commonly 50% for asynchronous work) and cache-read discounts (commonly 90% off repeated prefixes). Any estimate built on list price is an upper bound for a workload that can use those features.
The other hidden line is the gateway or platform markup if requests are proxied. A reseller charging a percentage on top means the effective price is not the provider's list price, and the calculator's total is only the first layer of the bill.
Turning a price into a business number
Cost per request matters only against revenue per request. A workflow costing $0.02 per run is fine at $2 of value and fatal at $0.01 — which is why this page reports cost alongside a per-unit view rather than a monthly total alone.
For a subscription product, the number to watch is the worst-case monthly cost of the heaviest allowed usage, not the average. Averages hide the accounts that lose money, and those accounts are usually the ones that stay.
使い方
- 1.比較したい2つのモデルを選ぶ
- 2.1回あたりの入力・出力トークン数と月間リクエスト数を入力
- 3.1回・1,000回・月額のコストと差分を確認
AI API 料金計算ツールの仕組み
ここでの計算ツールはタブ内で計算し、結果の隣に式を表示します。数値を信じるのではなく検算できます。
- 1
入力を読む
値は単位を明示して数値として解析します。不正な入力は 0 に丸めず拒否します。
- 2
式を適用
計算は純関数なので、同じ入力は常に同じ結果になります。
- 3
計算過程を表示
式と中間値が結果と一緒に表示され、各段階を確認できます。
処理の流れ
丸めは隠さない
表示は丸めますが、以降の計算には丸めていない値を使います。1 セント単位で重要な数値なら、どの丸めを適用したかを確認してください。結果の隣に明記しています。
分からないこと
計算ツールは契約条件・地域の税規則・個別の割引率を知りません。入力されたものを計算するだけであり、前提の確認は利用者の側にあります。
自分で確かめる
表示された式から、すべての数値を手計算で再現できます。
- 1.このページで DevTools を開き、Network タブを選ぶ
- 2.フィルタを Fetch/XHR に設定したままツールを実行する
- 3.ファイルの中身を含むリクエストが 1 件も無いことを確認する(ページの読み込みとフォントだけが表示されます)
よくある質問
コストはどう計算していますか?
入力トークン数×入力単価+出力トークン数×出力単価を100万で割って1回あたりの費用を出し、月間リクエスト数を掛けて月額を求めています。キャッシュ利用率を設定すると、キャッシュ入力単価が公表されているモデルだけ割引が反映されます。
なぜ出力は入力より高いのですか?
生成したトークンは1つずつ順に計算する必要があり、入力の読み込みより計算量が多いためです。多くのモデルで出力単価は入力の3〜5倍に設定されています。
キャッシュ入力単価とは何ですか?
同じシステムプロンプトや参照文書を繰り返し送る場合に、2回目以降の入力を割安な単価で処理する仕組みです。単価は通常の入力の10〜20%程度になります。
表示価格は最新ですか?
各社の公式価格ページを確認した日付を表の下に明記しています。価格は予告なく改定されるため、予算を確定する前にリンク先の公式ページをご確認ください。
この変換で失われるもの
開発者向けツールは「静かに壊れるもの」を点検します。canonical の欠落、検索結果で切れる長さを超えた description、200 を返すが死んだ URL を載せた sitemap。各結果は該当行や URL を指します。行動できない警告は雑音だからです。