Phi-4 Mini Instruct Token Counter & Cost Calculator

Count tokens for Phi-4 Mini Instruct and estimate the exact API cost — $0.075 per 1M input tokens, $0.30 per 1M output tokens — using a real o200k_base BPE tokenizer. Everything runs in your browser; nothing is uploaded.

0
tokens (o200k_base)
0
characters
0
words

Phi-4 Mini Instruct

$0
input cost
$0
output cost (est.)
$0
total per request

Counts are exact for OpenAI models (o200k_base is GPT-4o/4.1/5's tokenizer). For Claude, Gemini and other vendors — whose tokenizers are not public — treat the count as a close estimate (typically within ±15%).

Cost of this text across popular models

Close estimate (±15%): Microsoft does not publish its tokenizer, so this count uses OpenAI's o200k_base as an approximation.

Cost lookup — Phi-4 Mini Instruct

TokensCost on Phi-4 Mini Instruct
1K input tokens0.0075¢
10K input tokens0.075¢
100K input tokens0.75¢
1M input tokens$0.0750
1K output tokens0.03¢
10K output tokens0.3¢

FAQ

How accurate is the Phi-4 Mini Instruct token count?

Close estimate (±15%): Microsoft does not publish its tokenizer, so this count uses OpenAI's o200k_base as an approximation. Paste your own text above to see the exact number for your prompt.

How is Phi-4 Mini Instruct API cost calculated?

Cost = (input tokens ÷ 1,000,000) × $0.075 + (output tokens ÷ 1,000,000) × $0.30 — Phi-4 Mini Instruct's official per-1M-token prices from Artificial Analysis.

See full Phi-4 Mini Instruct pricing & benchmarks, or the main token counter for every model.