AI API COST CALCULATOR

AI API cost calculator

Estimate and compare monthly API costs for GPT, Claude, Gemini, DeepSeek, Grok and more from input/output tokens and request volume. Find the cheapest model for your use case.

A. What this tool does
Enter your usage (token counts and request volume) and it automatically computes and compares the monthly cost of 13 major models. Shown in USD and an approximate JPY figure (US$1 ≈ ¥155).
Quick presets:

Monthly = (input ÷ 1M × input rate + output ÷ 1M × output rate) × requests × 30 days. Token counts are approximate (about 1 character = 1 token for Japanese).

ModelInput $/1MOutput $/1MMonthly (USD)Monthly (approx. ¥)
DeepSeek V4 Flash
DeepSeek ・ 超低価格(キャッシュミス時)
$0.14$0.28$1.68¥260
GPT-4.1 nano
OpenAI ・ 低価格・軽量
$0.1$0.4$1.80¥279
Gemini 2.5 Flash-Lite
Google ・ 最安クラス
$0.1$0.4$1.80¥279
Grok 4.1 Fast
xAI ・ 高速・安価
$0.2$0.5$2.70¥418
Gemini 2.5 Flash
Google
$0.3$2.5$9.30¥1,442
Grok 4.3
xAI
$1.25$2.5$15.00¥2,325
DeepSeek V4 Pro
DeepSeek
$1.74$3.48$20.88¥3,236
Claude Haiku 4.5
Anthropic ・ 高速・安価
$1$5$21.00¥3,255
Gemini 3.1 Pro
Google ・ 〜200Kトークン時
$2$12$48.00¥7,440
GPT-5.4
OpenAI
$2.5$15$60.00¥9,300
Claude Sonnet 4.6
Anthropic ・ バランス
$3$15$63.00¥9,765
Claude Opus 4.7
Anthropic ・ 最上位
$5$25$105¥16,275
GPT-5.5
OpenAI
$5$30$120¥18,600

Source: Official API pricing from each providerCaptured: 2026-06Reference values; check each official site for the latest (prices change)

Pricing sources (official)

Frequently asked questions

How is AI API pricing determined?
Most LLMs set a per-1M-token rate for "input tokens" and "output tokens" separately and bill on a pay-as-you-go basis. The output rate is usually higher than the input rate.
Which AI API is the cheapest?
On a per-rate basis, DeepSeek's DeepSeek V4 Flash and similar models (input $0.14/1M) are in the low-price tier. Still, you should choose by performance and use case — use the simulator above to compare monthly costs for your actual usage.
What's a rough guide for token counts?
As a rough guide, English is about 1.3 tokens per word and Japanese is about 1 token per character. The longer the document, the more tokens — and the higher the cost.

Related pages

Reference values based on public data and editorial research; not a complete count of actual users.