Best server for… pricing

Best and cheapest server for self-hosted LLM inference on AWS

Updated 2026-10-19

Cheapest sensible starting point for self-hosted LLM inference: g6.xlarge at $0.8048/h ($587.50/month) on demand in us-east-1. Move up to g5.xlarge when you outgrow it.

Recommendations (us-east-1, on demand, Linux)

InstanceWhenSize$/h$/month3-yr RI $/hCheapest region$25k credits last
g6.xlargeNVIDIA L4, 24 GB4 vCPU / 16 GiB / NVIDIA L4$0.8048$587.50$0.3694us-east-1 $0.804843 mo
g5.xlargeNVIDIA A10G, 24 GB4 vCPU / 16 GiB / NVIDIA A10G$1.01$734.38$0.4346us-east-1 $1.0134 mo
inf2.xlargeInferentia2, 32 GB, needs the Neuron SDK4 vCPU / 16 GiB$0.7582$553.49$0.3275us-east-1 $0.758245 mo
g6e.xlargeNVIDIA L40S, 48 GB4 vCPU / 32 GiB / NVIDIA L40S$1.86$1,358.53$0.804us-east-1 $1.8618 mo

How we chose

Sizing assumption (ours, not a vendor requirement): Model weights plus KV cache must fit in accelerator memory: 24 GB suits small quantized models, 48 GB+ larger ones.

Prices come from the AWS Price List. Treat sizes as starting points: watch memory and CPU for a week, then resize.

More use cases

Related cost calculators

All 105 calculators

Questions

What is the cheapest AWS server for self-hosted LLM inference?

Cheapest sensible starting point for self-hosted LLM inference: g6.xlarge at $0.8048/h ($587.50/month) on demand in us-east-1. Move up to g5.xlarge when you outgrow it.

Can I run self-hosted LLM inference on AWS credits?

Yes, EC2 and RDS usage is covered by AWS promotional credits; the last column shows how long $25k lasts.

Prices and credit amounts are estimates and may change. Check AWS for current terms.

Related