GPU Cost Calculator: What AI Inference and Training Really Costs on Every Major Platform

Use our free GPU Cost Calculator to compute hourly, daily, and monthly GPU rental cost across providers — and find whether self-hosting or managed API is cheaper for your volume.

GPU Pricing by Provider and Model (2025)

NVIDIA H100 (Flagship — Best for LLM Training and Inference)

ProviderOn-Demand $/hr1-Year ReservedSpot/Preemptible
AWS (p5.48xlarge, 8× H100)$98.32/hr (÷8 = $12.29/GPU)~$7.80/GPU/hr~$4.50/GPU/hr
Google Cloud (a3-highgpu)$12.29/GPU/hr~$7.50/GPU/hr~$3.80/GPU/hr
Azure (NDv5)$11.50/GPU/hr~$7.20/GPU/hr~$4.00/GPU/hr
Lambda Labs$3.29/GPU/hrN/AN/A
CoreWeave$4.76/GPU/hr~$2.80/GPU/hrN/A
Vast.ai (marketplace)$2.50–$4.00/GPU/hrN/A$1.50–$2.50

NVIDIA A100 80GB (Most Common for LLM Work)

ProviderOn-Demand $/hr1-Year ReservedSpot/Preemptible
AWS (p4de.24xlarge, per GPU)$3.47/GPU/hr$1.89/GPU/hr$1.04/GPU/hr
Google Cloud (a2-ultragpu)$3.14/GPU/hr$1.73/GPU/hr$0.94/GPU/hr
Azure (NDasrv4)$3.40/GPU/hr$1.85/GPU/hr$1.02/GPU/hr
Lambda Labs$2.49/GPU/hr$1.90/GPU/hrN/A
CoreWeave$2.21/GPU/hr$1.65/GPU/hrN/A
RunPod$1.64–$2.49/GPU/hrN/A$0.79/GPU/hr
Vast.ai$1.20–$2.00/GPU/hrN/A$0.70–$1.30

NVIDIA A10G / A10 (Mid-Range — Good for Inference)

ProviderOn-Demand $/hr
AWS (g5.xlarge, 1× A10G)$1.006/hr
Google Cloud (g2-standard, 1× L4)$0.70/hr
Azure (Standard_NV6ads, 1/6 A10)$0.90/hr
Lambda Labs$0.75/hr
RunPod$0.44–$0.74/hr

NVIDIA T4 (Entry-Level — Small Models, Dev Work)

ProviderOn-Demand $/hr
AWS (g4dn.xlarge)$0.526/hr
Google Cloud (n1 + T4)$0.35/hr
Azure (Standard_NC4as)$0.526/hr
RunPod$0.14–$0.24/hr

GPU Cost in INR (For Indian Developers)

At USD/INR of ₹83.50 (verify current rate):

GPUProvider$/hr₹/hr₹/day₹/month
H100Lambda Labs$3.29₹274₹6,580₹1,97,400
A100 80GBRunPod$1.64₹137₹3,282₹98,460
A100 80GBVast.ai$1.20₹100₹2,400₹72,000
A10GAWS$1.006₹84₹2,009₹60,270
T4RunPod$0.20₹17₹400₹12,000
T4Google Cloud$0.35₹29₹700₹21,000

Indian cloud alternatives:

  • Jio Cloud GPU: ₹300–₹800/hr (limited availability, V100 class)
  • E2E Networks GPU: ₹180–₹600/hr (A100 available, good uptime)
  • Yotta Infrastructure: ₹400–₹1,000/hr (enterprise-focused)

GPU Cost Calculator: What Are You Computing?

For AI Training

Training Cost = GPU Hours Required × Cost per GPU Hour

Estimating GPU hours for training:

Model SizeDatasetGPUs NeededTraining TimeCost (A100 @ $2/hr)
7B params (LLaMA-style)1T tokens64 GPUs~21 days$64,512
13B params1T tokens128 GPUs~21 days$1,29,024
70B params2T tokens512 GPUs~90 days$22,14,720
Small fine-tune (7B)10K examples1–2 GPUs2–8 hours$4–$32
LoRA fine-tune (7B)50K examples1 GPU4–12 hours$8–$24

Key insight: Fine-tuning (adapting an existing model) costs 1,000–10,000× less than training from scratch. For 99% of use cases, fine-tuning an open-source model is the right approach, not training from scratch.

For AI Inference (Serving)

Monthly Inference Cost = (Requests/day × Tokens/request × Cost per token) OR (GPU hours × GPU cost)

Self-hosted inference — what you can serve per GPU:

