Tokrix

AI API Cost, Agent Burn & Local GPU VRAM Calculator

Compare LLM token pricing, estimate AI agent monthly spend, and check local GPU VRAM requirements in seconds.

Agent Workload

40%
Lowest Monthly Spend
$29.16
Qwen 3 32B
Highest Monthly Spend
$9,153.00
Claude Opus 4
ModelDailyMonthlyYearly
Qwen 3 32B#1
Alibaba Cloud · $0.1/$0.3
$0.97$29.16$355
Llama 4 Maverick
Meta (Hosted) · $0.2/$0.6
$2.04$61.20$745
Gemini 2.5 Flash
Google · $0.15/$0.6
$2.61$78.30$953
DeepSeek V3
DeepSeek · $0.27/$1.1
$3.12$93.60$1,139
Qwen 3 235B MoE
Alibaba Cloud · $0.22/$0.88
$3.84$115.20$1,402
DeepSeek R1
DeepSeek · $0.55/$2.19
$9.54$286.29$3,483
Claude Haiku 3.5
Anthropic · $0.8/$4
$10.27$308.16$3,749
o3-mini
OpenAI · $1.1/$4.4
$19.80$594.00$7,227
GPT-4o
OpenAI · $2.5/$10
$30.00$900.00$10,950
GPT-5
OpenAI · $1.25/$10
$37.80$1,134.00$13,797
Gemini 2.5 Pro
Google · $1.25/$10
$38.24$1,147.32$13,959
Claude Sonnet 4
Anthropic · $3/$15
$61.02$1,830.60$22,272
Claude Opus 4
Anthropic · $15/$75
$305.10$9,153.00$111,361

Quick Guide

1. AI Agent & LLM API Burn

  • Enter daily requests, agent tool loops, input/output/reasoning tokens, and cache hit %.
  • Compare 13+ models sorted from cheapest to highest monthly spend.
  • Export a clean PNG comparison card or copy a shareable link with your exact numbers.

2. Local GPU & VRAM Sizer

  • Pick model size (8B to 123B/MoE), quantization (Q4_K_M to FP16), context, and batch size.
  • See exact Weights + KV Cache + Overhead GB and whether RTX 4090, 5090, Mac Studio, or H100 fits.

3. SaaS Margin & Token Counter

  • Find the exact requests/month cap where power users turn a flat-rate AI plan negative.
  • Count EN, Vietnamese, and Code tokens locally without sending text to any server.

Developer FAQ

How do agent loops multiply API token spend?

A single user prompt that triggers 5 tool-call loops sends the growing conversation context 5 times. Prompt caching cuts repeated input costs by 50% to 90%.

Why does context length spike Local LLM VRAM?

Long context (32K to 128K) expands the FP16 KV Cache linearly with batch size, often adding 6GB to 25GB on top of quantized model weights.

Does Tokrix send my prompts to an external API when counting tokens?

No. All token counting and cost calculations run 100% client-side in your browser with zero network calls.

How does Batch API discount affect costs?

Most major providers (OpenAI, Anthropic, Google) offer a 50% discount for asynchronous Batch API jobs completed within 24 hours.