GPUModelThroughput (tokens/sec)Cost per 1M tokens
T4 (16GB)Llama-3 8B (Q4)~200 t/s~$0.05
A10G (24GB)Llama-3 8B~450 t/s~$0.03
A100 80GBLlama-3 70B~80 t/s~$0.35
H100 80GBLlama-3 70B~180 t/s~$0.25
2× H100Llama-3 405B~30 t/s~$3.00

Self-Hosted GPU vs. Managed API: Break-Even Analysis

Scenario: Running Llama-3 70B equivalent quality

Managed API option:

  • GPT-4o: $5/1M input tokens + $15/1M output tokens → avg ~$10/1M tokens
  • Claude Sonnet: $3/1M input + $15/1M output → avg ~$9/1M tokens

Self-hosted option (A100, RunPod $1.64/hr):

  • Throughput: ~80 tokens/sec
  • 1M tokens takes: 1,000,000 ÷ 80 = 12,500 seconds = 3.47 hours
  • Cost: 3.47 × $1.64 = $5.69 per 1M tokens

Break-even: At 1M+ tokens/day, self-hosting A100 is 40–75% cheaper than GPT-4o.

But add:

  • Engineering time to set up and maintain inference server: $2,000–$10,000/month
  • Downtime and reliability costs: significant for production apps
  • Model updates and fine-tuning: ongoing cost

Realistic break-even for self-hosting: 30–100M tokens/day in production volume, with a dedicated ML engineer. Below this — use managed APIs.


GPU Selection Guide by Use Case
Use CaseRecommended GPUWhy
Development / prototypingT4 or A10GCheap, sufficient for testing
Fine-tuning 7B modelA10G or A100 40GBFits full model, LoRA efficient
Fine-tuning 70B model2–4× A100 80GBNeeds multi-GPU for VRAM
Production inference (7–13B)A10G or L4Best price/performance for inference
Production inference (70B)A100 80GB or H100VRAM requirement
LLM training from scratchH100 clusterMaximum throughput
Image generation (SD/FLUX)A10G or 3090Good VRAM/price balance
Video generationH100 or multi-A100Extremely compute-intensive

Spot/Preemptible Instances: 60–70% Discount With Trade-offs

Spot instances can be interrupted with 2-minute warning (AWS) or 30-second warning (GCP). This makes them:

Suitable for:

  • Batch training jobs (with checkpointing every 10–15 minutes)
  • Offline inference batch processing
  • Data preprocessing and experimentation

Not suitable for:

  • Real-time inference APIs
  • Interactive applications
  • Long training runs without robust checkpointing

Best practice: Use spot for training (checkpoint frequently), use on-demand or reserved for inference serving.


FAQ

What GPU do I need to run Llama 3 70B?
Llama 3 70B requires approximately 140GB of VRAM in full precision (BF16). Options: 2× A100 80GB (160GB total), or use quantisation (Q4/Q8) to run on a single A100 80GB (with Q4 reducing VRAM to ~35–40GB). For inference, a single A100 80GB with 8-bit quantisation delivers ~80–120 tokens/second throughput.
What is the cheapest way to get GPU compute in India?
RunPod and Vast.ai offer the lowest rates globally — accessible from India with USD payment. E2E Networks is the best Indian provider for regulatory or latency reasons, offering A100 instances at competitive INR rates. For short experimental runs, Google Colab Pro ($10/month) provides T4/A100 access that beats hourly rates at low volumes.
How do I estimate GPU hours needed to fine-tune a model?
Rule of thumb for LoRA fine-tuning on a 7B model: 1–4 hours on a single A10G for a dataset of 10,000–100,000 examples. Full fine-tuning: 8–24 hours on 2–4× A100 for the same dataset. Scale linearly with dataset size and roughly 10× for each 10× model size increase.
Is it worth buying a GPU vs. renting cloud compute?
For consistent workloads above 4–6 hours/day: purchasing may be cost-effective over 3 years. An RTX 4090 (24GB VRAM, ~$1,500–$2,000 USD / ₹1.25–₹1.65 lakh) amortised over 3 years = ~₹3,700–₹4,600/month. Equivalent cloud A10G: ₹50,000–₹60,000/month. For Indian developers doing serious AI work: owning a 4090 pays back in 3–4 months vs. cloud.

Try the Free GPU Cost Calculator

Use ToolMira's calculator — no signup, no ads, works on mobile.

Open AI Cost Calculator →
AM
Written by Ananya Menon
Ananya writes about personal finance, tax, and investing for ToolMira, breaking down India's money rules into plain language with worked examples.

Disclaimer: This article is for educational purposes only and does not constitute financial, investment, or professional advice. Please consult a qualified professional before making any decisions based on this content.